Comment by [email protected]:

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


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

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to