From 4bc5ed4f2d2f55484ed2feda3990ba16328c36a6 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 31 Jul 2012 19:09:18 +0000 Subject: [PATCH] RSS: Internationalize three strings. --- plugins/RSS/config.py | 16 ++++++++-------- plugins/RSS/messages.pot | 28 +++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/plugins/RSS/config.py b/plugins/RSS/config.py index 510584755..2833ef4b7 100644 --- a/plugins/RSS/config.py +++ b/plugins/RSS/config.py @@ -81,19 +81,19 @@ conf.registerChannelValue(RSS, 'showLinks', supybot.plugins.RSS.announce.showLinks affects whether links will be listed when a feed is automatically announced."""))) conf.registerGlobalValue(RSS, 'defaultNumberOfHeadlines', - registry.PositiveInteger(1, """Indicates how many headlines an rss feed - will output by default, if no number is provided.""")) + registry.PositiveInteger(1, _("""Indicates how many headlines an rss feed + will output by default, if no number is provided."""))) conf.registerChannelValue(RSS, 'initialAnnounceHeadlines', - registry.PositiveInteger(5, """Indicates how many headlines an rss feed - will output when it is first added to announce for a channel.""")) + registry.PositiveInteger(5, _("""Indicates how many headlines an rss feed + will output when it is first added to announce for a channel."""))) conf.registerChannelValue(RSS, 'keywordWhitelist', - registry.SpaceSeparatedSetOfStrings([], """Space separated list of + registry.SpaceSeparatedSetOfStrings([], _("""Space separated list of strings, lets you filter headlines to those containing one or more items - in this whitelist.""")) + in this whitelist."""))) conf.registerChannelValue(RSS, 'keywordBlacklist', - registry.SpaceSeparatedSetOfStrings([], """Space separated list of + registry.SpaceSeparatedSetOfStrings([], _("""Space separated list of strings, lets you filter headlines to those not containing any items - in this blacklist.""")) + in this blacklist."""))) conf.registerGroup(RSS, 'announce') conf.registerChannelValue(RSS.announce, 'showLinks', diff --git a/plugins/RSS/messages.pot b/plugins/RSS/messages.pot index 7f747c350..a03e6a8ee 100644 --- a/plugins/RSS/messages.pot +++ b/plugins/RSS/messages.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2012-06-03 04:38+CEST\n" +"POT-Creation-Date: 2012-07-31 19:07+UTC\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -78,6 +78,32 @@ msgid "" " listed when a feed is automatically announced." msgstr "" +#: config.py:84 +msgid "" +"Indicates how many headlines an rss feed\n" +" will output by default, if no number is provided." +msgstr "" + +#: config.py:87 +msgid "" +"Indicates how many headlines an rss feed\n" +" will output when it is first added to announce for a channel." +msgstr "" + +#: config.py:90 +msgid "" +"Space separated list of \n" +" strings, lets you filter headlines to those containing one or more items\n" +" in this whitelist." +msgstr "" + +#: config.py:94 +msgid "" +"Space separated list of \n" +" strings, lets you filter headlines to those not containing any items\n" +" in this blacklist." +msgstr "" + #: config.py:100 msgid "" "Determines whether the bot will list the link\n"