Community contributed extensions

Importing/Exporting i18n resource files from Nemrod

With this module, you can export and import your i18n resource files from Nemrod.
See here for more information about Nemrod : http://www.nemrod-software.com

Install the ‘nemrod’ module

typing 'play install nemrod':

~$ play install nemrod
~        _            _
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/
~
~ play! 1.2, http://www.playframework.org
~
~ Will install nemrod-1.0
~ This module is compatible with: 1.2.3
~ Do you want to install this version (y/n)? y
~ Installing module nemrod-1.0...
~
~ Fetching http://www.playframework.org/modules/nemrod-1.0.zip
~ [--------------------------100%-------------------------] 0.0 KiB/s
~ Unzipping...
~
~ Module nemrod-1.0 is installed!
~ You can now use it by add adding this line to application.conf file:
~
~ module.nemrod=${play.path}/modules/nemrod-1.0
~

Import i18n resource file from Nemrod

Now you can import your i18n resource file from Nemrod. When importing from Nemrod you will download all the messages* files for every languages you choosed to support.

~$ play nemrod:import
~        _            _
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/
~
~ play! 1.2, http://www.playframework.org
~
~ Import:
~ Project: Nemrod
~ url: http://live.nemrod-software.com/
~
~
~ Downloading: E:\Developpement\checkout\hakatech\Burton/conf/messages.fr Bytes: 192
~ Downloading: E:\Developpement\checkout\hakatech\Burton/conf/messages.en Bytes: 198
~ Downloading: E:\Developpement\checkout\hakatech\Burton/conf/messages Bytes: 198
~       198  [100.00%]
# nemrod configuration
# project name to retrieve on nemrod
nemrod.project.name=Nemrod
# nemrod url
nemrod.url=http://live.nemrod-software.com/
# nemrod login
nemrod.login=yourLoginOnNemrod
# nemrod password
nemrod.password=password
# export only approved values
nemrod.onlyapprovedvalues=False
# export empty values
nemrod.exportemptyvalues=True
# i18n
# ~~~~~
# Define locales used by your application.
# You can then place localized messages in conf/messages.{locale} files
application.langs=fr,en

Note that it is important to parameterize the same languages in Nemrod and in application.langs.

Export to Nemrod

Coming soon...