- # This constant hash holds the mapping
- # from long language names to the usual POSIX
- # locale specifications
- Lang2Locale = {
- :english => 'en',
- :british_english => 'en_GB',
- :american_english => 'en_US',
- :italian => 'it',
- :french => 'fr',
- :german => 'de',
- :dutch => 'nl',
- :japanese => 'ja',
- :russian => 'ru',
- :traditional_chinese => 'zh_TW',
- :simplified_chinese => 'zh_CN'
- }
+ # This constant hash holds the mapping
+ # from long language names to the usual POSIX
+ # locale specifications
+ Lang2Locale = {
+ :english => 'en',
+ :british_english => 'en_GB',
+ :american_english => 'en_US',
+ :italian => 'it',
+ :french => 'fr',
+ :german => 'de',
+ :dutch => 'nl',
+ :japanese => 'ja',
+ :russian => 'ru',
+ :traditional_chinese => 'zh_TW',
+ :simplified_chinese => 'zh_CN'
+ }
+ # On WIN32 it appears necessary to have ".UTF-8" explicitly for gettext to use UTF-8
+ Lang2Locale.each_value {|v| v.replace(v + '.UTF-8')}