Re: localize options DropDownChoice

2010-07-08 Thread Sven Meier

By default option values are indexed based and not part of
internationalization. Use IChoiceRenderer#getIdValue().

Sven
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/localize-options-DropDownChoice-tp2281778p2281892.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



localize options DropDownChoice

2010-07-07 Thread always_rick

I am trying to localize select's option. Do I have to load several lists,
which represent a different language? That's too complicated.

e.g.  
option value=1day/option
option value=7week/option
option value=30month/option
option value=365year/option

to 

option value=1天/option
option value=7周/option
option value=30月/option
option value=365年/option



I read Sven Meier's post, which is helpful, but didn't solve the problem
completely.
http://apache-wicket.1842946.n4.nabble.com/Internationalizing-a-DDC-td1869877.html

Without ChoiceRender wicket set value list to 0, 1, 2, 3 ... ...

e.g.

properties file:

inputForm.period.1=天
inputForm.period.7=周
inputForm.period.30=月
inputForm.period.365=年

output html:

option value=0天/option
option value=1周/option
option value=2月/option
option value=3年/option


So, did I miss something? or there is another approach? I am struggling with
the problem. 

Any help I will be really appreciated.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/localize-options-DropDownChoice-tp2281778p2281778.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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