From 3fe627ad7591c0f856f2937e3d296524782b2ce6 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 28 Oct 2010 15:43:31 +0200 Subject: [PATCH] Internationalize a string in Karma --- plugins/Karma/messages.pot | 22 +++++++++++++--------- plugins/Karma/plugin.py | 3 ++- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/plugins/Karma/messages.pot b/plugins/Karma/messages.pot index 8fd166f04..265354adb 100644 --- a/plugins/Karma/messages.pot +++ b/plugins/Karma/messages.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2010-10-17 15:21+CEST\n" +"POT-Creation-Date: 2010-10-28 15:19+CEST\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -77,23 +77,27 @@ msgstr "" msgid "Karma for %q has been increased %n and decreased %n for a total karma of %s." msgstr "" -#: plugin.py:315 +#: plugin.py:302 plugin.py:303 +msgid "time" +msgstr "" + +#: plugin.py:316 msgid "I didn't know the karma for any of those things." msgstr "" -#: plugin.py:325 plugin.py:354 +#: plugin.py:326 plugin.py:355 msgid "I have no karma for this channel." msgstr "" -#: plugin.py:330 +#: plugin.py:331 msgid " You (%s) are ranked %i out of %i." msgstr "" -#: plugin.py:334 +#: plugin.py:335 msgid "Highest karma: %L. Lowest karma: %L.%s" msgstr "" -#: plugin.py:342 +#: plugin.py:343 #, docstring msgid "" "[] {increased,decreased,active}\n" @@ -104,7 +108,7 @@ msgid "" " " msgstr "" -#: plugin.py:360 +#: plugin.py:361 #, docstring msgid "" "[] \n" @@ -113,7 +117,7 @@ msgid "" " " msgstr "" -#: plugin.py:370 +#: plugin.py:371 #, docstring msgid "" "[] \n" @@ -124,7 +128,7 @@ msgid "" " " msgstr "" -#: plugin.py:382 +#: plugin.py:383 #, docstring msgid "" "[] \n" diff --git a/plugins/Karma/plugin.py b/plugins/Karma/plugin.py index af2191619..606ea57c5 100644 --- a/plugins/Karma/plugin.py +++ b/plugins/Karma/plugin.py @@ -299,7 +299,8 @@ class Karma(callbacks.Plugin): else: s = format(_('Karma for %q has been increased %n and ' 'decreased %n for a total karma of %s.'), - name, (added, 'time'), (subtracted, 'time'), + name, (added, _('time')), + (subtracted, _('time')), total) irc.reply(s) elif len(things) > 1: