From: Frank Brehm Date: Thu, 3 Jan 2019 10:50:10 +0000 (+0100) Subject: Updating i18n X-Git-Tag: 1.6.4^2~83 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=88700db5afc98b76e883751d7d57873136446f59;p=pixelpark%2Fpuppetmaster-webhooks.git Updating i18n --- diff --git a/lib/webhooks/get_module_changes.py b/lib/webhooks/get_module_changes.py index 3fb2f30..6070ed8 100644 --- a/lib/webhooks/get_module_changes.py +++ b/lib/webhooks/get_module_changes.py @@ -18,6 +18,8 @@ import time from distutils.version import LooseVersion # Third party modules +import babel +from babel.dates import format_datetime, LOCALTZ # Own modules from fb_tools.common import pp @@ -243,15 +245,15 @@ class GetModuleChangesApp(BaseHookApp): "Results of checking for newer versions of Puppet modules " "in environment {!r}:").format(self.environment) - dt = datetime.datetime.fromtimestamp(time.time(), tz=self.tz) - dt_str = dt.strftime('%Y-%m-%d %H:%M:%S %Z') + dt = datetime.datetime.now(LOCALTZ) + dt_str = format_datetime(dt, 'yyyy-MM-dd HH:mm:ss z', tzinfo=LOCALTZ) if not version_infos: msg = _( "Didn't found any modules in environment {!r} with a\n" "newer version on Puppet Forge.").format(self.environment) + "\n\n:-D" self.error_data.append(msg) - self.error_data.append("\nChecked at: {}".format(dt_str)) + self.error_data.append("\n" + _("Checked at: {}").format(dt_str)) return msg = ngettext( diff --git a/locale/de_DE/LC_MESSAGES/puppetmaster_webhooks.po b/locale/de_DE/LC_MESSAGES/puppetmaster_webhooks.po index 529d380..7ac5575 100644 --- a/locale/de_DE/LC_MESSAGES/puppetmaster_webhooks.po +++ b/locale/de_DE/LC_MESSAGES/puppetmaster_webhooks.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: puppetmaster_webhooks 1.3.1\n" "Report-Msgid-Bugs-To: frank.brehm@pixelpark.com\n" -"POT-Creation-Date: 2019-01-02 18:20+0100\n" +"POT-Creation-Date: 2019-01-03 11:47+0100\n" "PO-Revision-Date: 2019-01-02 11:25+0100\n" "Last-Translator: Frank Brehm \n" "Language: de_DE\n" @@ -368,11 +368,11 @@ msgstr "Fehler bim Erstellen der Datei {f!r}: {e}" msgid "Renaming {src!r} => {tgt!r}." msgstr "Umbenennung {src!r} => {tgt!r}." -#: lib/webhooks/get_module_changes.py:62 +#: lib/webhooks/get_module_changes.py:64 msgid "Puppet environment {!r} does not exists." msgstr "Die Puppet-Umgebung {!r} existiert nicht." -#: lib/webhooks/get_module_changes.py:79 +#: lib/webhooks/get_module_changes.py:81 msgid "" "Generates a list of all Puppets modules, which are newer in Puppet forge than in a defined " "environment." @@ -380,49 +380,49 @@ msgstr "" "Erstellt eine Liste mit allen Puppet-Modulen, die bei Puppet-Forge in einer neueren Version als " "in der angegebenen Umgebung vorliegen." -#: lib/webhooks/get_module_changes.py:98 +#: lib/webhooks/get_module_changes.py:100 msgid "An environment may not be None." msgstr "Eine Umgebung darf nicht None sein." -#: lib/webhooks/get_module_changes.py:101 lib/webhooks/get_module_changes.py:104 +#: lib/webhooks/get_module_changes.py:103 lib/webhooks/get_module_changes.py:106 msgid "Invalid environment name: {!r}." msgstr "Ungültiger Name für eine Umgebung: {!r}." -#: lib/webhooks/get_module_changes.py:130 +#: lib/webhooks/get_module_changes.py:132 msgid "ENVIRONMENT" msgstr "UMGEBUNG" -#: lib/webhooks/get_module_changes.py:131 +#: lib/webhooks/get_module_changes.py:133 msgid "The Puppet environmment, which to compare with Puppet forge, default: {!r}." msgstr "Die Puppet-Umgebung, die mit Puppet-Forge verglichen werden soll. Vorgabe: {!r}." -#: lib/webhooks/get_module_changes.py:162 +#: lib/webhooks/get_module_changes.py:164 msgid "Here I go. ..." msgstr "Und hier geht's los ⋯" -#: lib/webhooks/get_module_changes.py:178 +#: lib/webhooks/get_module_changes.py:180 msgid "Checking verions of modules ..." msgstr "Überprüfe Modul-Versionen ⋯" -#: lib/webhooks/get_module_changes.py:208 +#: lib/webhooks/get_module_changes.py:210 msgid "Version of module {m!r} on Puppet forge {fv!r} is newer than the local version {lv!r}." msgstr "Die Version des Moduls {m!r} ist bei Puppet-Forge {fv!r} neuer als die lokale Version {lv!r}." -#: lib/webhooks/get_module_changes.py:213 +#: lib/webhooks/get_module_changes.py:215 msgid "Version of module {m!r} on Puppet forge {fv!r} is equal or older than the local version {lv!r}." msgstr "" "Die Version des Moduls {m!r} ist bei Puppet-Forge {fv!r} gleich oder älter als die lokale " "Version {lv!r}." -#: lib/webhooks/get_module_changes.py:238 +#: lib/webhooks/get_module_changes.py:240 msgid "Check for newer versions of Puppet modules in environment {!r}" msgstr "Überprüfen nach neueren Versionen von Puppet-Modulen in Umgebung {!r}" -#: lib/webhooks/get_module_changes.py:242 +#: lib/webhooks/get_module_changes.py:244 msgid "Results of checking for newer versions of Puppet modules in environment {!r}:" msgstr "Ergebnisse der Überprüfung nach neueren Versionen von Puppet-Modulen in Umgebung {!r}:" -#: lib/webhooks/get_module_changes.py:250 +#: lib/webhooks/get_module_changes.py:252 msgid "" "Didn't found any modules in environment {!r} with a\n" "newer version on Puppet Forge." @@ -430,32 +430,32 @@ msgstr "" "Keine Module in Umgebung {!r} gefunden,\n" "für die eine neuere Version bei Puppet-Forge vorliegt." -#: lib/webhooks/get_module_changes.py:260 +#: lib/webhooks/get_module_changes.py:256 lib/webhooks/get_module_changes.py:310 +msgid "Checked at: {}" +msgstr "Überprüft am: {}" + +#: lib/webhooks/get_module_changes.py:262 msgid "Found one module in environment {e!r} with a newer version on Puppet Forge." msgid_plural "Found {n} modules in environment {e!r} with a newer version on Puppet Forge." msgstr[0] "Fand ein Modul in der Umgebung {e!r} mit einer neueren Version bei Puppet-Forge." msgstr[1] "Fand {n} Module in der Umgebung {e!r} mit einer neueren Version bei Puppet-Forge." -#: lib/webhooks/get_module_changes.py:264 +#: lib/webhooks/get_module_changes.py:266 msgid "Module" msgstr "Modul" -#: lib/webhooks/get_module_changes.py:265 +#: lib/webhooks/get_module_changes.py:267 msgid "Full Module name" msgstr "Vollständiger Modulname" -#: lib/webhooks/get_module_changes.py:266 +#: lib/webhooks/get_module_changes.py:268 msgid "Used Version" msgstr "Verwendete Version" -#: lib/webhooks/get_module_changes.py:267 +#: lib/webhooks/get_module_changes.py:269 msgid "Version on Puppet Forge" msgstr "Version bei Puppet-Forge" -#: lib/webhooks/get_module_changes.py:308 -msgid "Checked at: {}" -msgstr "Überprüft am: {}" - #: lib/webhooks/module_info.py:101 msgid "Could not analyze given full module name {!r}." msgstr "Konnte den übergebenen kompletten Modulnamen {!r} nicht analysieren." diff --git a/locale/en_US/LC_MESSAGES/puppetmaster_webhooks.po b/locale/en_US/LC_MESSAGES/puppetmaster_webhooks.po index eedba8d..f2eaab9 100644 --- a/locale/en_US/LC_MESSAGES/puppetmaster_webhooks.po +++ b/locale/en_US/LC_MESSAGES/puppetmaster_webhooks.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: puppetmaster_webhooks 1.3.1\n" "Report-Msgid-Bugs-To: frank.brehm@pixelpark.com\n" -"POT-Creation-Date: 2019-01-02 18:20+0100\n" +"POT-Creation-Date: 2019-01-03 11:47+0100\n" "PO-Revision-Date: 2018-12-28 09:57+0100\n" "Last-Translator: FULL NAME \n" "Language: en_US\n" @@ -352,88 +352,88 @@ msgstr "" msgid "Renaming {src!r} => {tgt!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:62 +#: lib/webhooks/get_module_changes.py:64 msgid "Puppet environment {!r} does not exists." msgstr "" -#: lib/webhooks/get_module_changes.py:79 +#: lib/webhooks/get_module_changes.py:81 msgid "" "Generates a list of all Puppets modules, which are newer in Puppet forge than in a defined " "environment." msgstr "" -#: lib/webhooks/get_module_changes.py:98 +#: lib/webhooks/get_module_changes.py:100 msgid "An environment may not be None." msgstr "" -#: lib/webhooks/get_module_changes.py:101 lib/webhooks/get_module_changes.py:104 +#: lib/webhooks/get_module_changes.py:103 lib/webhooks/get_module_changes.py:106 msgid "Invalid environment name: {!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:130 +#: lib/webhooks/get_module_changes.py:132 msgid "ENVIRONMENT" msgstr "" -#: lib/webhooks/get_module_changes.py:131 +#: lib/webhooks/get_module_changes.py:133 msgid "The Puppet environmment, which to compare with Puppet forge, default: {!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:162 +#: lib/webhooks/get_module_changes.py:164 msgid "Here I go. ..." msgstr "" -#: lib/webhooks/get_module_changes.py:178 +#: lib/webhooks/get_module_changes.py:180 msgid "Checking verions of modules ..." msgstr "" -#: lib/webhooks/get_module_changes.py:208 +#: lib/webhooks/get_module_changes.py:210 msgid "Version of module {m!r} on Puppet forge {fv!r} is newer than the local version {lv!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:213 +#: lib/webhooks/get_module_changes.py:215 msgid "Version of module {m!r} on Puppet forge {fv!r} is equal or older than the local version {lv!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:238 +#: lib/webhooks/get_module_changes.py:240 msgid "Check for newer versions of Puppet modules in environment {!r}" msgstr "" -#: lib/webhooks/get_module_changes.py:242 +#: lib/webhooks/get_module_changes.py:244 msgid "Results of checking for newer versions of Puppet modules in environment {!r}:" msgstr "" -#: lib/webhooks/get_module_changes.py:250 +#: lib/webhooks/get_module_changes.py:252 msgid "" "Didn't found any modules in environment {!r} with a\n" "newer version on Puppet Forge." msgstr "" -#: lib/webhooks/get_module_changes.py:260 +#: lib/webhooks/get_module_changes.py:256 lib/webhooks/get_module_changes.py:310 +msgid "Checked at: {}" +msgstr "" + +#: lib/webhooks/get_module_changes.py:262 msgid "Found one module in environment {e!r} with a newer version on Puppet Forge." msgid_plural "Found {n} modules in environment {e!r} with a newer version on Puppet Forge." msgstr[0] "" msgstr[1] "" -#: lib/webhooks/get_module_changes.py:264 +#: lib/webhooks/get_module_changes.py:266 msgid "Module" msgstr "" -#: lib/webhooks/get_module_changes.py:265 +#: lib/webhooks/get_module_changes.py:267 msgid "Full Module name" msgstr "" -#: lib/webhooks/get_module_changes.py:266 +#: lib/webhooks/get_module_changes.py:268 msgid "Used Version" msgstr "" -#: lib/webhooks/get_module_changes.py:267 +#: lib/webhooks/get_module_changes.py:269 msgid "Version on Puppet Forge" msgstr "" -#: lib/webhooks/get_module_changes.py:308 -msgid "Checked at: {}" -msgstr "" - #: lib/webhooks/module_info.py:101 msgid "Could not analyze given full module name {!r}." msgstr "" diff --git a/locale/puppetmaster_webhooks.pot b/locale/puppetmaster_webhooks.pot index e374319..fd18cb6 100644 --- a/locale/puppetmaster_webhooks.pot +++ b/locale/puppetmaster_webhooks.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: puppetmaster_webhooks 1.4.4\n" "Report-Msgid-Bugs-To: frank.brehm@pixelpark.com\n" -"POT-Creation-Date: 2019-01-02 18:20+0100\n" +"POT-Creation-Date: 2019-01-03 11:47+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -351,88 +351,88 @@ msgstr "" msgid "Renaming {src!r} => {tgt!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:62 +#: lib/webhooks/get_module_changes.py:64 msgid "Puppet environment {!r} does not exists." msgstr "" -#: lib/webhooks/get_module_changes.py:79 +#: lib/webhooks/get_module_changes.py:81 msgid "" "Generates a list of all Puppets modules, which are newer in Puppet forge than in a defined " "environment." msgstr "" -#: lib/webhooks/get_module_changes.py:98 +#: lib/webhooks/get_module_changes.py:100 msgid "An environment may not be None." msgstr "" -#: lib/webhooks/get_module_changes.py:101 lib/webhooks/get_module_changes.py:104 +#: lib/webhooks/get_module_changes.py:103 lib/webhooks/get_module_changes.py:106 msgid "Invalid environment name: {!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:130 +#: lib/webhooks/get_module_changes.py:132 msgid "ENVIRONMENT" msgstr "" -#: lib/webhooks/get_module_changes.py:131 +#: lib/webhooks/get_module_changes.py:133 msgid "The Puppet environmment, which to compare with Puppet forge, default: {!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:162 +#: lib/webhooks/get_module_changes.py:164 msgid "Here I go. ..." msgstr "" -#: lib/webhooks/get_module_changes.py:178 +#: lib/webhooks/get_module_changes.py:180 msgid "Checking verions of modules ..." msgstr "" -#: lib/webhooks/get_module_changes.py:208 +#: lib/webhooks/get_module_changes.py:210 msgid "Version of module {m!r} on Puppet forge {fv!r} is newer than the local version {lv!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:213 +#: lib/webhooks/get_module_changes.py:215 msgid "Version of module {m!r} on Puppet forge {fv!r} is equal or older than the local version {lv!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:238 +#: lib/webhooks/get_module_changes.py:240 msgid "Check for newer versions of Puppet modules in environment {!r}" msgstr "" -#: lib/webhooks/get_module_changes.py:242 +#: lib/webhooks/get_module_changes.py:244 msgid "Results of checking for newer versions of Puppet modules in environment {!r}:" msgstr "" -#: lib/webhooks/get_module_changes.py:250 +#: lib/webhooks/get_module_changes.py:252 msgid "" "Didn't found any modules in environment {!r} with a\n" "newer version on Puppet Forge." msgstr "" -#: lib/webhooks/get_module_changes.py:260 +#: lib/webhooks/get_module_changes.py:256 lib/webhooks/get_module_changes.py:310 +msgid "Checked at: {}" +msgstr "" + +#: lib/webhooks/get_module_changes.py:262 msgid "Found one module in environment {e!r} with a newer version on Puppet Forge." msgid_plural "Found {n} modules in environment {e!r} with a newer version on Puppet Forge." msgstr[0] "" msgstr[1] "" -#: lib/webhooks/get_module_changes.py:264 +#: lib/webhooks/get_module_changes.py:266 msgid "Module" msgstr "" -#: lib/webhooks/get_module_changes.py:265 +#: lib/webhooks/get_module_changes.py:267 msgid "Full Module name" msgstr "" -#: lib/webhooks/get_module_changes.py:266 +#: lib/webhooks/get_module_changes.py:268 msgid "Used Version" msgstr "" -#: lib/webhooks/get_module_changes.py:267 +#: lib/webhooks/get_module_changes.py:269 msgid "Version on Puppet Forge" msgstr "" -#: lib/webhooks/get_module_changes.py:308 -msgid "Checked at: {}" -msgstr "" - #: lib/webhooks/module_info.py:101 msgid "Could not analyze given full module name {!r}." msgstr ""