in your .ui.xml add:

<ui:with field='res' type ='com.YOUR.PATH.doitMessages'/>

and modify <g:header> to:
<g:header><ui:text from='{res.getDoItHelp}'/></g:header>

and finally, in your doitMessages.java file add this to it:

@DefaultMessage("How to use i18n here.")
String getDoItHelp();

Note: using this method does not support passing paramters from ui.xml to 
functions defined in doitMessages.



On Friday, 12 October 2012 08:39:50 UTC+1, Luke wrote:
>
> when using uibinder for disclosure panel. how to use i18n for header?
>
> <g:DisclosurePanel>
> <g:header>how to use i18n here</g:header>
> <g:DisclosurePanel>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fBClpTBBk7EJ.
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