From 186d8816d5d2d0db8fb570fd2401066b4fe8b089 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 20 Jun 2008 01:55:18 +0200 Subject: quotes plugin: more localization --- data/rbot/plugins/quotes.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/quotes.rb b/data/rbot/plugins/quotes.rb index 7ad6d570..b3cf49cd 100644 --- a/data/rbot/plugins/quotes.rb +++ b/data/rbot/plugins/quotes.rb @@ -122,23 +122,23 @@ class QuotePlugin < Plugin def help(plugin, topic="") case topic when "addquote" - return "addquote [] => Add quote for channel . You only need to supply if you are addressing #{@bot.nick} privately. Responds to !addquote without addressing if so configured" + _("addquote [] => Add quote for channel . You only need to supply if you are addressing %{nick} privately.") % { :nick => @bot.nick } when "delquote" - return "delquote [] => delete quote from with number . You only need to supply if you are addressing #{@bot.nick} privately. Responds to !delquote without addressing if so configured" + _("delquote [] => delete quote from with number . You only need to supply if you are addressing %{nick} privately.") % { :nick => @bot.nick } when "getquote" - return "getquote [] [] => get quote from with number . You only need to supply if you are addressing #{@bot.nick} privately. Without , a random quote will be returned. Responds to !getquote without addressing if so configured" + _("getquote [] [] => get quote from with number . You only need to supply if you are addressing %{nick} privately. Without , a random quote will be returned.") % { :nick => @bot.nick } when "searchquote" - return "searchquote [] => search for quote from that matches . You only need to supply if you are addressing #{@bot.nick} privately. Responds to !searchquote without addressing if so configured" + _("searchquote [] => search for quote from that matches . You only need to supply if you are addressing %{nick} privately.") % { :nick => @bot.nick } when "topicquote" - return "topicquote [] [] => set topic to quote from with number . You only need to supply if you are addressing #{@bot.nick} privately. Without , a random quote will be set. Responds to !topicquote without addressing if so configured" + _("topicquote [] [] => set topic to quote from with number . You only need to supply if you are addressing %{nick} privately. Without , a random quote will be set.") % { :nick => @bot.nick } when "countquote" - return "countquote [] => count quotes from that match . You only need to supply if you are addressing #{@bot.nick} privately. Responds to !countquote without addressing if so configured" + _("countquote [] => count quotes from that match . You only need to supply if you are addressing %{nick} privately.") % { :nick => @bot.nick } when "whoquote" - return "whoquote [] => show who added quote . You only need to supply if you are addressing #{@bot.nick} privately" + _("whoquote [] => show who added quote . You only need to supply if you are addressing %{nick} privately") % { :nick => @bot.nick } when "whenquote" - return "whenquote [] => show when quote was added. You only need to supply if you are addressing #{@bot.nick} privately" + _("whenquote [] => show when quote was added. You only need to supply if you are addressing %{nick} privately") % { :nick => @bot.nick } else - return "Quote module (Quote storage and retrieval) topics: addquote, delquote, getquote, searchquote, topicquote, countquote, whoquote, whenquote" + _("Quote module (Quote storage and retrieval) topics: addquote, delquote, getquote, searchquote, topicquote, countquote, whoquote, whenquote") % { :nick => @bot.nick } end end @@ -155,7 +155,7 @@ class QuotePlugin < Plugin if delquote(channel, num) m.okay else - m.reply "quote not found!" + m.reply _("quote not found!") end end -- cgit v1.2.3