ryan
|
1a552dd029
|
Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@14924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-26 02:42:15 +00:00 |
nacin
|
c6d21e7fbb
|
Introduce _ex(), a hybrid between _e() and _x() -- translate with context, then echo. props westi, see #13395.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-14 21:46:25 +00:00 |
nbachiyski
|
8ff9331f75
|
Cast the result of glob(), because on some systems it returns false on empty result set. Props ipstenu, fixes #13252
git-svn-id: http://svn.automattic.com/wordpress/trunk@14456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-04 21:55:34 +00:00 |
nbachiyski
|
7ee70968ce
|
Refactor get_available_languages() to use glob() instead of *dir functions. See #13023
git-svn-id: http://svn.automattic.com/wordpress/trunk@14417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-03 22:07:31 +00:00 |
nbachiyski
|
7c1255e433
|
Make the $path argument of load_muplugin_textdomain() functional -- relative to mu-plugins. Props uglyrobot, fixes #12875
git-svn-id: http://svn.automattic.com/wordpress/trunk@14186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-22 11:32:50 +00:00 |
nacin
|
a7feaed0e6
|
Change @since 3.0 to @since 3.0.0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-26 19:13:36 +00:00 |
ryan
|
e25a65b36a
|
Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@13733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-17 16:27:25 +00:00 |
nacin
|
c5128bb074
|
Introduce unload_textdomain() and add plugin_locale and theme_locale filters to load_*_textdomain() functions. Fixes #9686 props nbachiyski
git-svn-id: http://svn.automattic.com/wordpress/trunk@13330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-23 11:14:35 +00:00 |
nacin
|
2c52c876de
|
Introduce is_textdomain_loaded(). Fixes #10527 props nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-22 19:10:03 +00:00 |
nacin
|
b76d0dc22e
|
Deprecate old l10n and sanitization APIs. Deprecate __ngettext() for _n(), __ngettext_noop() for _n_noop(), translate_with_context() for _x(). Deprecate sanitize_url for esc_url_raw, js_escape for esc_js, wp_specialchars for esc_html, attribute_escape for esc_attr. See #11388
git-svn-id: http://svn.automattic.com/wordpress/trunk@13096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-13 07:28:19 +00:00 |
westi
|
df792469b4
|
Ignore the continents-cities mo files when searching for the list of installed language packs. Fixes #12019
git-svn-id: http://svn.automattic.com/wordpress/trunk@12988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-06 11:42:20 +00:00 |
ryan
|
cf7da6eab8
|
Introduce get_available_languages(). Validate WPLANG. fixes #11774
git-svn-id: http://svn.automattic.com/wordpress/trunk@12946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-04 18:46:25 +00:00 |
ryan
|
1de8e037c8
|
Integrate mu_locale() into get_locale(). see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-01-29 19:03:51 +00:00 |
ryan
|
692cdf0c7b
|
Move load_muplugin_textdomain() to l10n.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@12840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-01-26 17:25:31 +00:00 |
ryan
|
6da55f7792
|
Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@12733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-01-15 22:11:12 +00:00 |
westi
|
befa36c379
|
Mark 2nd param of load_plugin_textdomain() as deprecated. Fixes #11679 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-01-02 10:28:05 +00:00 |
westi
|
10a6d0e916
|
Deprecate _nc() as _nx() is a much better was of specifying contexts. Fixes #11404 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-12-19 10:51:29 +00:00 |
westi
|
6ba5006153
|
Mark _c() as Deprecated people should use the new _x() instead. Fixes #11225.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-11-22 12:07:41 +00:00 |
westi
|
5994455911
|
Allow plugins to override the behaviour of load_textdomain() in a variety of flexible ways. Fixes #11012 props johanee and nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-11-21 09:28:32 +00:00 |
ryan
|
c831a9e3ef
|
Add context to strings. Props nbachiyski. fixes #10738
git-svn-id: http://svn.automattic.com/wordpress/trunk@12231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-11-19 22:49:16 +00:00 |
westi
|
9c682f5a33
|
Add load_child_theme_textdomain() to allow child themes to have there own translation files. Fixes #11033 props load_child_theme_textdomain.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-11-12 21:50:17 +00:00 |
westi
|
8a7d717bb5
|
Switch to using NOOP_Translations for untranslated sites. Fixes #10971 props nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-10-21 07:09:00 +00:00 |
westi
|
91e47a25d8
|
Correct the name of the filter in _nx(). Fixes #10540 props CalebKniffen.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-08-06 19:27:52 +00:00 |
ryan
|
a5786f5730
|
Update load_textdomain() phpdoc. Props nbachiyski. fixes #10286 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@11680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-07-01 20:05:14 +00:00 |
ryan
|
82472f5474
|
Fix role translation. fixes #10270 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@11640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-06-25 17:18:56 +00:00 |
ryan
|
5a6cd2b356
|
Fix load_plugin_textdomain() phpdoc. Props PotterSys. fixes #9892
git-svn-id: http://svn.automattic.com/wordpress/trunk@11411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-05-20 18:54:14 +00:00 |
markjaquith
|
119b39cec2
|
deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-05-18 15:11:07 +00:00 |
westi
|
a53a13efa4
|
phpdoc updates for l10n functions. Fixes #9767 props demetris.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-05-11 21:15:05 +00:00 |
markjaquith
|
6c2ffddf31
|
_a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
git-svn-id: http://svn.automattic.com/wordpress/trunk@11204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-05-05 19:43:53 +00:00 |
ryan
|
4f40b6e5ff
|
Return fiter result directly. Props Denis-de-Bernardy. fixes #9690
git-svn-id: http://svn.automattic.com/wordpress/trunk@11194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-05-05 05:32:20 +00:00 |
ryan
|
2249c69021
|
attr(), _a(), _ea(), _xa() for shorthand attribute escaping. see #9650
git-svn-id: http://svn.automattic.com/wordpress/trunk@11103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-04-27 21:58:04 +00:00 |
ryan
|
a8513a8a37
|
Fix 'Only variable references should be returned by reference' notices
git-svn-id: http://svn.automattic.com/wordpress/trunk@11083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-04-24 23:43:32 +00:00 |
ryan
|
e8b6fe7347
|
Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-03-18 02:43:45 +00:00 |
ryan
|
b1222311f7
|
gettext comments. Props nbachiyski. see #9112
git-svn-id: http://svn.automattic.com/wordpress/trunk@10774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-03-13 03:53:39 +00:00 |
ryan
|
d10b538652
|
gettext contexts. Props nbachiyski. see #9112
git-svn-id: http://svn.automattic.com/wordpress/trunk@10767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-03-10 23:02:29 +00:00 |
ryan
|
5dfddd7b18
|
Switch to pomo lib. Support gettext contexts. Deprecate long form functions. Props nbachiyski. fixes #9112 #9111
git-svn-id: http://svn.automattic.com/wordpress/trunk@10584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2009-02-17 05:03:29 +00:00 |
ryan
|
90afcb23c1
|
Contextual ngettext from nbachiyski. fixes #8128
git-svn-id: http://svn.automattic.com/wordpress/trunk@9887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-11-25 22:25:21 +00:00 |
ryan
|
5ec329b4f1
|
Add optional path arg to load_theme_textdomain(). Props filosofo. fixes #6951
git-svn-id: http://svn.automattic.com/wordpress/trunk@9212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-10-16 20:44:39 +00:00 |
westi
|
de52fa23a2
|
Allow plugins to mangle translations of english strings as well as translated strings. Fixes #6742.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-10-16 20:27:45 +00:00 |
westi
|
9e89b4a99e
|
phpDoc corrections for wp-includes. See #7550 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-08-30 21:23:43 +00:00 |
ryan
|
35b18e5034
|
Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@8600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-08-09 05:36:14 +00:00 |
ryan
|
cd722a7472
|
Allow merging of similarly named text domains. Props sambauers. fixes #7376 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-08-05 21:28:50 +00:00 |
ryan
|
2c1f3d9782
|
Use WP_LANG_DIR. fixes #7378 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-07-22 21:09:30 +00:00 |
ryan
|
0679f8501d
|
Back compat fixes for load_plugin_textdomain() from nbachiyski. see #6938
git-svn-id: http://svn.automattic.com/wordpress/trunk@8065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-06-09 19:39:04 +00:00 |
ryan
|
4f3b306abe
|
Make load_plugin_textdomain() work with WP_CONTENT_DIR. Props sambauers. see #6938
git-svn-id: http://svn.automattic.com/wordpress/trunk@8041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-06-03 17:19:47 +00:00 |
ryan
|
6c8d35de32
|
Allow wp-content to exist outside of webroot. Props sambauers. see #6938
git-svn-id: http://svn.automattic.com/wordpress/trunk@7999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-05-27 17:55:24 +00:00 |
westi
|
9962fa1f0b
|
Always set the locale to something. Fixes #6872 props MarcoZ.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-05-04 17:28:42 +00:00 |
ryan
|
c66438659d
|
ngettext fixes from nbachiyski. fixes #6261
git-svn-id: http://svn.automattic.com/wordpress/trunk@7397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-03-19 16:00:09 +00:00 |
ryan
|
7c8c648554
|
Don't save translated role names to the DB. Instead, translate them on the fly. fixes #3442 #5537
git-svn-id: http://svn.automattic.com/wordpress/trunk@6916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-02-19 20:28:54 +00:00 |
ryan
|
d88983793b
|
Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@6726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2008-02-05 06:47:27 +00:00 |