You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Fernandes Celinio <cf...@sopragroup.com> on 2009/10/27 13:16:16 UTC
[Struts 2] Dynamic content of a tooltip for internationalization
Hi,
How do you render the content of a tooltip dynamic ?
I am using several messages_XX.properties files, one for each language.
In each properties file, I have defined the key blabla.tooltip.
For instance in messages_en.properties:
blabla.tooltip=Pay before the end of the term.
In messages_fr.properties:
blabla.tooltip=Payez avant la fin du contrat.
<s:textfield name="blabla" key="pay.blabla" tooltip="Pay
before the end of the term."/>
Question : how do i affect the content of my key blabla.tooltip to the
content of tooltip ?
Thanks for helping.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: [Struts 2] Dynamic content of a tooltip for internationalization
Posted by Fernandes Celinio <cf...@sopragroup.com>.
Thanks, it works of course :)
-----Message d'origine-----
De : Greg Lindholm [mailto:greg.lindholm@gmail.com]
Envoyé : mardi 27 octobre 2009 14:42
À : Struts Users Mailing List
Objet : Re: [Struts 2] Dynamic content of a tooltip for internationalization
<s:textfield name="blabla" key="pay.blabla"
tooltip="%{getText('blabla.tooltip')}"/>
On Tue, Oct 27, 2009 at 8:16 AM, Fernandes Celinio < cfernandes@sopragroup.com> wrote:
> Hi,
>
> How do you render the content of a tooltip dynamic ?
> I am using several messages_XX.properties files, one for each language.
>
> In each properties file, I have defined the key blabla.tooltip.
>
> For instance in messages_en.properties:
> blabla.tooltip=Pay before the end of the term.
>
> In messages_fr.properties:
> blabla.tooltip=Payez avant la fin du contrat.
>
> <s:textfield name="blabla" key="pay.blabla" tooltip="Pay
> before the end of the term."/>
>
> Question : how do i affect the content of my key blabla.tooltip to the
> content of tooltip ?
>
> Thanks for helping.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [Struts 2] Dynamic content of a tooltip for internationalization
Posted by Greg Lindholm <gr...@gmail.com>.
<s:textfield name="blabla" key="pay.blabla"
tooltip="%{getText('blabla.tooltip')}"/>
On Tue, Oct 27, 2009 at 8:16 AM, Fernandes Celinio <
cfernandes@sopragroup.com> wrote:
> Hi,
>
> How do you render the content of a tooltip dynamic ?
> I am using several messages_XX.properties files, one for each language.
>
> In each properties file, I have defined the key blabla.tooltip.
>
> For instance in messages_en.properties:
> blabla.tooltip=Pay before the end of the term.
>
> In messages_fr.properties:
> blabla.tooltip=Payez avant la fin du contrat.
>
> <s:textfield name="blabla" key="pay.blabla" tooltip="Pay
> before the end of the term."/>
>
> Question : how do i affect the content of my key blabla.tooltip to the
> content of tooltip ?
>
> Thanks for helping.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>