Commit Graph

45 Commits

Author SHA1 Message Date
Peter Westwood
deb8c9097b Mark 2nd param of load_plugin_textdomain() as deprecated. Fixes #11679 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12594 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-02 10:28:05 +00:00
Peter Westwood
f0a6bb378b Deprecate _nc() as _nx() is a much better was of specifying contexts. Fixes #11404 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12459 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-19 10:51:29 +00:00
Peter Westwood
43b9064424 Mark _c() as Deprecated people should use the new _x() instead. Fixes #11225.
git-svn-id: https://develop.svn.wordpress.org/trunk@12257 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-22 12:07:41 +00:00
Peter Westwood
6b92317f98 Allow plugins to override the behaviour of load_textdomain() in a variety of flexible ways. Fixes #11012 props johanee and nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@12251 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-21 09:28:32 +00:00
Ryan Boren
42a3082c21 Add context to strings. Props nbachiyski. fixes #10738
git-svn-id: https://develop.svn.wordpress.org/trunk@12231 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 22:49:16 +00:00
Peter Westwood
813c76d3a2 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: https://develop.svn.wordpress.org/trunk@12179 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-12 21:50:17 +00:00
Peter Westwood
a9b546be54 Switch to using NOOP_Translations for untranslated sites. Fixes #10971 props nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@12080 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-21 07:09:00 +00:00
Peter Westwood
dcf3026244 Correct the name of the filter in _nx(). Fixes #10540 props CalebKniffen.
git-svn-id: https://develop.svn.wordpress.org/trunk@11780 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-06 19:27:52 +00:00
Ryan Boren
3090ebd2b5 Update load_textdomain() phpdoc. Props nbachiyski. fixes #10286 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11680 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-01 20:05:14 +00:00
Ryan Boren
f6f03210e4 Fix role translation. fixes #10270 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11640 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-25 17:18:56 +00:00
Ryan Boren
3a419fbf6d Fix load_plugin_textdomain() phpdoc. Props PotterSys. fixes #9892
git-svn-id: https://develop.svn.wordpress.org/trunk@11411 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-20 18:54:14 +00:00
Mark Jaquith
f0336cfa7d deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: https://develop.svn.wordpress.org/trunk@11380 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 15:11:07 +00:00
Peter Westwood
8f124cb667 phpdoc updates for l10n functions. Fixes #9767 props demetris.
git-svn-id: https://develop.svn.wordpress.org/trunk@11281 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 21:15:05 +00:00
Mark Jaquith
c638e8d8de _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: https://develop.svn.wordpress.org/trunk@11204 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 19:43:53 +00:00
Ryan Boren
b16cbfc447 Return fiter result directly. Props Denis-de-Bernardy. fixes #9690
git-svn-id: https://develop.svn.wordpress.org/trunk@11194 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 05:32:20 +00:00
Ryan Boren
036a7656f9 attr(), _a(), _ea(), _xa() for shorthand attribute escaping. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11103 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-27 21:58:04 +00:00
Ryan Boren
273df5a466 Fix 'Only variable references should be returned by reference' notices
git-svn-id: https://develop.svn.wordpress.org/trunk@11083 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-24 23:43:32 +00:00
Ryan Boren
8d00b5d37d Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10810 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-18 02:43:45 +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
Ryan Boren
1952e923f8 gettext contexts. Props nbachiyski. see #9112
git-svn-id: https://develop.svn.wordpress.org/trunk@10767 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-10 23:02:29 +00:00
Ryan Boren
bc924291b2 Switch to pomo lib. Support gettext contexts. Deprecate long form functions. Props nbachiyski. fixes #9112 #9111
git-svn-id: https://develop.svn.wordpress.org/trunk@10584 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-17 05:03:29 +00:00
Ryan Boren
390984d25d Contextual ngettext from nbachiyski. fixes #8128
git-svn-id: https://develop.svn.wordpress.org/trunk@9887 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-25 22:25:21 +00:00
Ryan Boren
6e4773588a Add optional path arg to load_theme_textdomain(). Props filosofo. fixes #6951
git-svn-id: https://develop.svn.wordpress.org/trunk@9212 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-16 20:44:39 +00:00
Peter Westwood
5f2a75db7b Allow plugins to mangle translations of english strings as well as translated strings. Fixes #6742.
git-svn-id: https://develop.svn.wordpress.org/trunk@9211 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-16 20:27:45 +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
Ryan Boren
2272a1a950 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@8600 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-09 05:36:14 +00:00
Ryan Boren
9ac24840ea Allow merging of similarly named text domains. Props sambauers. fixes #7376 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8556 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-05 21:28:50 +00:00
Ryan Boren
eb99bdcadf Use WP_LANG_DIR. fixes #7378 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8404 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-22 21:09:30 +00:00
Ryan Boren
250e5f0717 Back compat fixes for load_plugin_textdomain() from nbachiyski. see #6938
git-svn-id: https://develop.svn.wordpress.org/trunk@8065 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-09 19:39:04 +00:00
Ryan Boren
9ce7676e72 Make load_plugin_textdomain() work with WP_CONTENT_DIR. Props sambauers. see #6938
git-svn-id: https://develop.svn.wordpress.org/trunk@8041 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-03 17:19:47 +00:00
Ryan Boren
6cc11cbf1e Allow wp-content to exist outside of webroot. Props sambauers. see #6938
git-svn-id: https://develop.svn.wordpress.org/trunk@7999 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-27 17:55:24 +00:00
Peter Westwood
e668d3e404 Always set the locale to something. Fixes #6872 props MarcoZ.
git-svn-id: https://develop.svn.wordpress.org/trunk@7885 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-04 17:28:42 +00:00
Ryan Boren
4dcc023818 ngettext fixes from nbachiyski. fixes #6261
git-svn-id: https://develop.svn.wordpress.org/trunk@7397 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-19 16:00:09 +00:00
Ryan Boren
b96affbfd5 Don't save translated role names to the DB. Instead, translate them on the fly. fixes #3442 #5537
git-svn-id: https://develop.svn.wordpress.org/trunk@6916 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-19 20:28:54 +00:00
Ryan Boren
3a18b96c9b Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@6726 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 06:47:27 +00:00
Ryan Boren
f5564e74c8 phpdoc tuneup from darkdragon. see #5611
git-svn-id: https://develop.svn.wordpress.org/trunk@6585 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-09 17:48:00 +00:00
Ryan Boren
652d5722e9 phpdoc for l10n. Props darkdragon. fixes #5590
git-svn-id: https://develop.svn.wordpress.org/trunk@6563 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-06 01:28:34 +00:00
Ryan Boren
3a8b2fcca3 Remove unused vars. Props DD32. see #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6364 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 19:49:33 +00:00
Ryan Boren
3b2de5b5df Refactor l10n code to reduce duplication. Change placement of context. Props nbachiyski. fixes #3687
git-svn-id: https://develop.svn.wordpress.org/trunk@5258 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-12 21:15:44 +00:00
Ryan Boren
8357362440 Add _c() for disambiguatin translateable strings. Props nbachiyski. fixes #3687
git-svn-id: https://develop.svn.wordpress.org/trunk@5081 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-22 03:34:23 +00:00
Ryan Boren
11f6d0247b If WPLANG is empty leave empty. fixes #3611
git-svn-id: https://develop.svn.wordpress.org/trunk@4764 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-18 17:40:05 +00:00
Matt Mullenweg
3aa3af79c7 Apply filter on locale, fixes #2383
git-svn-id: https://develop.svn.wordpress.org/trunk@4588 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-03 21:09:24 +00:00
Ryan Boren
e44ea1ff93 Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986
git-svn-id: https://develop.svn.wordpress.org/trunk@4495 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-19 07:56:05 +00:00
Ryan Boren
7e99c9b9d7 Turn hard-coded paths to defines. Pull gettext includes int wp-settings. Props mdawaffe. fixes #3157
git-svn-id: https://develop.svn.wordpress.org/trunk@4202 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-21 20:46:39 +00:00
Ryan Boren
d2240011a0 Remove wp- prefix from wp-l10n.php
git-svn-id: https://develop.svn.wordpress.org/trunk@3870 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-15 07:24:44 +00:00