Permalink
Browse files

correct japanese, chinese & portuguese locale codes

  • Loading branch information...
Simon Tokumine
Simon Tokumine committed Jul 18, 2010
1 parent e32021e commit 4b90732a7c768b1efc84e59a805131d5d6bf6b51
Showing with 5 additions and 4 deletions.
  1. +5 −4 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'

0 comments on commit 4b90732

Please sign in to comment.