internationalization « playframework « Java Enterprise Q&A





1. Java Playframework Internationalization doesn't work    stackoverflow.com

I used the instructions from here: http://www.playframework.org/documentation/1.2.1/i18n and created files for different languages. I call play.i18n.Lang.change method to change the language file, and it still takes the captions from the English file ...

2. Play framework i18n and urls    stackoverflow.com

I want to be able to do the following:

&{"some.i18n.key",@Secure.logout}
i get this error
play.exceptions.TemplateCompilationException: unable to resolve class secure.logout , unable to find class for annotation
if I do
#{set 'logoutUrl'}@{secure.logout}#{/set}
&{"some.i18n.key",logoutUrl}
it works just fine Do ...

3. How do I translate #{get 'title' /} in a Play template?    stackoverflow.com

I have a template (main.html) with #{get 'title' /}, and I want it translated using the &{'title'} tag, but obviously I can't do

&{ #{get 'title'/} }
What is the proper way to ...

4. How can I divide i18n resources into several files?    stackoverflow.com

Instead of putting all the i18n resources into a single message file, I want to divide them into several files. Anybody can kindly tell me how can I do that? because ...