Closed dankurka closed 9 years ago
This is not a bug -- the GWT Messages interface is defined to follow that of
MessageFormat, and MessageFormat requires isolated single quotes to be doubled. See
http://java.sun.com/j2se/1.5.0/docs/api/java/text/MessageFormat.html for details.
Reported by gwt.team.jat
on 2008-03-28 21:24:36
NotPlanned
BTW, if you don't want any quoting and don't need arguments, you can use Constants
instead and avoid any the requirement to double single quotes.
Reported by gwt.team.jat
on 2008-03-28 21:31:02
unfortunately this limitation also applies to properties defined with <ui:msg key="myKey">
elements defined in uibinder templates. This makes it quite hard for translators to
work with. Either you instruct them to turn every quote into a double quote or you
do it yourself....
Reported by googelybear
on 2011-03-09 14:41:29
Well, you have to have some way of supporting the necessary quoting - what if the translator
needs to put a literal { or } in the message? If they aren't quoted, they will be
interpreted as starting an argument. If you are handing translators property files
directly, then they need to understand what the format looks like and be able to process
it accordingly. If you are using some other format for your translators, then you
can write a small program to convert to/from the GWT properties format, or write your
own exporter (and eventually GWT will support pluggable importers).
Reported by jat@google.com
on 2011-03-09 15:05:26
Originally reported on Google Code with ID 2229
Reported by
shanjianli
on 2008-03-28 20:46:09