Re: [Wicket-user] Question about i18n

2006-11-02 Thread Carfield Yim
A new question about wicket:message tag, can I specific some standard postprocessing? I like to do that because the message may or may be use in Javascript. In some language there may be contain single quote that the original message don't have, which, break the javascript string. In order to

Re: [Wicket-user] Question about i18n

2006-11-02 Thread Igor Vaynberg
you need to create your own tagsee WicketMessageResolver-igorOn 11/2/06, Carfield Yim [EMAIL PROTECTED] wrote:A new question about wicket:message tag, can I specific some standard postprocessing?I like to do that because the message may or may be use in _javascript_.In some language there may be

[Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Have read these two page: http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket Look like I have 2 options: 1) Have a of of span wicket:id=xxx/span at HTML and fill all those span at Java code. 2) Have a lot of

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Erik van Oosten
Hi Carfield, There is also the wicket:message tag. I am trying to find documentation on the wiki but I failed. I guess you'll have to google for it. Erik. Carfield Yim schreef: Have read these two page: http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Thanks for pointing out this, this is very useful. However according to http://wicketframework.org/wicket-1.1/apidocs/wicket/WicketMessageResolver.html Look like if for page class MyPage.class, then it will use the bundle define at MyPage_[locate].properties, right? However, I guess most people

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Martijn Dashorst
MyApplication.properties MyApplication_nl_NL.properties MyApplication_fr.properties MyApplication_bg.properties MyApplication_jp.properties Martijn On 11/1/06, Carfield Yim [EMAIL PROTECTED] wrote: Thanks for pointing out this, this is very useful. However according to

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Erik van Oosten
Wicket will search all resource files with the names equal to the components in your component hierarchy, with your application as a last resort (as Martin shows in his e-mail). So for a MyApplication, with a MyPage containing a MyPanel Wicket will look in: 1. MyPanel.properties (and _locale

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Excellent! On 11/2/06, Erik van Oosten [EMAIL PROTECTED] wrote: Wicket will search all resource files with the names equal to the components in your component hierarchy, with your application as a last resort (as Martin shows in his e-mail). So for a MyApplication, with a MyPage containing a

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
sorry, one more question, can I involve messageformat class from wicket:message tag? On 11/2/06, Carfield Yim [EMAIL PROTECTED] wrote: Excellent! On 11/2/06, Erik van Oosten [EMAIL PROTECTED] wrote: Wicket will search all resource files with the names equal to the components in your

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Igor Vaynberg
no, since wicket:message takes no arguments there is no need for messageformatthe output is the exact string defined in the properties file for the specified key.-igor On 11/1/06, Carfield Yim [EMAIL PROTECTED] wrote: sorry, one more question, can I involve messageformat class fromwicket:message

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Thanks. By the way I just found that the key must existed otherwise the application will not run. I personally think as there is already default message for that tag, may be we don't need to make it as requirement of have key at bundle? On 11/1/06, Martijn Dashorst [EMAIL PROTECTED] wrote:

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Please ignore this, I just make some other mistake at my code and lead me think the tag work in this way, in fact the key is not a requirement as I expected before On 11/2/06, Carfield Yim [EMAIL PROTECTED] wrote: Thanks. By the way I just found that the key must existed otherwise the