diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2007-11-22 04:32:32 +0000 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2007-11-22 04:32:32 +0000 |
commit | 346e0a81f3dfa57ecd7a3f960e8dd1ef5091a1df (patch) | |
tree | 83c55f4b27a2b12aafb4c42d927ea2481495dd47 /lib/rbot/language.rb | |
parent | 607482763bfd76b7e749cad80a83ff7157d37026 (diff) |
language.rb: add '.UTF-8' to Lang2Locale values to make gettext use UTF-8 on WIN32
Diffstat (limited to 'lib/rbot/language.rb')
-rw-r--r-- | lib/rbot/language.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/language.rb b/lib/rbot/language.rb index 3e4c77f0..67114dac 100644 --- a/lib/rbot/language.rb +++ b/lib/rbot/language.rb @@ -27,6 +27,8 @@ class Bot :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')} # Return the shortest language for the current # GetText locale |