Language resources
Update or create localized messages
You will find French and English language resources files in nuxeo-platform-lang/src/main/resources/web/nuxeo.war/WEB-INF/classes living in https://github.com/nuxeo/nuxeo-features/ GitHub repository.
Other language translations live in http://hg.nuxeo.org/addons/nuxeo-platform-lang-ext
To edit a language file, we recommend using either:
- a standalone resource editor: http://resourcebundleeditor.dev.java.net/
- an eclipse plugin: http://sourceforge.net/projects/eclipse-rbe
You should create your translations from messages_en.properties or messages_fr.properties since only those are maintained by Nuxeo developers.
Once you have added your new properties file, you need to modify the deployment-fragment.xml file adding a new entry with your locale:
For Nuxeo versions before 5.4.3, extension target is "faces-config#APPLICATION" |
Build and test
To test, build with Maven the modified nuxeo-platform-lang or(and) nuxeo-platform-lang-ext module(s) and copy it(them) into the bundles directory ($NUXEO_HOME/server/default/deploy/nuxeo.ear/bundles/ for JBoss or $NUXEO_HOME/nxserver/bundles/ for Tomcat).
Contribute
Please contribute your translation work back to Nuxeo so that other users can benefit from, and improve upon, your work.
Login page
By default, language is defined following the OS or browser locale settings. However, the language used after login may be forced using the language selector.
If you contribute a new language to Nuxeo, we'll update the login page.
If you need to temporarily patch it for testing purpose, the login.jsp page is located in nuxeo-platform-webapp/src/main/resources/web/nuxeo.war/ living in http://github.com/nuxeo/nuxeo-dm repository.
If you want to permanently overwrite the default login.jsp page with your own, the good practice is to create a plugin for Nuxeo rather than editing Nuxeo source code.
2 Comments
Hide/Show CommentsJan 19, 2011
Anonymous
for a tomcat distribution, copy jars in nxserver/bundles, right ?
Feb 16, 2011
Wojciech Sulejman
Yes, that's correct.