From 4edbafeae8a68476b0cb6faa121715303eedaa1d Mon Sep 17 00:00:00 2001 From: Matthias Hecker Date: Mon, 25 Nov 2013 02:26:44 +0000 Subject: gettext: change depricated and removed setlocale --- lib/rbot/language.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3