Skip to content

Commit

Permalink
Added a bunch more language mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed May 6, 2010
1 parent 58e78ee commit 3b87a73
Showing 1 changed file with 45 additions and 17 deletions.
62 changes: 45 additions & 17 deletions app/models/tolk/locale.rb
Expand Up @@ -3,23 +3,51 @@ class Locale < ActiveRecord::Base
set_table_name "tolk_locales"

MAPPING = {
'en' => 'English',
'zh' => 'Chinese',
'bt' => 'Bulgarian',
'de' => 'German',
'el' => 'Greek',
'es' => 'Spanish',
'da' => 'Danish',
'fr' => 'French',
'se' => 'Swedish',
'no' => 'Norwegian',
'nl' => 'Dutch',
'jp' => 'Japanese',
'ru' => 'Russian',
'it' => "Italian",
'pl' => "Polish",
'pt-BR' => "Portuguese (Brazilian)",
'sl' => "Slovak"
'ar' => 'Arabic',
'bs' => 'Bosnian',
'bt' => 'Bulgarian',
'ca' => 'Catalan',
'cz' => 'Czech',
'da' => 'Danish',
'de' => 'German',
'dsb' => 'Lower Sorbian',
'el' => 'Greek',
'en' => 'English',
'es' => 'Spanish',
'et' => 'Estonian',
'fa' => 'Persian',
'fi' => 'Finnish',
'fr' => 'French',
'he' => 'Hebrew',
'hr' => 'Croatian',
'hsb' => 'Upper Sorbian',
'hu' => 'Hungarian',
'id' => 'Indonesian',
'is' => 'Icelandic',
'it' => 'Italian',
'jp' => 'Japanese',
'ko' => 'Korean',
'lo' => 'Lao',
'lt' => 'Lithuanian',
'lv' => 'Latvian',
'mk' => 'Macedonian',
'nl' => 'Dutch',
'no' => 'Norwegian',
'pl' => 'Polish',
'pt-BR' => 'Portuguese (Brazilian)',
'pt-PT' => 'Portuguese (Portugal)',
'ro' => 'Romanian',
'ru' => 'Russian',
'se' => 'Swedish',
'sk' => 'Slovak',
'sl' => 'Slovenian',
'sr' => 'Serbian',
'sw' => 'Swahili',
'th' => 'Thai',
'tr' => 'Turkish',
'uk' => 'Ukrainian',
'vi' => 'Vietnamese',
'zh' => 'Chinese'
}

has_many :phrases, :through => :translations, :class_name => 'Tolk::Phrase'
Expand Down

0 comments on commit 3b87a73

Please sign in to comment.