Tuesday, November 30, 2010

Re: How can I declaratively I18N a g:Button title attribute?

Well that was easy...
This works;
<g:Button ui:field="emailButton"
addStyleNames="mailButton" title="Send a link to this topic">
<ui:attribute name='title'
description='toEmailTooltip' />
</g:Button>

On Nov 30, 4:45 pm, Blackberet <ramonjsanti...@gmail.com> wrote:
> Instead of
>
> <g:Button ui:field="myButton" addStyleNames="myButtonStyle"
> title="myButton Tooltip">
>     <ui:msg description='previous'>
>         Previous
>     </ui:msg>
>  </g:Button>
>
> is there a way to do something like this?
>
> <g:Button ui:field="myButton" addStyleNames="myButtonStyle">
>    <ui:attribute name="title>
>         <ui:msg description='previousTooltip'>
>             Previous Topic
>         </ui:msg>
>     </ui:attribute>
>
>     <ui:msg description='previous'>
>         Previous
>     </ui:msg>
>  </g:Button>

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment