Hi everyone.
Please look at the below simple UiBinder using a constant:

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
        xmlns:g="urn:import:com.google.gwt.user.client.ui">

        <ui:with field='cons' type='com.example.gwtpuibinder.client.MyCons'/>

        <g:HTMLPanel>
                <p>
                        At <ui:text ui:ph='busName' from="{cons.businessName}" 
/> we strive
for our customers.
                </p>
        </g:HTMLPanel>
</ui:UiBinder>

The cons.businessName gets translated properly according to the
'localed' MyCons.properties that are provided:
MyCons.properties
MyCons_fr.properties
MyCons_es.properties
... etc.

But when I18N gets into the game I can't manage to get the constant
internationalized anymore:

<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:with field='cons' type='com.example.gwtpuibinder.client.MyCons'/>

        <g:HTMLPanel>
                <p>
                        <ui:msg>
                                At <ui:text ui:ph='busName' 
from="{cons.businessName}" /> we
strive for our customers.
                        </ui:msg>
                </p>
        </g:HTMLPanel>
</ui:UiBinder>

As soon as I surround the translatable text with the <ui:msg> tags it
gets indeed translated according to the various
*GenMessages.properties files but then the previous <ui:text
ui:ph='busName' from="{cons.businessName}" /> tag becomes an
unclobberable portion (see
http://code.google.com/webtoolkit/doc/trunk/DevGuideUiBinderI18n.html#Messages_with_unclobberable_portions.)
Here is how the generated *GenMessages.properties looks like:

B572CBEE8B7279CC8CC18CCFA9B9DCE1=At {0}{1} we strive for our
customers.

Does anyone have any idea how to get, on the one side, constants
translated properly according to the various MyCons.properties files
and the other parts of the text, on the other side, translated
according to the various *GenMessages.properties files?

Thank you.
Luc

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