[wp-testers] Re: JavaScript seems to break HTML entities

Xavier Borderie xavier at borderie.net
Mon Nov 17 12:13:25 GMT 2008


> This is about the Update Post button in the Publish section.
> By default, it is displayed through HTML, but it seems that its title
> string is re-assigned through JS at one time.
>
> Case in point:
> In French, "Update Post" is translated "Mettre à jour l'article", but
> for typographical correctness (in the spirit of our founding father,
> Matt's Curly Quotes patch for b2/cafelog :-) ), we chose to translate
> it "Mettre à jour l’article".
>
> It works great: the apostrophe (ok, "right single quote", but it reads
> better than ') is there in the button and all the strings where
> it's needed (and there are quite a few).
> BUT, if I click the Edit link from the "Published on..." line to open
> the scheduling tool, and then hit cancel, the button text gets updated
> to "Mettre à jour l’article" litterally before the tool closes:
> the ’ is no longer turned into a quote, it's just there.
>
> I'm guessing this is due to JS not parsing HTML entities. Could it be
> made to? Or should I forget about typographical correctness
> altogether?

Is created a ticket about this first part of my previous message:
http://trac.wordpress.org/ticket/8254
Thanks for considering it.

-- 
Xavier Borderie


More information about the wp-testers mailing list