I'm still not having any luck with this.  I've seen the comments by
rjrjr on the UiBinderI18n wiki:

http://code.google.com/p/google-web-toolkit/wiki/UiBinderI18n

"@benzheren, yes, and sorry it doesn't yet do the extra bit by
default. I think the best thing to do is add these attributes to your
root <ui:UiBinder> element:

    ui:generateLocales="default"
 
ui:generateKeys="com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator"
 
ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat'
This will generate a .properties file for each template (look for it
in the package's -aux directory, e.g. com.me.my.app-aux/
com.me.my.app.MyWidgetImplGenMessages?.properties). These particular
settings will make the name of each message string an MD5 hash of its
contents, so that your translations won't get mis-mapped as things
move within the template."

At risk of sounding like a lemon, I cannot find the aux folder
anywhere - is this something that should be generated automatically?
>From my first post, the compile output suggests that I should have a
file called
"com.example.client.MainViewMainViewUiBinderImplGenMessages.properties" (or
at least a file called
"MainViewMainViewUiBinderImplGenMessages.properties") sitting
somewhere but even a search of all files using the following from
cygwin does not reveal anything:

$ find /cygdrive/c -iname "*MainView*.properties" 2> /dev/null

(Yields nothing)

Can anyone offer me any tips for tracking this down?

Cheers,

Chris.


On Dec 10, 2:39 pm, Chris Lowe <chris.lowe...@gmail.com> wrote:
> I've been trying to test the I18 features of UiBinder but I cannot
> locate the generated properties file.
>
> My procedure is this:
>
> * Generate a new GWT 2.0 project called I18Test, with a package called
> com.example
>
> * Using the plugin, add a UiBinder asset called MainView to
> com.example.client.  I amended the generated code as follows:
>
> <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent";>
> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
>         xmlns:g="urn:import:com.google.gwt.user.client.ui"
>
> ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat'
>
> ui:generateKeys="com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator"
>     ui:generateLocales="default">
>         <ui:style>
>                 .important {
>                         font-weight: bold;
>                 }
>         </ui:style>
>         <g:HTMLPanel>
>                 <ui:msg description="Hello message">Hello</ui:msg>,
>                 <g:Button styleName="{style.important}" ui:field="button" />
>         </g:HTMLPanel>
> </ui:UiBinder>
>
> * As a quick hack just to get the panel to show, I just amended the
> generated module entry point to add the following:
>
> RootPanel.get("sendButtonContainer").add(new MainView("Click me"));
>
> * When I run the app, everything appears okay.  When I compile, I get
> a message reporting that a file called
> com.example.client.MainViewMainViewUiBinderImplGenMessages.properties
> has been generated:
>
> Compiling module com.example.I18Test
>    Scanning for additional dependencies:
> generated://4B78699A3BEB50FB1BC134587BCF4F2F/com/example/client/MainView_Ma 
> inViewUiBinderImpl.java
>       Computing all possible rebind results for
> 'com.example.client.MainViewMainViewUiBinderImplGenMessages'
>          Rebinding
> com.example.client.MainViewMainViewUiBinderImplGenMessages
>             Invoking
> com.google.gwt.dev.javac.standardgeneratorcont...@39f3bb
>                Generating
> com.example.client.MainViewMainViewUiBinderImplGenMessages.properties
> from MainViewMainViewUiBinderImplGenMessages_ for locale default
>    Compiling 6 permutations
>       Compiling permutation 0...
>       Compiling permutation 1...
>       Compiling permutation 2...
>       Compiling permutation 3...
>       Compiling permutation 4...
>       Compiling permutation 5...
>    Compile of permutations succeeded
> Linking into C:\Users\lowec\workspace\I18Test\war\i18test.
>    Link succeeded
>    Compilation succeeded -- 29.125s
>
> However, I cannot find this file anywhere!  Are there any more steps
> that I need perform to get at the file?
>
> Cheers,
>
> Chris.

--

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-tool...@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