]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/plugins.rb
each plugin uses its own po file
[user/henk/code/ruby/rbot.git] / lib / rbot / plugins.rb
index 250efa017c9859addc4f3f3e934b53eb0065768e..d1bf073ac0e12132b1c9beeeb46959c56acb7d59 100644 (file)
@@ -533,6 +533,8 @@ module Plugins
       # the idea here is to prevent namespace pollution. perhaps there
       # is another way?
       plugin_module = Module.new
+      # each plugin uses its own textdomain, we bind it automatically here
+      bindtextdomain_to(plugin_module, "rbot-#{File.basename(fname, '.rb')}")
 
       desc = desc.to_s + " " if desc