Permalink
Browse files

Added a bunch more language mappings

  • Loading branch information...
1 parent 58e78ee commit 3b87a7363274c7368a73a4e40cc7de5c31f10be3 @dhh committed May 6, 2010
Showing with 45 additions and 17 deletions.
  1. +45 −17 app/models/tolk/locale.rb
View
62 app/models/tolk/locale.rb
@@ -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',
@komagata
komagata Jun 13, 2010

Japanese Language-code is "ja". not "jp". "jp" is Country-Code of Japan.

http://joeclark.org/book/sashay/serialization/AppendixB.html

+ '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'

0 comments on commit 3b87a73

Please sign in to comment.