[wp-trac] [WordPress Trac] #11270: Punctuation isn't properly internationalised
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 27 02:12:07 UTC 2009
#11270: Punctuation isn't properly internationalised
--------------------------+-------------------------------------------------
Reporter: caesarsgrunt | Owner: nbachiyski
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: i18n | Version: 2.9
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Punctuation should be included in i18n strings, because it is often quite
different in foreign languages.
For example, there are several places where exclamation marks are not
internationalised.[[BR]]
However, languages such as Spanish also have an exclamation mark at the
beginning of the question, whilst there may be languages which do not sue
it at all.
An example of this is in wp-admin/comment.php, where the following appears
repeatedly :
{{{
sprintf(' <a href="%s">'.__('Go back').'</a>!', ...)
}}}
Correct alternatives are :
{{{
sprintf(' <a href="%s">'.__('Go back!').'</a>', ...)
}}}
Or, if you want to keep the punctuation out of the link :
{{{
sprintf(__('<a href="%s">Go back</a>!'), ...)
}}}
There are other similar i18n punctuation problems scattered throughout WP.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11270>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list