diff options
author | Matthias Hecker <apoc@sixserv.org> | 2013-11-25 02:26:44 +0000 |
---|---|---|
committer | Matthias Hecker <apoc@sixserv.org> | 2013-12-04 23:52:29 +0000 |
commit | 4edbafeae8a68476b0cb6faa121715303eedaa1d (patch) | |
tree | e5b658a7008d6333f83bb73fb7085d0d729628a2 /lib/rbot/language.rb | |
parent | 3a6abd145f03aee8bcf1e3aab38f94e80860b18d (diff) |
gettext: change depricated and removed setlocale
Diffstat (limited to 'lib/rbot/language.rb')
-rw-r--r-- | lib/rbot/language.rb | 2 |
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 |