]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
modified azgame to use gettext
authorYaohan Chen <yaohan.chen@gmail.com>
Sat, 14 Jul 2007 03:59:11 +0000 (03:59 +0000)
committerYaohan Chen <yaohan.chen@gmail.com>
Sat, 14 Jul 2007 03:59:11 +0000 (03:59 +0000)
added Japanese translation for azgame

data/rbot/plugins/games/azgame.rb
po/ja/rbot.po
po/rbot.pot
po/zh_CN/rbot.po

index 883e4030ec53ffc39fa72e6cddeeac4405177e04..04efb810f0a7b023668d693a80561b6f56ed8add 100644 (file)
@@ -150,29 +150,29 @@ class AzGamePlugin < Plugin
     isit = @games[k].check(word)\r
     case isit.first\r
     when :bingo\r
-      m.reply "#{Bold}BINGO!#{Bold}: the word was #{Underline}#{word}#{Underline}. Congrats, #{Bold}#{m.sourcenick}#{Bold}!"\r
+      m.reply _("%{bold}BINGO!%{bold} the word was %{underline}%{word}%{underline}. Congrats, %{bold}%{player}%{bold}!") % {:bold => Bold, :underline => Underline, :word => word, :player => m.sourcenick}\r
       @games[k].total_tries += 1\r
       @games[k].tries[m.source] += 1\r
       @games[k].winner = m.source\r
       ar = @games[k].score.inject([]) { |res, kv|\r
         res.push("%s: %d (%s)" % kv.flatten)\r
       }\r
-      m.reply "The game was won after #{@games[k].total_tries} tries. Scores for this game:    #{ar.join('; ')}"\r
+      m.reply _("The game was won after %{tries} tries. Scores for this game:    %{scores}") % {:tries => @games[k].total_tries, :scores => ar.join('; ')}\r
       @games.delete(k)\r
     when :out\r
-      m.reply "#{word} is not in the range #{Bold}#{isit.last}#{Bold}" if m.address?\r
+      m.reply _("%{word} is not in the range %{bold}%{range}%{bold}") % {:word => word, :bold => Bold, :range => isit.last} if m.address?\r
     when :noexist\r
-      m.reply "#{word} doesn't exist or is not acceptable for the game"\r
+      m.reply _("%{word} doesn't exist or is not acceptable for the game") % {:word => word}\r
       @games[k].total_failed += 1\r
       @games[k].failed[m.source] += 1\r
     when :in\r
-      m.reply "close, but no cigar. New range: #{Bold}#{isit.last}#{Bold}"\r
+      m.reply _("close, but no cigar. New range: %{bold}%{range}%{bold}") % {:bold => Bold, :range => isit.last}\r
       @games[k].total_tries += 1\r
       @games[k].tries[m.source] += 1\r
     when :ignore\r
-      m.reply "#{word} is already one of the range extrema: #{isit.last}" if m.address?\r
+      m.reply _("%{word} is already one of the range extrema: %{range}") % {:word => word, :range => isit.last} if m.address?\r
     else\r
-      m.reply "hm, something went wrong while verifying #{word}"\r
+      m.reply _("hm, something went wrong while verifying %{word}")\r
     end\r
   end\r
 \r
@@ -180,11 +180,11 @@ class AzGamePlugin < Plugin
     k = m.channel.downcase.to_s\r
     word = params[:word].downcase\r
     if not @games.key?(k)\r
-      m.reply "no A-Z game running here, can't check if #{word} is valid, can I?"\r
+      m.reply _("no A-Z game running here, can't check if %{word} is valid, can I?")\r
       return\r
     end\r
     if word !~ /^\S+$/\r
-      m.reply "I only accept single words composed by letters only, sorry"\r
+      m.reply _("I only accept single words composed by letters only, sorry")\r
       return\r
     end\r
     word_check(m, k, word)\r
@@ -194,14 +194,14 @@ class AzGamePlugin < Plugin
     return if m.channel.nil? # Shouldn't happen, but you never know\r
     k = m.channel.downcase.to_s # to_sym?\r
     if @games.key?(k)\r
