]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/load-gettext.rb
GetText: add Config.datadir-based locale search path.
[user/henk/code/ruby/rbot.git] / lib / rbot / load-gettext.rb
index e6c605d92c60f9aa71a21dc6e247e38859d3b446..e95d406837ccecceee52d43af7dcc1f792c4fef1 100644 (file)
@@ -22,6 +22,8 @@ begin
 
   include GetText
 
+  add_default_locale_path(File.join(Irc::Config.datadir, "../locale/%{locale}/LC_MESSAGES/%{name}.mo"))
+
   bindtextdomain 'rbot'
 
   module GetText