MakerNet can only run in a single language but this language can easily be changed.
Check the files located in config/locales:
- Front app translations (angular.js) are located in
config/locales/app.scope.XX.yml. Where scope has one the following meaning :- admin: translations of the administrator views (manage and configure the FabLab).
- logged: translations of the end-user's views accessible only to connected users.
- public: translation of end-user's views publicly accessible to anyone.
- shared: translations shared by many views (like forms or buttons).
- Back app translations (Ruby on Rails) are located in
config/locales/XX.yml. - Emails translations are located in
config/locales/mails.XX.yml. - Messages related to the authentication system are located in
config/locales/devise.XX.yml.
If you plan to translate the application to a new locale, please consider that the reference translation is French.
Indeed, in some cases, the English texts/sentences can seem confuse or lack of context as they were originally translated from French.
To prevent syntax mistakes while translating locale files, we STRONGLY advise you to use a text editor witch support syntax coloration for YML and Ruby.
Front-end translations uses angular-translate with some interpolations interpreted by angular.js and other interpreted by MessageFormat. These two kinds of interpolation use a near but different syntax witch SHOULD NOT be confused. Please refer to the official angular-translate documentation before translating.
Back-end translations uses the Ruby on Rails syntax but some complex interpolations are interpreted by MessageFormat and are marked as it in comments. DO NOT confuse the syntaxes.
In each cases, some inline comments are included in the localisation files. They can be recognized as they start with the sharp character (#). These comments are not required to be translated, they are intended to help the translator to have some context information about the sentence to translate.
Locales configurations are made in config/application.yml.
If you are in a development environment, your can keep the default values, otherwise, in production, values must be configured carefully.
See the lozalization variables for the Makernet environment configuration.
After modifying any values concerning the localisation, restart the application (ie. web server) to apply these changes in the i18n configuration.