From 1bcdc4564e385eea7ca686599ae826d75aa2332a Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Mon, 23 Jun 2008 16:30:59 -0400 Subject: Set GetText.cached = false so that mo files are reloaded when setting locale --- lib/rbot/load-gettext.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 -- cgit v1.2.3