-      m.reply "the word in #{Bold}#{@games[k].range}#{Bold} was:   #{Bold}#{@games[k].word}"\r
+      m.reply _("the word in %{bold}%{range}%{bold} was:   %{bold}%{word}%{bold}") % {:bold => Bold, :range => @games[k].range, :word => @games[k].word}\r
       ar = @games[k].score.inject([]) { |res, kv|\r
         res.push("%s: %d (%s)" % kv.flatten)\r
       }\r
-      m.reply "The game was cancelled after #{@games[k].total_tries} tries. Scores for this game would have been:    #{ar.join('; ')}"\r
+      m.reply _("The game was cancelled after %{tries} tries. Scores for this game would have been:    %{scores}") % {:tries => @games[k].total_tries, :scores => ar.join('; ')}\r
       @games.delete(k)\r
     else\r
-      m.reply "no A-Z game running in this channel ..."\r
+      m.reply _("no A-Z game running in this channel ...")\r
     end\r
   end\r
 \r
@@ -211,43 +211,40 @@ class AzGamePlugin < Plugin
     unless @games.key?(k)\r
       lang = (params[:lang] || @bot.config['core.language']).to_sym\r
       method = 'random_pick_'+lang.to_s\r
-      m.reply "let me think ..."\r
+      m.reply _("let me think ...")\r
       if @rules.has_key?(lang) and self.respond_to?(method)\r
         word = self.send(method)\r
         if word.empty?\r
-          m.reply "couldn't think of anything ..."\r
+          m.reply _("couldn't think of anything ...")\r
           return\r
         end\r
       else\r
-        m.reply "I can't play A-Z in #{lang}, sorry"\r
+        m.reply _("I can't play A-Z in %{lang}, sorry") % {:lang => lang}\r
         return\r
       end\r
-      m.reply "got it!"\r
+      m.reply _("got it!")\r
       @games[k] = AzGame.new(self, lang, @rules[lang], word)\r
     end\r
     tr = @games[k].total_tries\r
-    case tr\r
-    when 0\r
-      tr_msg = ""\r
-    when 1\r
-      tr_msg = " (after 1 try"\r
+    # this message building code is rewritten to make translation easier\r
+    if tr == 0\r
+      tr_msg = ''\r
     else\r
-      tr_msg = " (after #{tr} tries"\r
-    end\r
-\r
-    unless tr_msg.empty?\r
       f_tr = @games[k].total_failed\r
-      case f_tr\r
-      when 0\r
-        tr_msg << ")"\r
-      when 1\r
-        tr_msg << " and 1 invalid try)"\r
+      if f_tr > 0\r
+        tr_msg = _(" (after %{total_tries} and %{invalid_tries}") %\r
+           { :total_tries => n_("%{count} try", "%{count} tries", tr) %\r
+                             {:count => tr},\r
+             :invalid_tries => n_("%{count} invalid try", "%{count} invalid tries", tr) %\r
+                               {:count => f_tr} }\r
       else\r
-        tr_msg << " and #{f_tr} invalid tries)"\r
+        tr_msg = _(" (after %{total_tries}") %\r
+                 { :total_tries => n_("%{count} try", "%{count} tries", tr) %\r
+                             {:count => tr}}\r
       end\r
     end\r
 \r
-    m.reply "A-Z: #{Bold}#{@games[k].range}#{Bold}" + tr_msg\r
+    m.reply _("A-Z: %{bold}%{range}%{bold}") % {:bold => Bold, :range => @games[k].range} + tr_msg\r
     return\r
   end\r
 \r
@@ -258,10 +255,10 @@ class AzGamePlugin < Plugin
     cmd = params[:cmd].to_sym rescue :count\r
     case cmd\r
     when :count\r
-      m.reply "I have #{wc.size > 0 ? wc.size : 'no'} #{lang} words in my cache"\r
+      m.reply n_("I have %{count} %{lang} word in my cache", "I have %{count} %{lang} words in my cache", wc.size) % {:count => wc.size, :lang => lang}\r
     when :show, :list\r
       if pars.empty?\r
