Commit Graph

37 Commits

Author SHA1 Message Date
Andrew Nacin fc12b9fa10 Add a translator's comment. see #19924.
git-svn-id: https://develop.svn.wordpress.org/trunk@19837 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 19:43:26 +00:00
Andrew Nacin e92b79e31f Do RTL detection based on a translated string, rather than a hardcoded list. Makes things a bit cleaner. fixes #19924, fixes #19600.
git-svn-id: https://develop.svn.wordpress.org/trunk@19836 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 19:36:24 +00:00
Andrew Nacin bbec83ba02 Only set text_direction based on a locale being RTL if we successfully loaded a locale.mo file. Otherwise we may be in RTL land based on a WPLANG constant but nothing else. fixes #19924.
git-svn-id: https://develop.svn.wordpress.org/trunk@19797 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-31 14:30:36 +00:00
Andrew Nacin 64ade9c31b Docs for WP_Locale::is_locale_rtl( $locale ). see #18180, see #19600.
git-svn-id: https://develop.svn.wordpress.org/trunk@19761 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-26 21:20:19 +00:00
Andrew Nacin 2fd55c3df1 Introduce wp_load_translations_early(), which can be used before the locale is properly loaded in order to translate early error strings. Internationalize setup-config.php -- translators no longer have a reason to modify this file. fixes #18180.
git-svn-id: https://develop.svn.wordpress.org/trunk@19760 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-26 20:34:27 +00:00
Andrew Nacin 16cc855201 Initial support for RTL detection in core. props SergeyBiryukov for compiling the list. fixes #19600.
git-svn-id: https://develop.svn.wordpress.org/trunk@19755 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 22:41:55 +00:00
Andrew Nacin eb56e50088 Remove locale_vars from WP_Locale. Explicitly set the text_direction property from a global, not from an arbitrary list. see #19600.
git-svn-id: https://develop.svn.wordpress.org/trunk@19754 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 22:29:33 +00:00
Ryan Boren 2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Ryan Boren 676ba7043e Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-13 23:45:31 +00:00
Ryan Boren 4e081d3171 phpdoc typo and readability fixes. Props SergeyBiryukov. fixes #18560
git-svn-id: https://develop.svn.wordpress.org/trunk@18827 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 22:57:43 +00:00
Jon Cave 82c0f09c09 Fix typos in documentation (wp-includes/[i-z]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18639 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-05 19:08:15 +00:00
Andrew Nacin 89590d3872 Remove my debug cruft. No, you're not looking in a mirror. props dcowgill, fixes #17769.
git-svn-id: https://develop.svn.wordpress.org/trunk@18280 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-11 20:32:39 +00:00
Andrew Nacin 1914c5464e UI refresh for Press This. props koopersmith, see #17757.
git-svn-id: https://develop.svn.wordpress.org/trunk@18279 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-11 19:37:23 +00:00
Ryan Boren 9730cb8d15 Constructor cleanup. Props ocean90. fixes #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-29 20:05:12 +00:00
Ryan Boren d783952469 Strip trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:26:11 +00:00
Andrew Nacin d5e5ccdd72 Introduce is_rtl(). Use it in core. It only becomes defined when locale is loaded, so it's impossible to use it too early. Deprecate the get_bloginfo('text_direction') call. fixes #13206.
git-svn-id: https://develop.svn.wordpress.org/trunk@14360 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 05:49:19 +00:00
Peter Westwood 3f2ee78320 Restore support for floating point numbers in number_format_i18n(). Fixes #10555.
git-svn-id: https://develop.svn.wordpress.org/trunk@14190 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-22 21:39:37 +00:00
Peter Westwood 00b53270ca Remove unnecessary translations of decimal point character and number of decimal places. Fixes #10555 props nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@14184 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 21:41:20 +00:00
Ryan Boren 72adbb470e Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@12859 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 22:49:05 +00:00
Ryan Boren 2e46e81309 i18n fixes. Props nbachiyski. fixes #11954
git-svn-id: https://develop.svn.wordpress.org/trunk@12789 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-21 21:37:43 +00:00
Ryan Boren 5d8651d6f3 gettext comments. Props nbachiyski. see #9112
git-svn-id: https://develop.svn.wordpress.org/trunk@10774 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-13 03:53:39 +00:00
Peter Westwood 047ec90dee phpDoc corrections for wp-includes. See #7550 props jacobsantos.
git-svn-id: https://develop.svn.wordpress.org/trunk@8782 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-30 21:23:43 +00:00
Mark Jaquith 3cab99fbd2 Cast to array when using foreach(). Props santosj (and thanks for your perseverance!). fixes #2784
git-svn-id: https://develop.svn.wordpress.org/trunk@8572 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-06 20:31:54 +00:00
Ryan Boren e273c34966 phpdoc for locale from darkdragon. fixes #5621
git-svn-id: https://develop.svn.wordpress.org/trunk@6589 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-10 17:28:50 +00:00
Peter Westwood 5593328ba6 Improve desriptions for I18N strings. Fixes #4906 props nbachiyski
git-svn-id: https://develop.svn.wordpress.org/trunk@6033 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-04 20:56:08 +00:00
Ryan Boren 7a43c01e08 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@6026 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:32:58 +00:00
Ryan Boren b046d67f41 Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 02:25:30 +00:00
rob1n a40b296021 Allow number_format to be internationalized. Props nbachiyski. fixes #3677
git-svn-id: https://develop.svn.wordpress.org/trunk@5308 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-25 00:49:57 +00:00
Ryan Boren 6a3688b9c2 Add RTL support to kubrick. Props Sewar. fixes #3953
git-svn-id: https://develop.svn.wordpress.org/trunk@5062 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-19 19:08:15 +00:00
Ryan Boren ee3f4cde4e Load locale specific php code in global context. fixes #3488
git-svn-id: https://develop.svn.wordpress.org/trunk@4699 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-08 00:11:06 +00:00
Ryan Boren d88ed56d55 Fix logo link in wp_die(). Props Sewar. fixes #3138
git-svn-id: https://develop.svn.wordpress.org/trunk@4194 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-18 23:40:19 +00:00
Ryan Boren e622346b7d WP_Locale. Props Sewar. fixes #2568
git-svn-id: https://develop.svn.wordpress.org/trunk@3676 602fd350-edb4-49c9-b593-d223f7449a82
2006-04-02 00:20:11 +00:00
Ryan Boren fc7b2cf0ff Fix May abbreviation translation. Patch by morganiq. http://mosquito.wordpress.org/view.php?id=722
git-svn-id: https://develop.svn.wordpress.org/trunk@2232 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-06 20:45:10 +00:00
Ryan Boren 3c161591e7 Hack to make day initials unique for translation. Ugly, but it works. Bug 0000010.
git-svn-id: https://develop.svn.wordpress.org/trunk@1518 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-08 18:54:34 +00:00
Ryan Boren 3f8e368b15 Oops. Keys need to be marked too.
git-svn-id: https://develop.svn.wordpress.org/trunk@1287 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-16 17:51:26 +00:00
Ryan Boren 284f2bec21 Put day and month initials and abbreviations into locale.php so that they can be translated. Change get_calendar to use the locale abbreviations instead of doing substring operations.
git-svn-id: https://develop.svn.wordpress.org/trunk@1286 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-16 17:07:13 +00:00
Ryan Boren 387ba382bc Add date and time strings to locale.php.
git-svn-id: https://develop.svn.wordpress.org/trunk@1086 602fd350-edb4-49c9-b593-d223f7449a82
2004-04-17 05:01:10 +00:00