Skip to content

Adding new languages translations

Robin Dunlop edited this page Sep 21, 2013 · 1 revision

The Public-facing portion of the Registration system is currently translated into 2 languages:

  • English
  • French

The Administrative portion of the system is only in English at this time.

Contributing a new language

If you want to provide a new language, 2 different sets of translations must be provided:

  1. The Common set of text (found in /config/locales/en.yml)
  2. The Convention-specific set of texts:
  • Category Names (Road Racing, Track, etc)
  • Event Choice Names (Team Captain, Best Time, etc)
  • Convention Descriptions (Short Name, Long Name, Dates, Location)
  • Expense Group Names (T-Shirts, etc)
  • Expense Item Name/Description (Medium Men's T-Shirt, etc)
  • Registration Period Names (Early Registration, etc)

The Common set can be committed to the codebase, but the Convention-Specific set must be added to the database.

In order to enable a new language in the interface, add it to the list of languages

# /app/helpers/language_helper.rb

  @@languages = [
    {:short_name => :en, :long_name => "English"},
    {:short_name => :fr, :long_name => "French"}
  ]
  def

Once added, all admin interfaces will display the 3rd language wherever names/descriptions are set.