-        m.reply "provide a regexp to match"\r
+        m.reply _("provide a regexp to match")\r
         return\r
       end\r
       begin\r
@@ -273,45 +270,48 @@ class AzGamePlugin < Plugin
         matches = []\r
       end\r
       if matches.size == 0\r
-        m.reply "no #{lang} word I know match #{pars[0]}"\r
+        m.reply _("no %{lang} word I know match %{pattern}") % {:lang => lang, :pattern => pars[0]}\r
       elsif matches.size > 25\r
-        m.reply "more than 25 #{lang} words I know match #{pars[0]}, try a stricter matching"\r
+        m.reply _("more than 25 %{lang} words I know match %{pattern}, try a stricter matching") % {:lang => lang, :pattern => pars[0]}\r
       else\r
         m.reply "#{matches.join(', ')}"\r
       end\r
     when :info\r
       if pars.empty?\r
-        m.reply "provide a word"\r
+        m.reply _("provide a word")\r
         return\r
       end\r
       word = pars[0].downcase.to_sym\r
       if not wc.key?(word)\r
-        m.reply "I don't know any #{lang} word #{word}"\r
+        m.reply _("I don't know any %{lang} word %{word}") % {:lang => lang, :word => word}\r
         return\r
       end\r
-      tr = "#{word} learned from #{wc[word][:who]}"\r
-      (tr << " on #{wc[word][:when]}") if wc[word].key?(:when)\r
+      if wc[word].key?(:when)\r
+        tr = _("%{word} learned from %{user} on %{date}") % {:word => word, :user => wc[word][:who], :date => wc[word][:when]}\r
+      else\r
+        tr = _("%{word} learned from %{user}") % {:word => word, :user => wc[word][:who]} \r
+      end\r
       m.reply tr\r
-    when :delete\r
+    when :delete \r
       if pars.empty?\r
-        m.reply "provide a word"\r
+        m.reply _("provide a word")\r
         return\r
       end\r
       word = pars[0].downcase.to_sym\r
       if not wc.key?(word)\r
-        m.reply "I don't know any #{lang} word #{word}"\r
+        m.reply _("I don't know any %{lang} word %{word}") % {:lang => lang, :word => word}\r
         return\r
       end\r
       wc.delete(word)\r
       @bot.okay m.replyto\r
     when :add\r
       if pars.empty?\r
-        m.reply "provide a word"\r
+        m.reply _("provide a word")\r
         return\r
       end\r
       word = pars[0].downcase.to_sym\r
       if wc.key?(word)\r
-        m.reply "I already know the #{lang} word #{word}"\r
+        m.reply _("I already know the %{lang} word %{word}")\r
         return\r
       end\r
       wc[word] = { :who => m.sourcenick, :when => Time.now }\r
@@ -527,17 +527,17 @@ class AzGamePlugin < Plugin
   def help(plugin, topic="")\r
     case topic\r
     when 'manage'\r
-      return "az [lang] word [count|list|add|delete] => manage the az wordlist for language lang (defaults to current bot language)"\r
+      return _("az [lang] word [count|list|add|delete] => manage the az wordlist for language lang (defaults to current bot language)")\r
     when 'cancel'\r
-      return "az cancel => abort current game"\r
+      return _("az cancel => abort current game")\r
     when 'check'\r
-      return 'az check <word> => checks <word> against current game'\r
+      return _('az check <word> => checks <word> against current game')\r
     when 'rules'\r
-      return "try to guess the word the bot is thinking of; if you guess wrong, the bot will use the new word to restrict the range of allowed words: eventually, the range will be so small around the correct word that you can't miss it"\r
+      return _("try to guess the word the bot is thinking of; if you guess wrong, the bot will use the new word to restrict the range of allowed words: eventually, the range will be so small around the correct word that you can't miss it")\r
     when 'play'\r
-      return "az => start a game if none is running, show the current word range otherwise; you can say 'az <language>' if you want to play in a language different from the current bot default"\r
+      return _("az => start a game if none is running, show the current word range otherwise; you can say 'az <language>' if you want to play in a language different from the current bot default")\r
     end\r
