h1. Importing/Exporting i18n resource files from Nemrod 

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


h2. Install the 'nemrod' module

typing '**play install nemrod**':

bc. ~$ 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
~

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

bc. ~$ play nemrod:import
~        _            _
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/
~
~ play! 1.2, http://www.playframework.org
~
~ Import:
~ Project: Nemrod
~ login: myuser
~ url: http://live.nemrod-software.com/
~
~
12:15:02,161 INFO  ~ Download file=E:\Developpement\checkout\hakatech\Nemrod\conf\messages.fr - OK
12:15:03,950 INFO  ~ Download file=E:\Developpement\checkout\hakatech\Nemrod\conf\messages.en - OK
~ copy E:\Developpement\checkout\hakatech\Nemrod\conf\messages.fr to default bundle

bc. # ------------ Nemrod ------------------
# project name to retrieve on nemrod
nemrod.project.name=Nemrod
# nemrod login
nemrod.login=myuser
# nemrod password
nemrod.pwd=mypwd
# nemrod url
nemrod.url=http://live.nemrod-software.com/
# export only approved values
nemrod.onlyapprovedvalues=False
# export empty values
nemrod.exportemptyvalues=False
nemrod.defaultlang=fr
# 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 possible to give login, password or url on the command line parameters instead of setting the parameters in the configuration file.

bc. ~$ play nemrod:import --login myuser --pwd mypwd --url http://live.nemrod-software.com