From b3ffbdf951caf8c5760b6b66817ad94b064a9483 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 12 Dec 2010 15:00:50 +0100 Subject: [PATCH 1/3] Fix localization issue --- locale/fr.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/fr.po b/locale/fr.po index 519c6cde7..1bc929a46 100644 --- a/locale/fr.po +++ b/locale/fr.po @@ -39,7 +39,7 @@ msgstr "\"|\" avec rien ne le suivant. Je ne peux évidtemment pas faire un pipe #: callbacks.py:515 msgid "%s is not a valid %s." -msgstr "%s n'est pas un %s valide." +msgstr "%s n'est pas du type '%s'." #: callbacks.py:517 msgid "That's not a valid %s." From a739511b7329c290bc5164e71593ae5435d14dab Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 12 Dec 2010 15:03:13 +0100 Subject: [PATCH 2/3] Internationalize two strings in Config --- plugins/Config/messages.pot | 10 +++++++++- plugins/Config/plugin.py | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/plugins/Config/messages.pot b/plugins/Config/messages.pot index bc578f015..91f5aa6d6 100644 --- a/plugins/Config/messages.pot +++ b/plugins/Config/messages.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2010-10-16 12:34+CEST\n" +"POT-Creation-Date: 2010-12-12 15:02+CET\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -15,6 +15,14 @@ msgstr "" "Generated-By: pygettext.py 1.5\n" +#: plugin.py:103 +msgid "configuration variable" +msgstr "" + +#: plugin.py:109 +msgid "settable configuration variable" +msgstr "" + #: plugin.py:136 #, docstring msgid "" diff --git a/plugins/Config/plugin.py b/plugins/Config/plugin.py index 8f669dc76..d248f4bcd 100644 --- a/plugins/Config/plugin.py +++ b/plugins/Config/plugin.py @@ -100,13 +100,13 @@ def getConfigVar(irc, msg, args, state): state.args.append(group) del args[0] except registry.InvalidRegistryName, e: - state.errorInvalid('configuration variable', str(e)) + state.errorInvalid(_('configuration variable'), str(e)) addConverter('configVar', getConfigVar) def getSettableConfigVar(irc, msg, args, state): getConfigVar(irc, msg, args, state) if not hasattr(state.args[-1], 'set'): - state.errorInvalid('settable configuration variable', + state.errorInvalid(_('settable configuration variable'), state.args[-1]._name) addConverter('settableConfigVar', getSettableConfigVar) From 01018b902e5508d6f43daf5990235994bb55894c Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 12 Dec 2010 15:05:00 +0100 Subject: [PATCH 3/3] Localize the two new strings of Config in French --- plugins/Config/locale/fr.po | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/Config/locale/fr.po b/plugins/Config/locale/fr.po index 2627b7553..9eb4cb258 100644 --- a/plugins/Config/locale/fr.po +++ b/plugins/Config/locale/fr.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Supybot-fr\n" -"POT-Creation-Date: 2010-10-16 12:34+CEST\n" +"POT-Creation-Date: 2010-12-12 15:02+CET\n" "PO-Revision-Date: \n" "Last-Translator: Valentin Lorentz \n" "Language-Team: Supybot-fr \n" @@ -13,6 +13,14 @@ msgstr "" "X-Poedit-Country: France\n" "X-Poedit-SourceCharset: ASCII\n" +#: plugin.py:103 +msgid "configuration variable" +msgstr "variable de configuration" + +#: plugin.py:109 +msgid "settable configuration variable" +msgstr "variable de configuration modifiable" + #: plugin.py:136 msgid "" "\n"