Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

correct japanese, chinese & portuguese locale codes

  • Loading branch information...
commit 4b90732a7c768b1efc84e59a805131d5d6bf6b51 1 parent e32021e
Simon Tokumine authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 app/models/tolk/locale.rb
View
9 app/models/tolk/locale.rb
@@ -25,7 +25,7 @@ class Locale < ActiveRecord::Base
'id' => 'Indonesian',
'is' => 'Icelandic',
'it' => 'Italian',
- 'jp' => 'Japanese',
+ 'ja' => 'Japanese',
'ko' => 'Korean',
'lo' => 'Lao',
'lt' => 'Lithuanian',
@@ -34,8 +34,8 @@ class Locale < ActiveRecord::Base
'nl' => 'Dutch',
'no' => 'Norwegian',
'pl' => 'Polish',
- 'pt-BR' => 'Portuguese (Brazilian)',
- 'pt-PT' => 'Portuguese (Portugal)',
+ 'pt-br' => 'Portuguese (Brazilian)',
+ 'pt-pt' => 'Portuguese (Portugal)',
'ro' => 'Romanian',
'ru' => 'Russian',
'se' => 'Swedish',
@@ -47,7 +47,8 @@ class Locale < ActiveRecord::Base
'tr' => 'Turkish',
'uk' => 'Ukrainian',
'vi' => 'Vietnamese',
- 'zh' => 'Chinese'
+ 'zh-cn' => 'Chinese (Simplified)',
+ 'zh-tw' => 'Chinese (Traditional)'
}
has_many :phrases, :through => :translations, :class_name => 'Tolk::Phrase'
Please sign in to comment.
Something went wrong with that request. Please try again.