If you add :

ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat'
   ui:generateKeys="com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator"
   ui:generateLocales="default"

in your .ui.xml file, GWT compiler should create your .propertie file for
your .ui.xml file. Then you only have to copy that file, add your local
_fr_CA, and it should works.

http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiBinderI18n.html

Christian

On Mon, Feb 15, 2010 at 11:21 AM, ale <[email protected]> wrote:
>
>  ok, so every ui.xml has a specific message resource file... (or one
> for package...)
> It's ok. and the name? is right 'messages.properties'?
>
> thanks again.
> Alessandro
>
> On 15 Feb, 16:21, Christian Goudreau <[email protected]>
> wrote:
> > Normally, same directory as you .ui.xml file.
> >
> > Christian
> >
> > On Mon, Feb 15, 2010 at 10:17 AM, ale <[email protected]> wrote:
> > > ehm, but where should I put the properties file?
> > > under the client folder?
> >
> > > thanks..
> >
> > > On 15 Feb, 13:45, Christian Goudreau <[email protected]>
> > > wrote:
> > > > It's supposed to be automatic. You have to specify the locale in
your
> > > HTML
> > > > and then, GWT Compiler does the tricks.
> >
> > > > For me it always worked fine in Dev, but once I came to publish, my
> > > Images
> > > > didn't change according to my locales...
> >
> > > > Christian
> >
> > > > On Sun, Feb 14, 2010 at 7:05 PM, ale <[email protected]> wrote:
> > > > > Hi, I can't understand how use i18n with gwt 2.0
> > > > > I follow the manual and I made ma xml like this:
> >
> > > > > <g:HTMLPanel styleName='{style.panel}'>
> > > > >                <g:Anchor ui:field="loginLink">
> > > > >                        <ui:msg description="login">Login</ui:msg>
> > > > >                </g:Anchor>
> > > > >        </g:HTMLPanel>
> >
> > > > > than i implements a listbox (like in the example 'showcase') that
have
> > > > > an event that change the locale.
> > > > > than I wrote 2 files
> >
> > > > > messages.properties
> > > > > messages_fr.properties
> >
> > > > > I can't understand how to tell to the xml the name of the
properties
> > > > > file...
> > > > > (and so the change of the locale has no effect...)
> >
> > > > > Thanks. Regards
> > > > > Ale
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "Google Web Toolkit" group.
> > > > > To post to this group, send email to
> > > [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<google-web-toolkit%[email protected]>
<google-web-toolkit%[email protected]<google-web-toolkit%[email protected]>
>
> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]>
<google-web-toolkit%[email protected]<google-web-toolkit%[email protected]>
>
> >
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > > --
> > > You received this message because you are subscribed to the Google
Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
[email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-web-toolkit%[email protected]>
<google-web-toolkit%[email protected]<google-web-toolkit%[email protected]>
>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
[email protected]<google-web-toolkit%[email protected]>
.
> For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
>

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

Reply via email to