diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2008-06-23 16:30:59 -0400 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2008-06-23 16:33:38 -0400 |
commit | 1bcdc4564e385eea7ca686599ae826d75aa2332a (patch) | |
tree | 267008606fd2f204597541b3ac69255a2fda6ce7 /lib | |
parent | 26d2e36ff08de4e3bbf510616d4c8dac6da9d6d0 (diff) |
Set GetText.cached = false so that mo files are reloaded when setting locale
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/load-gettext.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |