Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ence + wikipedia iso 639-2 page
  • Loading branch information...
commit 02a26f7e4d31f12fe3cdda17881fff30b620d5f1 1 parent 8ffd8f4
Fabio Cantoni authored
Showing with 21 additions and 12 deletions.
  1. +21 −12 app/models/tolk/locale.rb
33 app/models/tolk/locale.rb
View
@@ -3,14 +3,15 @@ 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',
@@ -18,37 +19,45 @@ class Locale < ActiveRecord::Base
'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'
Please sign in to comment.
Something went wrong with that request. Please try again.