From 6a9a8d81b81dd0a7e7e0ff1608d25b56e33d9bd0 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 20 Oct 2010 09:39:44 +0200 Subject: [PATCH] Internationalize Time, Todo, Topic, URL, Unix, Utilities, and Web --- plugins/Time/config.py | 6 +- plugins/Time/messages.pot | 97 +++++++++ plugins/Time/plugin.py | 14 +- plugins/Todo/config.py | 4 +- plugins/Todo/messages.pot | 129 ++++++++++++ plugins/Todo/plugin.py | 42 ++-- plugins/Topic/config.py | 26 +-- plugins/Topic/messages.pot | 356 +++++++++++++++++++++++++++++++++ plugins/Topic/plugin.py | 67 +++++-- plugins/URL/config.py | 6 +- plugins/URL/messages.pot | 58 ++++++ plugins/URL/plugin.py | 8 +- plugins/Unix/config.py | 36 ++-- plugins/Unix/messages.pot | 198 ++++++++++++++++++ plugins/Unix/plugin.py | 46 +++-- plugins/Utilities/config.py | 4 +- plugins/Utilities/messages.pot | 81 ++++++++ plugins/Utilities/plugin.py | 8 + plugins/Web/config.py | 18 +- plugins/Web/messages.pot | 156 +++++++++++++++ plugins/Web/plugin.py | 36 ++-- 21 files changed, 1279 insertions(+), 117 deletions(-) create mode 100644 plugins/Time/messages.pot create mode 100644 plugins/Todo/messages.pot create mode 100644 plugins/Topic/messages.pot create mode 100644 plugins/URL/messages.pot create mode 100644 plugins/Unix/messages.pot create mode 100644 plugins/Utilities/messages.pot create mode 100644 plugins/Web/messages.pot diff --git a/plugins/Time/config.py b/plugins/Time/config.py index 6317c41cc..cb56cf3b5 100644 --- a/plugins/Time/config.py +++ b/plugins/Time/config.py @@ -29,6 +29,8 @@ import supybot.conf as conf import supybot.registry as registry +from supybot.i18n import PluginInternationalization, internationalizeDocstring +_ = PluginInternationalization('Time') def configure(advanced): # This will be called by supybot to configure this module. advanced is @@ -40,10 +42,10 @@ def configure(advanced): Time = conf.registerPlugin('Time') conf.registerChannelValue(Time, 'format', - registry.String(str(conf.supybot.reply.format.time()), """Determines the + registry.String(str(conf.supybot.reply.format.time()), _("""Determines the format string for timestamps. Refer to the Python documentation for the time module to see what formats are accepted. If you set this variable to - the empty string, the timestamp will not be shown.""")) + the empty string, the timestamp will not be shown."""))) # vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79: diff --git a/plugins/Time/messages.pot b/plugins/Time/messages.pot new file mode 100644 index 000000000..cd16ce41c --- /dev/null +++ b/plugins/Time/messages.pot @@ -0,0 +1,97 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR ORGANIZATION +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2010-10-20 09:38+CEST\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: ENCODING\n" +"Generated-By: pygettext.py 1.5\n" + + +#: config.py:45 +msgid "" +"Determines the\n" +" format string for timestamps. Refer to the Python documentation for the\n" +" time module to see what formats are accepted. If you set this variable to\n" +" the empty string, the timestamp will not be shown." +msgstr "" + +#: plugin.py:60 +#, docstring +msgid "" +"[y] [w] [d] [h] [m] [s]\n" +"\n" +" Returns the number of seconds in the number of , ,\n" +" , , , and given. An example usage is\n" +" \"seconds 2h 30m\", which would return 9000, which is '3600*2 + 30*60'.\n" +" Useful for scheduling events at a given number of seconds in the\n" +" future.\n" +" " +msgstr "" + +#: plugin.py:95 +#, docstring +msgid "" +"