summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/language.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/language.rb b/lib/rbot/language.rb
index ae750ad9..7193c39e 100644
--- a/lib/rbot/language.rb
+++ b/lib/rbot/language.rb
@@ -78,7 +78,7 @@ class Bot
lang_str = language.to_s.downcase.gsub(/\s+/,'_')
lang_sym = lang_str.intern
if defined?(GetText) and Lang2Locale.key?(lang_sym)
- setlocale(Lang2Locale[lang_sym])
+ GetText.set_locale(Lang2Locale[lang_sym])
debug "locale set to #{locale}"
rbot_gettext_debug
else