-
Notifications
You must be signed in to change notification settings - Fork 117
Translations
DMPRoadmap uses the translation gem for managing internationalization. The translation gem manages both the Gettext and I18n translations. The Gettext files are located in config/locale and consist of a master app.pot file and separate [language_code]/app.po files for each translation. If a client domain is specified, there will be additional client.pot and client.po files within those directories.
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 config/locales/ directory.
Every language must have corresponding files for Gettext 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.
For example en is the ISO 639 code for English and en-US 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 Gettext uses an underscore for its file names and not a dash (e.g. en_GB instead of en-GB). The translation gem will convert between the Gettext and I18n styles of language-abbreviation.
- Home
- About
- Contributing
- Releases
- Themes
- Google Analytics
- Translations
- Developer guide
- Reporting Issues

