summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2008-06-07 13:45:56 -0400
committerYaohan Chen <yaohan.chen@gmail.com>2008-06-07 13:45:56 -0400
commitebaa073546ad022d0e42389459e4fa0029a0e50d (patch)
tree5408d2b68a455b42ed61d8c5008b88910d9a19a8 /data/rbot/plugins
parentb233d010765808cfbf34dc763ab9013968212981 (diff)
mark spell plugin for gettext
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/spell.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/data/rbot/plugins/spell.rb b/data/rbot/plugins/spell.rb
index 199af3c6..659befa6 100644
--- a/data/rbot/plugins/spell.rb
+++ b/data/rbot/plugins/spell.rb
@@ -1,10 +1,10 @@
class SpellPlugin < Plugin
def help(plugin, topic="")
- "spell <word> => check spelling of <word>, suggest alternatives"
+ _("spell <word> => check spelling of <word>, suggest alternatives")
end
def privmsg(m)
unless(m.params && m.params =~ /^\S+$/)
- m.reply "incorrect usage: " + help(m.plugin)
+ m.reply _("incorrect usage: ") + help(m.plugin)
return
end
p = IO.popen("ispell -a -S", "w+")
@@ -13,7 +13,7 @@ class SpellPlugin < Plugin
p.close_write
p.each_line {|l|
if(l =~ /^\*/)
- m.reply "#{m.params} may be spelled correctly"
+ m.reply (_("%{word} may be spelled correctly") % {:word => m.params})
p.close
return
elsif(l =~ /^\s*&.*: (.*)$/)
@@ -21,18 +21,18 @@ class SpellPlugin < Plugin
p.close
return
elsif(l =~ /^\s*\+ (.*)$/)
- m.reply "#{m.params} is presumably derived from " + $1.downcase
+ m.reply (_("%{word} is presumably derived from ") % {:word => m.params}) + $1.downcase
p.close
return
elsif(l =~ /^\s*#/)
- m.reply "#{m.params}: no suggestions"
+ m.reply (_("%{word}: no suggestions") % {:word => m.params})
p.close
return
end
}
p.close
else
- m.reply "couldn't exec ispell :("
+ m.reply _("couldn't exec ispell :(")
return
end
end