Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
DMPRoadmap uses the FastGettext gem for managing internationalization. The FastGettext files are located in
config/locale and consist of a master
app.pot file and separate
[language_code]/app.po files for each translation.
Several of the gems we use however continue to use the standard Rails I18n system so their specific translations files continue to reside in the
Every language must have corresponding files for FastGettext and I18n.
For a list of currently supported languages, please refer to the ./config/locale directory.
To add a new language or update an existing translation you can follow one of two routes. The first is via an online web portal system called Pootle and the other is to manually update the app.po file directly. Please refer to the following sections for instructions:
You should use the ISO 639-1 language codes when creating a new translation. If you need/want to create a country specific variation for one of the ISO 639 macro-languages you should use the ISO 3166 2 character alpha codes to designate the country/region.
en is the ISO 639 code for English and
en-GB are the ISO 3166 country code specific variations for the United States and Great Britain. If you are uncertain which code to use, please contact the DMPRoadmap project team.
Please note that FastGettext uses an underscore for its file names and not a dash (e.g.
en_GB instead of