From: Yaohan Chen Date: Mon, 23 Jun 2008 20:30:59 +0000 (-0400) Subject: Set GetText.cached = false so that mo files are reloaded when setting locale X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=1bcdc4564e385eea7ca686599ae826d75aa2332a;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Set GetText.cached = false so that mo files are reloaded when setting locale --- diff --git a/lib/rbot/load-gettext.rb b/lib/rbot/load-gettext.rb index 22588c47..f2574af0 100644 --- a/lib/rbot/load-gettext.rb +++ b/lib/rbot/load-gettext.rb @@ -24,6 +24,7 @@ begin add_default_locale_path(File.join(Irc::Bot::Config.datadir, "../locale/%{locale}/LC_MESSAGES/%{name}.mo")) + GetText.cached = false bindtextdomain 'rbot' module GetText