Wednesday, November 27, 2013

Re: i18n Messages and the need for double quotes to generate a single quote

On Wednesday, November 27, 2013 10:23:51 AM UTC+1, Raphael Bauer wrote:

we are currently translating one of our applications.
We are using regular properties files that generate a interface.

One "strange" thing for us is that our translation department has to
use double quotes to generate single
quotes in those files ('' => ').

Note: it's not "a double quote" (U+0022) but "two single quotes" (U+0027 U+0027)
Of course we could use the Constants
interface, but this would not allow us to
use placeholders.

So I am wondering if I am missing something obvious. Is there a way
around the need to double the quotes all
the time?

No. This constraint/feature comes from Java's own MessageFormat where U+0027 has a special meaning.
In other words, you'd have the same issue if you used MessageFormat in your Java code (server side, desktop app, mobile app, etc.)

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment