Adding a locale

ma2gedev edited this page Dec 3, 2014 · 8 revisions
Clone this wiki locally
  1. Create a <locale>.yml file in config/ using the relevant two-letter ISO language code.

    For example, en.yml for English, fr.yml for French, etc.

  2. Use en.yml as a reference to translate the variables

  3. Include your locale in
  4. Get the country image for your language from this dropbox folder, rename it to match the name of the locale, and place it in app/assets/images/flags.
  5. Don't forget to add the translated version of your language in en.yml under the locale namespace!

If you then run the application, you should see an option for the language (along with the flag image next to it) in the Language dropdown!