Permalink
Browse files

Fixed the languages codes and names using the gtranslate api v1 refer…

…ence + wikipedia iso 639-2 page
  • Loading branch information...
1 parent 8ffd8f4 commit 02a26f7e4d31f12fe3cdda17881fff30b620d5f1 Fabio committed Nov 26, 2010
Showing with 21 additions and 12 deletions.
  1. +21 −12 app/models/tolk/locale.rb
View
@@ -3,52 +3,61 @@ class Locale < ActiveRecord::Base
set_table_name "tolk_locales"
MAPPING = {
+ 'af' => 'Afrikaans',
'ar' => 'العربية',
- 'bs' => 'Bosanski jezik',
- 'bt' => 'български език',
+ 'be' => 'Беларуская мова',
+ 'bg' => 'български език',
'ca' => 'Català',
- 'cz' => 'Čeština',
+ 'cs' => 'Čeština',
+ 'cy' => 'Cymraeg',
'da' => 'Dansk',
'de' => 'Deutsch',
- 'dsb' => 'Dolnoserbski',
'el' => 'Ελληνικά',
'en' => 'English',
'es' => 'Español',
'et' => 'Eesti keel',
'fa' => 'فارسی',
'fi' => 'Suomi',
'fr' => 'Français',
- 'he' => 'עִבְרִית, עברית',
+ 'ga' => 'Gaeilge',
+ 'gl' => 'Galego',
+ 'hi' => 'हिन्दी',
'hr' => 'Hrvatski jezik',
- 'hsb' => 'Hornjoserbsce',
+ 'ht' => 'Kreyòl ayisyen',
'hu' => 'Magyar',
'id' => 'Bahasa Indonesia',
'is' => 'íslenska',
'it' => 'Italiano',
+ 'iw' => 'עִבְרִית, עברית',
'ja' => '日本語',
'ko' => '한국어',
- 'lo' => 'ພາສາລາວ',
'lt' => 'Lietuvių kalba',
'lv' => 'Latviešu valoda',
'mk' => 'македонски јазик',
+ 'ms' => 'Bahasa Melayu',
+ 'mt' => 'Malti',
'nl' => 'Nederlands',
'no' => 'Norsk',
'pl' => 'Polski',
- 'pt-br' => 'Português (Brazilian)',
- 'pt-pt' => 'Português (Portugal)',
+ 'pt' => 'Português (Brazilian)',
+ 'pt-PT' => 'Português (Portugal)',
'ro' => 'Română',
'ru' => 'русский язык',
- 'se' => 'Svenska',
'sk' => 'Slovenčina',
'sl' => 'Slovenščina',
+ 'sq' => 'Shqip',
'sr' => 'српски језик',
+ 'sv' => 'Svenska',
'sw' => 'Kiswahili',
'th' => 'ภาษาไทย',
+ 'tl' => 'Wikang Tagalog',
'tr' => 'Türkçe',
'uk' => 'українська мова',
'vi' => 'Tiếng Việt',
- 'zh-cn' => '中文 (Simplified)',
- 'zh-tw' => '中文 (Traditional)'
+ 'yi' => 'ייִדיש',
+ 'zh' => '中文',
+ 'zh-CN' => '中文 (Simplified)',
+ 'zh-TW' => '中文 (Traditional)'
}
has_many :phrases, :through => :translations, :class_name => 'Tolk::Phrase'

0 comments on commit 02a26f7

Please sign in to comment.