-    return "az topics: play, rules, cancel, manage, check"\r
+    return _("az topics: play, rules, cancel, manage, check")\r
   end\r
 \r
 end\r
index a202d781fe9033f95806a545528a21a450d668a1..cbfa7f4ed1f1a7b61dc5800a0be62b201ed1ccd5 100644 (file)
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rbot\n"
-"POT-Creation-Date: 2007-07-10 00:57-0400\n"
+"POT-Creation-Date: 2007-07-13 23:31-0400\n"
 "PO-Revision-Date: 2007-07-09 01:36-0400\n"
 "Last-Translator: Yaohan Chen <yaohan.chen@gmail.com>\n"
 "Language-Team: Japanese\n"
@@ -750,7 +750,7 @@ msgstr ""
 
 #: data/rbot/plugins/dictclient.rb:52
 msgid "Hostname or hostname:port of the DICT server used to lookup words"
-msgstr "DICT サーバーの hostname か hostname:port です"
+msgstr "DICT サーバーの hostname か hostname:port です"
 
 #: data/rbot/plugins/dictclient.rb:55
 msgid ""
@@ -841,7 +841,7 @@ msgstr "しりとりの始めの言葉を言ってください"
 msgid ""
 "Poor %{current_player} is playing alone! Anyone care to join? %"
 "{previous_word} -> %{current_word}"
-msgstr
+msgstr ""
 "%{current_player}様は一人で寂しいでしょう。他の人しりとりしませんか?"
 "{previous_word} -> %{current_word}"
 
@@ -925,3 +925,172 @@ msgstr "しりとりのゲームが止まりました"
 #: data/rbot/plugins/games/shiritori.rb:436
 msgid "No game to stop here, because no game is being played."
 msgstr "しりとりのゲームをしていません"
