internationalization « playframework « Java Enterprise Q&A

Home
Java Enterprise Q&A
1.activemq
2.Ant
3.aspectj
4.axis
5.cxf
6.deploy
7.Development
8.ear
9.eclipse
10.ehcache
11.ejb
12.flex
13.grails
14.jax
15.jaxb
16.JBoss
17.jbpm
18.jdo
19.jersey
20.jetty
21.jms
22.jmx
23.jndi
24.junit
25.ldap
26.Library
27.log4j
28.netbeans
29.osgi
30.playframework
31.portlet
32.quartz
33.rabbitmq
34.restful
35.security
36.Session
37.soap
38.tapestry
39.Web Service
40.weblogic
41.websphere
42.wicket
43.workflow
44.wsdl
Java Enterprise Q&A » playframework » internationalization 

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 ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.