You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by OjO <fa...@washington.edu> on 2009/06/29 21:40:02 UTC

Re: improved resource bundles in 1.4

I wonder if it is possible to simply make "getString" work for retrieving
localized string in constructor in the next patch. The code would be much
cleaner without the "new ResourceModel" or "getLocalizer().getString...".


igor.vaynberg wrote:
> 
> i just committed a patch for WICKET-1103 which greatly improves i18n in
> wicket.
> 
> first: you can have validators provide their own bundles. eg
> MyValidator.properties that is next to MyValidator.java. These keys
> are searched last - after the application.properties - which will
> allow you to override validator bundle values if needed.
> 
> second: there is now support for package-level properties, which live
> in a bundle called package.properties. this means that you can have
> each logical application module have its own global bundle rather then
> having to stick everything into application.properties.
> 
> this is a first pass so i am looking forward to any problems you guys
> find. enjoy.
> 
> -igor
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/improved-resource-bundles-in-1.4-tp20241339p24259941.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: improved resource bundles in 1.4

Posted by Igor Vaynberg <ig...@gmail.com>.
no. i18n resources depend on the component hierarchy which is not
known in a constructor of a component.

-igor

On Mon, Jun 29, 2009 at 12:40 PM, OjO<fa...@washington.edu> wrote:
>
> I wonder if it is possible to simply make "getString" work for retrieving
> localized string in constructor in the next patch. The code would be much
> cleaner without the "new ResourceModel" or "getLocalizer().getString...".
>
>
> igor.vaynberg wrote:
>>
>> i just committed a patch for WICKET-1103 which greatly improves i18n in
>> wicket.
>>
>> first: you can have validators provide their own bundles. eg
>> MyValidator.properties that is next to MyValidator.java. These keys
>> are searched last - after the application.properties - which will
>> allow you to override validator bundle values if needed.
>>
>> second: there is now support for package-level properties, which live
>> in a bundle called package.properties. this means that you can have
>> each logical application module have its own global bundle rather then
>> having to stick everything into application.properties.
>>
>> this is a first pass so i am looking forward to any problems you guys
>> find. enjoy.
>>
>> -igor
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/improved-resource-bundles-in-1.4-tp20241339p24259941.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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