Internationalize a string in Karma

This commit is contained in:
Valentin Lorentz 2010-10-28 15:43:31 +02:00
parent f3a579f3da
commit 3fe627ad75
2 changed files with 15 additions and 10 deletions

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -77,23 +77,27 @@ msgstr ""
msgid "Karma for %q has been increased %n and decreased %n for a total karma of %s." msgid "Karma for %q has been increased %n and decreased %n for a total karma of %s."
msgstr "" 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." msgid "I didn't know the karma for any of those things."
msgstr "" msgstr ""
#: plugin.py:325 plugin.py:354 #: plugin.py:326 plugin.py:355
msgid "I have no karma for this channel." msgid "I have no karma for this channel."
msgstr "" msgstr ""
#: plugin.py:330 #: plugin.py:331
msgid " You (%s) are ranked %i out of %i." msgid " You (%s) are ranked %i out of %i."
msgstr "" msgstr ""
#: plugin.py:334 #: plugin.py:335
msgid "Highest karma: %L. Lowest karma: %L.%s" msgid "Highest karma: %L. Lowest karma: %L.%s"
msgstr "" msgstr ""
#: plugin.py:342 #: plugin.py:343
#, docstring #, docstring
msgid "" msgid ""
"[<channel>] {increased,decreased,active}\n" "[<channel>] {increased,decreased,active}\n"
@ -104,7 +108,7 @@ msgid ""
" " " "
msgstr "" msgstr ""
#: plugin.py:360 #: plugin.py:361
#, docstring #, docstring
msgid "" msgid ""
"[<channel>] <name>\n" "[<channel>] <name>\n"
@ -113,7 +117,7 @@ msgid ""
" " " "
msgstr "" msgstr ""
#: plugin.py:370 #: plugin.py:371
#, docstring #, docstring
msgid "" msgid ""
"[<channel>] <filename>\n" "[<channel>] <filename>\n"
@ -124,7 +128,7 @@ msgid ""
" " " "
msgstr "" msgstr ""
#: plugin.py:382 #: plugin.py:383
#, docstring #, docstring
msgid "" msgid ""
"[<channel>] <filename>\n" "[<channel>] <filename>\n"

View File

@ -299,7 +299,8 @@ class Karma(callbacks.Plugin):
else: else:
s = format(_('Karma for %q has been increased %n and ' s = format(_('Karma for %q has been increased %n and '
'decreased %n for a total karma of %s.'), 'decreased %n for a total karma of %s.'),
name, (added, 'time'), (subtracted, 'time'), name, (added, _('time')),
(subtracted, _('time')),
total) total)
irc.reply(s) irc.reply(s)
elif len(things) > 1: elif len(things) > 1: