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
"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(
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 <frank.brehm@pixelpark.com>\n"
"Language: de_DE\n"
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."
"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."
"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."
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 <EMAIL@ADDRESS>\n"
"Language: en_US\n"
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 ""
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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
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 ""