posted a bug report for this issue, as this makes i18n almost
impossible: http://code.google.com/p/google-web-toolkit/issues/detail?id=6647

On Jul 25, 11:55 am, googelybear <googelyb...@gmail.com> wrote:
> just found out that this only affects properties loaded via the
> Constants interface. When using <ui:msg> in uibinder files the old
> trick still works (I guess this goes via MessageFormat). But when
> loading the property programmatically using Constants interface it
> does NOT work (meinaing 2 '' in the source file will also be outputted
> as 2 '').
>
> On Jul 25, 11:40 am, googelybear <googelyb...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am a bit puzzled about this, is no one else facing this issue? How
> > did you guys solve it?
>
> > According to the official Message Format javadoc from Oracle (http://
> > download.oracle.com/javase/6/docs/api/java/text/MessageFormat.html)
> > the old trick with doubling the quotes should still work (quote):
> > "Within a String, "''" represents a single quote. "
>
> > but when I write the following property in my properties file:
> > "foo = you can''t do this"
>
> > the output will be "you can''t do this" - with 2 single quotes still
> > present - instead of one according to the javadoc.
>
> > Is this a gwt bug?
>
> > thanks for any feedback,
> > Dennis
>
> > On Jun 25, 3:31 pm,googelybear<googelyb...@gmail.com> wrote:
>
> > > Hi,
>
> > > I am developing a multi locale app and as described in many posts
> > > (e.g. [1] or [2]) so far I have always put 2 quotes when I wanted a
> > > single quote to appear in the output in my language properties files
> > > (e.g. "that''s right" will become "that's right"). This was very
> > > annoying for translators and often got forgotten, meaning I had to fix
> > > it manually. But it worked.
>
> > > Now I received a bug report from the client stating that all quotes
> > > are printed twice on the website (which turned out to be true).
>
> > > I will now go back and replace all the double quotes with single
> > > quotes again.
>
> > > I don't know in which version of GWT that changed (I suspect 2.2 or
> > > 2.3).
>
> > > Did others also experience the same issue? If so, why have we not been
> > > warned about this change by the GWT team? If not, do you have any idea
> > > what could have caused this?
>
> > > thanks,
> > > Den
>
> > > [1]http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
> > > [2]http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to