+
+#: data/rbot/plugins/games/azgame.rb:153
+msgid ""
+"%{bold}BINGO!%{bold} the word was %{underline}%{word}%{underline}. Congrats, "
+"%{bold}%{player}%{bold}!"
+msgstr ""
+"%{bold}ビンゴー!%{bold} 秘密の言葉は%{underline}%{word}%{underline}でした。お"
+"めでとうございます。%{bold}%{player}%{bold}!"
+
+#: data/rbot/plugins/games/azgame.rb:160
+msgid ""
+"The game was won after %{tries} tries. Scores for this game:    %{scores}"
+msgstr "このゲームが%{tries}のトライの後勝ちました。スコーは:    %{scores}"
+
+#: data/rbot/plugins/games/azgame.rb:163
+msgid "%{word} is not in the range %{bold}%{range}%{bold}"
+msgstr "%{word}は%{bold}%{range}%{bold}のレンジの以外です。"
+
+#: data/rbot/plugins/games/azgame.rb:165
+msgid "%{word} doesn't exist or is not acceptable for the game"
+msgstr "%{word}は言葉じゃない。或はこのゲームに受けない。"
+
+#: data/rbot/plugins/games/azgame.rb:169
+msgid "close, but no cigar. New range: %{bold}%{range}%{bold}"
+msgstr ""
+"レンジーを小さくしました。もっと頑張ってくださいね!新しいレーンジは:%{bold}%"
+"{range}%{bold}"
+
+#: data/rbot/plugins/games/azgame.rb:173
+msgid "%{word} is already one of the range extrema: %{range}"
+msgstr "%{word}はいまのレーンジの外れの一つです:%{range}"
+
+#: data/rbot/plugins/games/azgame.rb:175
+msgid "hm, something went wrong while verifying %{word}"
+msgstr "%{word}をチェックしたとき何かエラーが発生しました。"
+
+#: data/rbot/plugins/games/azgame.rb:183
+msgid "no A-Z game running here, can't check if %{word} is valid, can I?"
+msgstr "今A-Zのゲームをしていませんから、%{word}のチェックができません。"
+
+#: data/rbot/plugins/games/azgame.rb:187
+msgid "I only accept single words composed by letters only, sorry"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:197
+msgid "the word in %{bold}%{range}%{bold} was:   %{bold}%{word}%{bold}"
+msgstr ""
+"%{bold}%{range}%{bold}の以内の秘密の言葉は   %{bold}%{word}%{bold}でした。"
+
+#: data/rbot/plugins/games/azgame.rb:201
+msgid ""
+"The game was cancelled after %{tries} tries. Scores for this game would have "
+"been:    %{scores}"
+msgstr ""
+"このゲームは%{tries}のトライの後キャンセルしました。いままでのスコアは    %"
+"{scores}でした。"
+
+#: data/rbot/plugins/games/azgame.rb:204
+msgid "no A-Z game running in this channel ..."
+msgstr "このチャンネルにはA-Zのゲームを遊んでありません。"
+
+#: data/rbot/plugins/games/azgame.rb:214
+msgid "let me think ..."
+msgstr "秘密の言葉を考えています・・・"
+
+#: data/rbot/plugins/games/azgame.rb:218
+msgid "couldn't think of anything ..."
+msgstr "考えられませんでした・・・"
+
+#: data/rbot/plugins/games/azgame.rb:222
+msgid "I can't play A-Z in %{lang}, sorry"
+msgstr "申し訳ありませんが、%{lang}の言語でA-Zのゲームができません"
+
+#: data/rbot/plugins/games/azgame.rb:225
+msgid "got it!"
+msgstr "考えました!"
+
+#: data/rbot/plugins/games/azgame.rb:235
+msgid " (after %{total_tries} and %{invalid_tries}"
+msgstr " (%{total_tries}と%{invalid_tries}の後"
+
+#: data/rbot/plugins/games/azgame.rb:236 data/rbot/plugins/games/azgame.rb:242
+msgid "%{count} try"
+msgid_plural "%{count} tries"
+msgstr[0] "%{count}のトライ"
+
+#: data/rbot/plugins/games/azgame.rb:238
+msgid "%{count} invalid try"
+msgid_plural "%{count} invalid tries"
+msgstr[0] "%{count}の失敗したトライ"
+
+#: data/rbot/plugins/games/azgame.rb:241
+msgid " (after %{total_tries}"
+msgstr " (%{total_tries}の後"
+
+#: data/rbot/plugins/games/azgame.rb:247
+msgid "A-Z: %{bold}%{range}%{bold}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:258
+msgid "I have %{count} %{lang} word in my cache"
+msgid_plural "I have %{count} %{lang} words in my cache"
+msgstr[0] "キャッシュに%{lang}の言葉は%{count}あります。"
+
+#: data/rbot/plugins/games/azgame.rb:261
+msgid "provide a regexp to match"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:273
+msgid "no %{lang} word I know match %{pattern}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:275
+msgid ""
+"more than 25 %{lang} words I know match %{pattern}, try a stricter matching"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:281 data/rbot/plugins/games/azgame.rb:297
+#: data/rbot/plugins/games/azgame.rb:309
+msgid "provide a word"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:286 data/rbot/plugins/games/azgame.rb:302
+msgid "I don't know any %{lang} word %{word}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:290
+msgid "%{word} learned from %{user} on %{date}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:292
+msgid "%{word} learned from %{user}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:314
+msgid "I already know the %{lang} word %{word}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:530
+msgid ""
+"az [lang] word [count|list|add|delete] => manage the az wordlist for "
+"language lang (defaults to current bot language)"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:532
+msgid "az cancel => abort current game"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:534
+msgid "az check <word> => checks <word> against current game"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:536
+msgid ""
+"try to guess the word the bot is thinking of; if you guess wrong, the bot "
+"will use the new word to restrict the range of allowed words: eventually, "
+"the range will be so small around the correct word that you can't miss it"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:538
+msgid ""
+"az => start a game if none is running, show the current word range "
+"otherwise; you can say 'az <language>' if you want to play in a language "
+"different from the current bot default"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:540
+msgid "az topics: play, rules, cancel, manage, check"
+msgstr ""
index 900ce3038e54cffa61f5bff12bf5e26e69d33875..67f9f0645e2a540af530e5936c4b41e3595e19bd 100644 (file)
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rbot\n"
-"POT-Creation-Date: 2007-07-10 00:57-0400\n"
+"POT-Creation-Date: 2007-07-13 23:31-0400\n"
 "PO-Revision-Date: 2007-07-09 01:24-0400\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -924,3 +924,168 @@ msgstr ""
 #: data/rbot/plugins/games/shiritori.rb:436
 msgid "No game to stop here, because no game is being played."
 msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:153
