RSS: Internationalize three strings.

This commit is contained in:
Valentin Lorentz 2012-07-31 19:09:18 +00:00
parent ef78c86974
commit 4bc5ed4f2d
2 changed files with 35 additions and 9 deletions

View File

@ -81,19 +81,19 @@ conf.registerChannelValue(RSS, 'showLinks',
supybot.plugins.RSS.announce.showLinks affects whether links will be supybot.plugins.RSS.announce.showLinks affects whether links will be
listed when a feed is automatically announced."""))) listed when a feed is automatically announced.""")))
conf.registerGlobalValue(RSS, 'defaultNumberOfHeadlines', conf.registerGlobalValue(RSS, 'defaultNumberOfHeadlines',
registry.PositiveInteger(1, """Indicates how many headlines an rss feed registry.PositiveInteger(1, _("""Indicates how many headlines an rss feed
will output by default, if no number is provided.""")) will output by default, if no number is provided.""")))
conf.registerChannelValue(RSS, 'initialAnnounceHeadlines', conf.registerChannelValue(RSS, 'initialAnnounceHeadlines',
registry.PositiveInteger(5, """Indicates how many headlines an rss feed registry.PositiveInteger(5, _("""Indicates how many headlines an rss feed
will output when it is first added to announce for a channel.""")) will output when it is first added to announce for a channel.""")))
conf.registerChannelValue(RSS, 'keywordWhitelist', 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 strings, lets you filter headlines to those containing one or more items
in this whitelist.""")) in this whitelist.""")))
conf.registerChannelValue(RSS, 'keywordBlacklist', 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 strings, lets you filter headlines to those not containing any items
in this blacklist.""")) in this blacklist.""")))
conf.registerGroup(RSS, 'announce') conf.registerGroup(RSS, 'announce')
conf.registerChannelValue(RSS.announce, 'showLinks', conf.registerChannelValue(RSS.announce, 'showLinks',

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: 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" "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"
@ -78,6 +78,32 @@ msgid ""
" listed when a feed is automatically announced." " listed when a feed is automatically announced."
msgstr "" 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 #: config.py:100
msgid "" msgid ""
"Determines whether the bot will list the link\n" "Determines whether the bot will list the link\n"