[wp-trac] [WordPress Trac] #10278: thickbox.js strings are not i18n
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 28 14:05:18 UTC 2010
#10278: thickbox.js strings are not i18n
------------------------------------------+---------------------------------
Reporter: xibe | Owner: azaozz
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.9
Component: i18n | Version: 2.8
Severity: normal | Resolution: fixed
Keywords: has-patch tested 2nd-opinion |
------------------------------------------+---------------------------------
Changes (by rodrigovolponi):
* cc: rodrigovolponi (added)
* keywords: has-patch tested => has-patch tested 2nd-opinion
Comment:
This patch seems to not work, at least using WP 3.0.1 as the bug have
described (NextGEN plugin using Wordpress' lib thickbox.js).
The output of the template is always like this, always not translated):
{{{
<script type='text/javascript'>
/* <![CDATA[ */
var thickboxL10n = {
next: "Next >",
prev: "< Prev",
image: "Image",
of: "of",
close: "Close",
noiframes: "This feature requires inline frames. You have iframes
disabled or your browser does not support them."
};
try{convertEntities(thickboxL10n);}catch(e){};
/* ]]> */
</script>
}}}
It is true for every script loaded by script-loader.php. For instance, at
the "wp-admin/post-new.php", all the scripts called by script-loader.php
are not translated. There is one exception: autosaveL10n.
I have two installations on different servers using the current Wordpress
version (3.0.1) and the pt-br i18n. It is possible to confirm the proper
translation is found at .po and .mo files. I have tested the output of the
string sucessfully inside the loop of a regular theme:
{{{
_e('Next >'); // Outputs "Próximo »" correctly
}}}
I'm not sure if it is happening just with me, so I'd like to have
confirmation that this translation is actually happening properly.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10278#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list