[wp-trac] [WordPress Trac] #10069: HTML entities won't always work
in JavaScript messages
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 8 13:01:31 GMT 2009
#10069: HTML entities won't always work in JavaScript messages
--------------------------+-------------------------------------------------
Reporter: xibe | Owner: nbachiyski
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: i18n | Version: 2.8
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
A bug has re-surfaced during a community test of the fr_FR translation for
2.8-RC1.
The fr_FR translation uses many HTML entites, and under certain conditions
(have yet to determine them), they break the JS message.
Original string:
"You are about to delete the selected categories.\n"
" 'Cancel' to stop, 'OK' to delete."
fr_FR translation:
"Vous êtes sur le point de supprimer la catégorie sélectionnée.\n"
" « Annuler » pour abandonner, « OK » pour
supprimer."
The reporter's [http://pastie.textmate.org/453998 proposed patch] involves
correcting the POT (by using UTF-8 characters directly instead of HTML
entities) for these strings:
"Vous êtes sur le point de supprimer les catégories sélectionnées.\n"
" « Annuler » pour abandonner, « OK » pour supprimer."
While this is eaasily done, I wonder why it should boy under some
conditions and not others - and thus, if it could not be corrected in
order to work under all conditions.
This needs some testing (browsers, OS...), which I will report here when I
have more time...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10069>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list