You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Marek Šabo <ms...@buk.cvut.cz> on 2010/01/31 15:12:07 UTC
FeedbackMessage Localization
Hi all,
I was wondering, is there a way to localize messages comming from info()
and error() form methods via property files?
I could do it via session logic but I'm interested in other ways.
Regards,
--
Marek Šabo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: FeedbackMessage Localization
Posted by Andrew Lombardi <an...@mysticcoders.com>.
No problem. Igor's is probably a helluva lot easier :)
If this helped, consider writing an example in the Wiki and/or adding an Example to WicketByExample.com! :P
Cheers!
On Jan 31, 2010, at 4:35 PM, Marek Šabo wrote:
> @Igor - works like a charm
> @Andrew - took me a while to play with hierarchy but got it working
>
> Thank you both, regards
>
> --
> Marek Šabo
>
> On 01/31/2010 07:16 PM, Igor Vaynberg wrote:
>> info(getstring(key))
>>
>> -igor
>>
>> On Sun, Jan 31, 2010 at 6:12 AM, Marek Šabo <ms...@buk.cvut.cz> wrote:
>>
>>> Hi all,
>>>
>>> I was wondering, is there a way to localize messages comming from info()
>>> and error() form methods via property files?
>>> I could do it via session logic but I'm interested in other ways.
>>>
>>> Regards,
>>>
>>> --
>>> Marek Šabo
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
To our success!
Mystic Coders, LLC | Code Magic | www.mysticcoders.com
ANDREW LOMBARDI | andrew@mysticcoders.com
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 714-816-4488
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi
twitter: http://www.twitter.com/kinabalu
Eco-Tip: Printing e-mails is usually a waste.
========================================================
This message is for the named person's use only. You must not, directly or indirectly, use,
disclose, distribute, print, or copy any part of this message if you are not the intended recipient.
========================================================
Re: FeedbackMessage Localization
Posted by Marek Šabo <ms...@buk.cvut.cz>.
@Igor - works like a charm
@Andrew - took me a while to play with hierarchy but got it working
Thank you both, regards
--
Marek Šabo
On 01/31/2010 07:16 PM, Igor Vaynberg wrote:
> info(getstring(key))
>
> -igor
>
> On Sun, Jan 31, 2010 at 6:12 AM, Marek Šabo <ms...@buk.cvut.cz> wrote:
>
>> Hi all,
>>
>> I was wondering, is there a way to localize messages comming from info()
>> and error() form methods via property files?
>> I could do it via session logic but I'm interested in other ways.
>>
>> Regards,
>>
>> --
>> Marek Šabo
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: FeedbackMessage Localization
Posted by Igor Vaynberg <ig...@gmail.com>.
info(getstring(key))
-igor
On Sun, Jan 31, 2010 at 6:12 AM, Marek Šabo <ms...@buk.cvut.cz> wrote:
> Hi all,
>
> I was wondering, is there a way to localize messages comming from info()
> and error() form methods via property files?
> I could do it via session logic but I'm interested in other ways.
>
> Regards,
>
> --
> Marek Šabo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: FeedbackMessage Localization
Posted by Andrew Lombardi <an...@mysticcoders.com>.
You could use a StringResourceModel or ResourceModel and just grab the object that results
On Jan 31, 2010, at 6:12 AM, Marek Šabo wrote:
> Hi all,
>
> I was wondering, is there a way to localize messages comming from info()
> and error() form methods via property files?
> I could do it via session logic but I'm interested in other ways.
>
> Regards,
>
> --
> Marek Šabo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
To our success!
Mystic Coders, LLC | Code Magic | www.mysticcoders.com
ANDREW LOMBARDI | andrew@mysticcoders.com
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 714-816-4488
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi
twitter: http://www.twitter.com/kinabalu
Eco-Tip: Printing e-mails is usually a waste.
========================================================
This message is for the named person's use only. You must not, directly or indirectly, use,
disclose, distribute, print, or copy any part of this message if you are not the intended recipient.
========================================================