From 346e0a81f3dfa57ecd7a3f960e8dd1ef5091a1df Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Thu, 22 Nov 2007 04:32:32 +0000 Subject: language.rb: add '.UTF-8' to Lang2Locale values to make gettext use UTF-8 on WIN32 --- lib/rbot/language.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3