+msgid ""
+"%{bold}BINGO!%{bold} the word was %{underline}%{word}%{underline}. Congrats, "
+"%{bold}%{player}%{bold}!"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:160
+msgid ""
+"The game was won after %{tries} tries. Scores for this game:    %{scores}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:163
+msgid "%{word} is not in the range %{bold}%{range}%{bold}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:165
+msgid "%{word} doesn't exist or is not acceptable for the game"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:169
+msgid "close, but no cigar. New range: %{bold}%{range}%{bold}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:173
+msgid "%{word} is already one of the range extrema: %{range}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:175
+msgid "hm, something went wrong while verifying %{word}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:183
+msgid "no A-Z game running here, can't check if %{word} is valid, can I?"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:187
+msgid "I only accept single words composed by letters only, sorry"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:197
+msgid "the word in %{bold}%{range}%{bold} was:   %{bold}%{word}%{bold}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:201
+msgid ""
+"The game was cancelled after %{tries} tries. Scores for this game would have "
+"been:    %{scores}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:204
+msgid "no A-Z game running in this channel ..."
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:214
+msgid "let me think ..."
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:218
+msgid "couldn't think of anything ..."
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:222
+msgid "I can't play A-Z in %{lang}, sorry"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:225
+msgid "got it!"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:235
+msgid " (after %{total_tries} and %{invalid_tries}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:236 data/rbot/plugins/games/azgame.rb:242
+msgid "%{count} try"
+msgid_plural "%{count} tries"
+msgstr[0] ""
+msgstr[1] ""
+
+#: data/rbot/plugins/games/azgame.rb:238
+msgid "%{count} invalid try"
+msgid_plural "%{count} invalid tries"
+msgstr[0] ""
+msgstr[1] ""
+
+#: data/rbot/plugins/games/azgame.rb:241
+msgid " (after %{total_tries}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:247
+msgid "A-Z: %{bold}%{range}%{bold}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:258
+msgid "I have %{count} %{lang} word in my cache"
+msgid_plural "I have %{count} %{lang} words in my cache"
+msgstr[0] ""
+msgstr[1] ""
+
+#: data/rbot/plugins/games/azgame.rb:261
+msgid "provide a regexp to match"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:273
+msgid "no %{lang} word I know match %{pattern}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:275
+msgid ""
+"more than 25 %{lang} words I know match %{pattern}, try a stricter matching"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:281 data/rbot/plugins/games/azgame.rb:297
+#: data/rbot/plugins/games/azgame.rb:309
+msgid "provide a word"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:286 data/rbot/plugins/games/azgame.rb:302
+msgid "I don't know any %{lang} word %{word}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:290
+msgid "%{word} learned from %{user} on %{date}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:292
+msgid "%{word} learned from %{user}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:314
+msgid "I already know the %{lang} word %{word}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:530
+msgid ""
+"az [lang] word [count|list|add|delete] => manage the az wordlist for "
+"language lang (defaults to current bot language)"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:532
+msgid "az cancel => abort current game"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:534
+msgid "az check <word> => checks <word> against current game"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:536
+msgid ""
+"try to guess the word the bot is thinking of; if you guess wrong, the bot "
+"will use the new word to restrict the range of allowed words: eventually, "
+"the range will be so small around the correct word that you can't miss it"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:538
+msgid ""
+"az => start a game if none is running, show the current word range "
+"otherwise; you can say 'az <language>' if you want to play in a language "
+"different from the current bot default"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:540
+msgid "az topics: play, rules, cancel, manage, check"
+msgstr ""
index c9f907b82516f792c8878add80a1ee4f06155568..265a9720aeb62762f74dc1e8755f92ba7d7412f8 100644 (file)
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: rbot\n"
-"POT-Creation-Date: 2007-07-10 00:57-0400\n"
+"POT-Creation-Date: 2007-07-13 23:31-0400\n"
 "PO-Revision-Date: 2007-07-09 01:39-0400\n"
 "Last-Translator: Yaohan Chen <yaohan.chen@gmail.com>\n"
 "Language-Team: Chinese\n"
