diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2008-06-07 14:30:33 -0400 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2008-06-07 14:37:44 -0400 |
commit | caffbfa94b84569fb64ed6ecb68f9ca960deca2a (patch) | |
tree | 75a037f615d9ec22a985bcda5abf9c377918f4a8 /lib/rbot/plugins.rb | |
parent | ebaa073546ad022d0e42389459e4fa0029a0e50d (diff) |
recommit 33c336af346dc08b4f4f4951dd6eae7150cef481 po file per plugin
each plugin uses its own po file, no change required for plugin source, Rakefile,
plugin loader and gettext loader are modified to adjust to the change
Diffstat (limited to 'lib/rbot/plugins.rb')
-rw-r--r-- | lib/rbot/plugins.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index 250efa01..d1bf073a 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -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 |