@@ -923,3 +923,168 @@ msgstr ""
 #: data/rbot/plugins/games/shiritori.rb:436
 msgid "No game to stop here, because no game is being played."
 msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:153
+msgid ""
+"%{bold}BINGO!%{bold} the word was %{underline}%{word}%{underline}. Congrats, "
+"%{bold}%{player}%{bold}!"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:160
+msgid ""
+"The game was won after %{tries} tries. Scores for this game:    %{scores}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:163
+msgid "%{word} is not in the range %{bold}%{range}%{bold}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:165
+msgid "%{word} doesn't exist or is not acceptable for the game"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:169
+msgid "close, but no cigar. New range: %{bold}%{range}%{bold}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:173
+msgid "%{word} is already one of the range extrema: %{range}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:175
+msgid "hm, something went wrong while verifying %{word}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:183
+msgid "no A-Z game running here, can't check if %{word} is valid, can I?"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:187
+msgid "I only accept single words composed by letters only, sorry"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:197
+msgid "the word in %{bold}%{range}%{bold} was:   %{bold}%{word}%{bold}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:201
+msgid ""
+"The game was cancelled after %{tries} tries. Scores for this game would have "
+"been:    %{scores}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:204
+msgid "no A-Z game running in this channel ..."
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:214
+msgid "let me think ..."
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:218
+msgid "couldn't think of anything ..."
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:222
+msgid "I can't play A-Z in %{lang}, sorry"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:225
+msgid "got it!"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:235
+msgid " (after %{total_tries} and %{invalid_tries}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:236 data/rbot/plugins/games/azgame.rb:242
+msgid "%{count} try"
+msgid_plural "%{count} tries"
+msgstr[0] ""
+msgstr[1] ""
+
+#: data/rbot/plugins/games/azgame.rb:238
+msgid "%{count} invalid try"
+msgid_plural "%{count} invalid tries"
+msgstr[0] ""
+msgstr[1] ""
+
+#: data/rbot/plugins/games/azgame.rb:241
+msgid " (after %{total_tries}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:247
+msgid "A-Z: %{bold}%{range}%{bold}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:258
+msgid "I have %{count} %{lang} word in my cache"
+msgid_plural "I have %{count} %{lang} words in my cache"
+msgstr[0] ""
+msgstr[1] ""
+
+#: data/rbot/plugins/games/azgame.rb:261
+msgid "provide a regexp to match"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:273
+msgid "no %{lang} word I know match %{pattern}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:275
+msgid ""
+"more than 25 %{lang} words I know match %{pattern}, try a stricter matching"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:281 data/rbot/plugins/games/azgame.rb:297
+#: data/rbot/plugins/games/azgame.rb:309
+msgid "provide a word"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:286 data/rbot/plugins/games/azgame.rb:302
+msgid "I don't know any %{lang} word %{word}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:290
+msgid "%{word} learned from %{user} on %{date}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:292
+msgid "%{word} learned from %{user}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:314
+msgid "I already know the %{lang} word %{word}"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:530
+msgid ""
+"az [lang] word [count|list|add|delete] => manage the az wordlist for "
+"language lang (defaults to current bot language)"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:532
+msgid "az cancel => abort current game"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:534
+msgid "az check <word> => checks <word> against current game"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:536
+msgid ""
+"try to guess the word the bot is thinking of; if you guess wrong, the bot "
+"will use the new word to restrict the range of allowed words: eventually, "
+"the range will be so small around the correct word that you can't miss it"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:538
+msgid ""
+"az => start a game if none is running, show the current word range "
+"otherwise; you can say 'az <language>' if you want to play in a language "
+"different from the current bot default"
+msgstr ""
+
+#: data/rbot/plugins/games/azgame.rb:540
+msgid "az topics: play, rules, cancel, manage, check"
+msgstr ""