From: Frank Brehm Date: Wed, 13 Feb 2019 10:58:05 +0000 (+0100) Subject: Ensuring correct translation as CGI X-Git-Tag: 1.6.4^2~57 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=25b37d55df0c4c0dc7da7feab666a89a016a7d2a;p=pixelpark%2Fpuppetmaster-webhooks.git Ensuring correct translation as CGI --- diff --git a/lib/webhooks/base_app.py b/lib/webhooks/base_app.py index 71e5c61..267e3c8 100644 --- a/lib/webhooks/base_app.py +++ b/lib/webhooks/base_app.py @@ -33,8 +33,6 @@ import six import yaml import pytz -from webob.acceptparse import create_accept_language_header - # Own modules from fb_tools.common import pp, to_bytes, to_bool from fb_tools.colored import ColoredFormatter @@ -265,16 +263,23 @@ class BaseHookApp(BaseApplication): # ------------------------------------------------------------------------- def init_locales(self): - accept_langs = os.getenv('HTTP_ACCEPT_LANGUAGE', None) - accept = create_accept_language_header(accept_langs) - lang = self.default_language + '.' + self.default_charset + if not self.is_cgi: + LOG.info("No CGI.") + return + + if self.verbose > 1: + xinfo = { + '__module_dir__': __xlate_module_dir__, + '__base_dir__': __xlate_base_dir__, + 'LOCALE_DIR': LOCALE_DIR, + 'DOMAIN': DOMAIN, + 'SUPPORTED_LANGS': SUPPORTED_LANGS, + '__mo_file__': __xlate_mo_file__, + 'XLATOR-Object-Type': XLATOR.__class__.__name__, + } + LOG.info("XLATOR information:\n" + pp(xinfo)) - if accept: - match = accept.best_match(SUPPORTED_LANGS) - if match: - lang = match + '.' + self.default_charset - LOG.debug("Setting 'LC_ALL' to {!r}.".format(lang)) - os.putenv('LC_ALL', lang) + return # ------------------------------------------------------------------------- def init_arg_parser(self): diff --git a/lib/webhooks/show_env.py b/lib/webhooks/show_env.py index 65bd1bf..7385ed2 100644 --- a/lib/webhooks/show_env.py +++ b/lib/webhooks/show_env.py @@ -12,16 +12,15 @@ from __future__ import absolute_import # Standard modules import logging import json -import datetime import re import textwrap import os import shutil +import copy # Third party modules # Own modules -from fb_tools.common import pp, is_sequence from . import __version__ @@ -172,7 +171,8 @@ class ShowEnvApp(BaseHookApp): out = ' \n' out += ' {}\n'.format(env_key) - out += ' {val}\n'.format(lc=line_class, val=env_val) + out += ' {val}\n'.format( + lc=line_class, val=env_val) out += ' ' self.print_out(out) diff --git a/lib/webhooks/xlate.py b/lib/webhooks/xlate.py index babbda2..c7d82ec 100644 --- a/lib/webhooks/xlate.py +++ b/lib/webhooks/xlate.py @@ -13,17 +13,20 @@ from __future__ import absolute_import, print_function # Standard modules import logging import gettext +import os from pathlib import Path # Third party modules from babel.support import Translations +from webob.acceptparse import create_accept_language_header + DOMAIN = 'puppetmaster_webhooks' LOG = logging.getLogger(__name__) -__version__ = '1.0.2' +__version__ = '1.1.0' __me__ = Path(__file__).resolve() __module_dir__ = __me__.parent @@ -35,7 +38,23 @@ if not LOCALE_DIR.is_dir(): if not LOCALE_DIR.is_dir(): LOCALE_DIR = None +SUPPORTED_LANGS = ( + 'de_DE', + 'en_US' +) + __mo_file__ = gettext.find(DOMAIN, str(LOCALE_DIR)) +if not __mo_file__: + if 'HTTP_ACCEPT_LANGUAGE' in os.environ: + ACCEPT = create_accept_language_header(os.environ['HTTP_ACCEPT_LANGUAGE']) + if ACCEPT: + LANG = ACCEPT.best_match(SUPPORTED_LANGS) + MO_DIR = LOCALE_DIR.joinpath(LANG).joinpath('LC_MESSAGES') + MO_FILE = MO_DIR.joinpath(DOMAIN + '.mo') + if MO_FILE.exists(): + __mo_file__ = str(MO_FILE) + + if __mo_file__: try: with open(__mo_file__, 'rb') as F: @@ -45,11 +64,6 @@ if __mo_file__: else: XLATOR = gettext.NullTranslations() -SUPPORTED_LANGS = ( - 'de_DE', - 'en_US' -) - _ = XLATOR.gettext # ============================================================================= diff --git a/locale/de_DE/LC_MESSAGES/puppetmaster_webhooks.po b/locale/de_DE/LC_MESSAGES/puppetmaster_webhooks.po index 7acc71b..89174b8 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-03 17:46+0100\n" +"POT-Creation-Date: 2019-02-13 10:46+0100\n" "PO-Revision-Date: 2019-01-03 14:12+0100\n" "Last-Translator: Frank Brehm \n" "Language: de_DE\n" @@ -18,75 +18,75 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.6.0\n" -#: lib/webhooks/base_app.py:91 lib/webhooks/base_app.py:1043 +#: lib/webhooks/base_app.py:94 lib/webhooks/base_app.py:1073 msgid "Data directory {!r} does not exists." msgstr "Das Datenverzeichnis {!r} existiert nicht." -#: lib/webhooks/base_app.py:95 lib/webhooks/base_app.py:1047 +#: lib/webhooks/base_app.py:98 lib/webhooks/base_app.py:1077 msgid "Path to data directory {!r} is not a directory." msgstr "Der Pfad zum Datenverzeichnis {!r} ist kein Verzeichnis." -#: lib/webhooks/base_app.py:107 lib/webhooks/base_app.py:792 +#: lib/webhooks/base_app.py:111 lib/webhooks/base_app.py:822 msgid "Logging directory {!r} does not exists." msgstr "Das Log-Verzeichnis {!r} existiert nicht." -#: lib/webhooks/base_app.py:111 lib/webhooks/base_app.py:798 +#: lib/webhooks/base_app.py:115 lib/webhooks/base_app.py:828 msgid "Path to logging directory {!r} is not a directory." msgstr "Der Pfad zum Log-Verzeichnis {!r} ist kein Verzeichnis." -#: lib/webhooks/base_app.py:168 +#: lib/webhooks/base_app.py:176 msgid "Base gitlab webhook application." msgstr "Basisanwendung für Gitlab-Webhooks." -#: lib/webhooks/base_app.py:263 +#: lib/webhooks/base_app.py:287 msgid "General hook options" msgstr "Allgemeine Webhook-Optionen" -#: lib/webhooks/base_app.py:267 +#: lib/webhooks/base_app.py:291 msgid "Don't send error mails in case of some exceptions." msgstr "Keine Fehler-Mails im Falle von Fehlern und Ausnahmen senden." -#: lib/webhooks/base_app.py:271 lib/webhooks/base_app.py:277 +#: lib/webhooks/base_app.py:295 lib/webhooks/base_app.py:301 msgid "DIR" msgstr "VERZEICHNIS" -#: lib/webhooks/base_app.py:273 +#: lib/webhooks/base_app.py:297 msgid "Data directory, default: {!r}." msgstr "Datenverzeichnis, Vorgabe: {!r}." -#: lib/webhooks/base_app.py:279 +#: lib/webhooks/base_app.py:303 msgid "Logging directory, default: {!r}." msgstr "Log-Verzeichnis. Vorgabe: {!r}." -#: lib/webhooks/base_app.py:286 +#: lib/webhooks/base_app.py:310 msgid "Sorting all lists of modules by name and vendor, in this order." msgstr "Sortieren aller Modullisten nach Name und Herausgeber, in dieser Reihenfolge." -#: lib/webhooks/base_app.py:291 +#: lib/webhooks/base_app.py:315 msgid "Sorting all lists of modules by the full name of the module (default)." msgstr "Sortieren aller Modullisten nach dem vollen Modulnamen (Vorgabe)." -#: lib/webhooks/base_app.py:296 +#: lib/webhooks/base_app.py:320 msgid "Enforces behaviour as called as a CGI script." msgstr "Erzwingt ein Verhalten des Skripts, als wenn es als CGI-Skript aufgerufen würde." -#: lib/webhooks/base_app.py:301 +#: lib/webhooks/base_app.py:325 msgid "An optional query string like on HTTP GET requests." msgstr "Ein optionaler Abfrage-String wie bei einem HTTP-GET-Request." -#: lib/webhooks/base_app.py:575 lib/webhooks/r10k.py:100 lib/webhooks/r10k.py:110 +#: lib/webhooks/base_app.py:602 lib/webhooks/r10k.py:96 lib/webhooks/r10k.py:106 msgid "Command {!r} not found." msgstr "Das Kommando {!r} wurde nicht gefunden." -#: lib/webhooks/base_app.py:613 +#: lib/webhooks/base_app.py:640 msgid "Trying to read config from {!r} ..." msgstr "Versuche Konfiguration aus {!r} zu lesen ⋯" -#: lib/webhooks/base_app.py:617 +#: lib/webhooks/base_app.py:644 msgid "Reading config from {!r} ..." msgstr "Lese Konfiguration aus {!r} ⋯" -#: lib/webhooks/base_app.py:622 +#: lib/webhooks/base_app.py:649 msgid "" "Read config:\n" "{}" @@ -94,103 +94,103 @@ msgstr "" "Gelesene Konfiguration:\n" "{}" -#: lib/webhooks/base_app.py:635 +#: lib/webhooks/base_app.py:662 msgid "Configuration error" msgstr "Konfigurationsfehler" -#: lib/webhooks/base_app.py:644 +#: lib/webhooks/base_app.py:671 msgid "Wrong verbose level {v!d} in file {f!r}, must be >= 0" msgstr "Falsches Ausführlichkeitsniveau {v!d} in Datei {f!r}, es muss größer als oder gleich Null sein." -#: lib/webhooks/base_app.py:647 +#: lib/webhooks/base_app.py:674 msgid "Wrong verbose level {v!r} in file {f!r}: {e}" msgstr "Falsches Ausführlichkeitsniveau {v!r}n Datei {f!r}: {e}" -#: lib/webhooks/base_app.py:662 +#: lib/webhooks/base_app.py:689 msgid "Logging directory {p!r} in file {f!r} must be an absolute path." msgstr "Das Log-Verzeichnis {p!r} in Datei {f!r} muss ein absoluter Pfad sein." -#: lib/webhooks/base_app.py:671 +#: lib/webhooks/base_app.py:698 msgid "Default parent directory {p!r} in file {f!r} must be an absolute path." msgstr "Das Vorgabe-Parent-Verzeichnis {p!r} in Datei {f!r} muss ein absoluter Pfad sein." -#: lib/webhooks/base_app.py:784 +#: lib/webhooks/base_app.py:814 msgid "Initialization error" msgstr "Initialisierungsfehler" -#: lib/webhooks/base_app.py:804 +#: lib/webhooks/base_app.py:834 msgid "Logging directory {!r} is not writeable." msgstr "In das Log-Verzeichnis {!r} kann nicht geschrieben werden." -#: lib/webhooks/base_app.py:819 +#: lib/webhooks/base_app.py:849 msgid "Could not open error logfile {f!r}: {e}" msgstr "Konnte Fehler-Logdatei {f!r} nicht öffnen: {e}" -#: lib/webhooks/base_app.py:855 +#: lib/webhooks/base_app.py:885 msgid "Python CGI is running." msgstr "Python-CGI-Skript wird ausgeführt." -#: lib/webhooks/base_app.py:888 lib/webhooks/base_app.py:893 +#: lib/webhooks/base_app.py:918 lib/webhooks/base_app.py:923 msgid "Got a {cn} performing {a}: {e}" msgstr "Hab einen {cn} bei der Ausführung von {a} erhalten: {e}" -#: lib/webhooks/base_app.py:899 +#: lib/webhooks/base_app.py:929 msgid "Got a {cn} reading input data as JSON: {e}" msgstr "Hab einen {cn} beim Lesen der Eingabedaten als JSON erhalten: {e}" -#: lib/webhooks/base_app.py:900 +#: lib/webhooks/base_app.py:930 msgid "Input data: {!r}" msgstr "Eingabedaten: {!r}" -#: lib/webhooks/base_app.py:914 +#: lib/webhooks/base_app.py:944 msgid "Executing {} ..." msgstr "Führe {} aus ⋯" -#: lib/webhooks/base_app.py:993 +#: lib/webhooks/base_app.py:1023 msgid "Project {!r}: Received special characters in module name" msgstr "Projekt {!r}: Spezialzeichen in Modulnamen erhalten" -#: lib/webhooks/base_app.py:1018 +#: lib/webhooks/base_app.py:1048 msgid "Last commit by {n!r} <{m}> at {d}." msgstr "Letzter Commit durch {n!r} <{m}> am {d}." -#: lib/webhooks/base_app.py:1029 +#: lib/webhooks/base_app.py:1059 msgid "Executing webhook {a!r} for Git SSH URL {u!r}, branch {b!r}." msgstr "Führe Webhook {a!r} für Git-SSH-URL {u!r}, Branch {b!r}, aus." -#: lib/webhooks/base_app.py:1051 +#: lib/webhooks/base_app.py:1081 msgid "Data directory {!r} is not writeable." msgstr "Im Datenverzeichnis {!r} kann nicht geschrieben werden." -#: lib/webhooks/base_app.py:1067 +#: lib/webhooks/base_app.py:1097 msgid "Error while processing {!r} project:" msgid_plural "Errors while processing {!r} project:" msgstr[0] "Fehler bei der Verarbeitung des {!r}-Projektes:" msgstr[1] "Fehler bei der Verarbeitung des {!r}-Projektes:" -#: lib/webhooks/base_app.py:1071 +#: lib/webhooks/base_app.py:1101 msgid "Puppetmaster deploy error for project {!r}" msgid_plural "Puppetmaster deploy errors for project {!r}" msgstr[0] "Puppetmaster-Deploy-Fehler für das Projekt {!r}" msgstr[1] "Puppetmaster-Deploy-Fehler für das Projekt {!r}" -#: lib/webhooks/base_app.py:1076 +#: lib/webhooks/base_app.py:1106 msgid "Error while processing {!r}:" msgid_plural "Errors while processing {!r}:" msgstr[0] "Fehler bei der Ausführung von {!r}:" msgstr[1] "Fehler bei der Ausführung von {!r}:" -#: lib/webhooks/base_app.py:1080 +#: lib/webhooks/base_app.py:1110 msgid "Puppetmaster error processing {!r}" msgid_plural "Puppetmaster errors processing {!r}" msgstr[0] "Puppetmaster-Fehler bei der Ausführung von {!r}" msgstr[1] "Puppetmaster-Fehler bei der Ausführung von {!r}" -#: lib/webhooks/base_app.py:1086 +#: lib/webhooks/base_app.py:1116 msgid "Cheers" msgstr "Grüße" -#: lib/webhooks/base_app.py:1104 +#: lib/webhooks/base_app.py:1134 msgid "" "Sending the following mail to {r!r} via {s}:{p}:\n" "{m}" @@ -198,7 +198,7 @@ msgstr "" "Verschicken der folgenden Mail an {r!r} via {s}:{p}:\n" "{m}" -#: lib/webhooks/base_app.py:1108 +#: lib/webhooks/base_app.py:1138 msgid "" "Sending a mail to {r!r} via {s}:{p}:\n" "{e}" @@ -206,15 +206,15 @@ msgstr "" "Verschicken einer Mail an {r!r} via {s}:{p}:\n" "{e}" -#: lib/webhooks/base_app.py:1113 +#: lib/webhooks/base_app.py:1143 msgid "It's undesired to send error mails." msgstr "Das Versenden von Fehler-Mails ist nicht gewünscht." -#: lib/webhooks/base_app.py:1117 +#: lib/webhooks/base_app.py:1147 msgid "Simulation mode, don't sending mail." msgstr "Simulations-Modus, kein Versenden von Mails." -#: lib/webhooks/base_app.py:1135 +#: lib/webhooks/base_app.py:1165 msgid "" "Errors on sending error message for project {pr!r} to {r!r} via {s}:{p}:\n" "{e}" @@ -222,7 +222,7 @@ msgstr "" "Fehler beim Versenden der Fehlermail für das Projekt {pr!r} an {r!r} via {s}:{p}:\n" "{e}" -#: lib/webhooks/base_app.py:1141 +#: lib/webhooks/base_app.py:1171 msgid "" "Errors on sending error message for {a!r} to {r!r} via {s}:{p}:\n" "{e}" @@ -230,47 +230,47 @@ msgstr "" "Fehler beim Versenden der Fehlermail für {a!r} an {r!r} via {s}:{p}:\n" "{e}" -#: lib/webhooks/base_app.py:1156 +#: lib/webhooks/base_app.py:1186 msgid "Cache file {!r} not found." msgstr "Cache-Datei {!r} nicht gefunden." -#: lib/webhooks/base_app.py:1160 +#: lib/webhooks/base_app.py:1190 msgid "Cache file {!r} not readable." msgstr "Cache-Datei {!r} nicht lesbar." -#: lib/webhooks/base_app.py:1191 +#: lib/webhooks/base_app.py:1221 msgid "Could not evaluate content of {f!r}: {e}" msgstr "Konnte den Inhalt von {f!r} nicht auswerten: {e}" -#: lib/webhooks/deploy.py:48 +#: lib/webhooks/deploy.py:47 msgid "Receives push events as JSON-Data and synchronizes the local repository." msgstr "" "Empfängt Push-Ereignisse als JSON-Data und synchronisiert das entsprechende lokale " "Arbeitsverzeichnis mit dem Repository." -#: lib/webhooks/deploy.py:179 +#: lib/webhooks/deploy.py:178 msgid "Could not find a definition for project {!r}." msgstr "Konnte keine Definition für das Projekt {!r} finden." -#: lib/webhooks/deploy.py:202 +#: lib/webhooks/deploy.py:201 msgid "Deploying working directory {f!r} for project {p!r} ..." msgstr "Aktualisiere Arbeitsverzeichnis {f!r} für das Projekt {p!r} ⋯" -#: lib/webhooks/deploy.py:206 +#: lib/webhooks/deploy.py:205 msgid "Parent directory {d!r} of project {p!r} does not exists." msgstr "Das übergeordnete Verzeichnis {d!r} des Projekts {p!r} existiert nicht." -#: lib/webhooks/deploy.py:213 +#: lib/webhooks/deploy.py:212 msgid "Path for parent directory {d!r} for project {p!r} is not a directory." msgstr "Der Pfad zum übergeordneten Verzeichnis {d!r} des Projekts {p!r} ist kein Verzeichnis." -#: lib/webhooks/deploy.py:243 lib/webhooks/deploy.py:290 lib/webhooks/r10k.py:273 -#: lib/webhooks/r10k.py:282 lib/webhooks/r10k.py:312 lib/webhooks/r10k.py:355 +#: lib/webhooks/deploy.py:242 lib/webhooks/deploy.py:289 lib/webhooks/r10k.py:269 +#: lib/webhooks/r10k.py:278 lib/webhooks/r10k.py:308 lib/webhooks/r10k.py:351 msgid "Output:" msgstr "Ausgabe:" -#: lib/webhooks/deploy.py:250 lib/webhooks/deploy.py:297 lib/webhooks/r10k.py:319 -#: lib/webhooks/r10k.py:362 +#: lib/webhooks/deploy.py:249 lib/webhooks/deploy.py:296 lib/webhooks/r10k.py:315 +#: lib/webhooks/r10k.py:358 msgid "" "Error messages on {c!r}:\n" "{e}" @@ -278,24 +278,24 @@ msgstr "" "Fehlermeldungen von {c!r}:\n" "{e}" -#: lib/webhooks/deploy.py:251 lib/webhooks/deploy.py:298 lib/webhooks/r10k.py:320 -#: lib/webhooks/r10k.py:363 +#: lib/webhooks/deploy.py:250 lib/webhooks/deploy.py:297 lib/webhooks/r10k.py:316 +#: lib/webhooks/r10k.py:359 msgid "Returncode was {}." msgstr "Rückgabewert war {}." -#: lib/webhooks/deploy.py:275 +#: lib/webhooks/deploy.py:274 msgid "Script {!r} exists, but is not a regular file." msgstr "Das Skript {!r} existiert, ist aber keine reguläre Datei." -#: lib/webhooks/deploy.py:279 +#: lib/webhooks/deploy.py:278 msgid "Script {!r} exists, but is not executable.." msgstr "Das Skript {!r} existiert, ist aber nicht ausführbar." -#: lib/webhooks/deploy.py:284 +#: lib/webhooks/deploy.py:283 msgid "Compiling language catalogues by calling {!r} ..." msgstr "Kompiliere Sprachkataloge durch Aufruf von {!r} ⋯" -#: lib/webhooks/get_forge_modules.py:84 +#: lib/webhooks/get_forge_modules.py:86 msgid "" "Collects information about all used Puppet Modules from {url!r} and cache those information in " "{cdir!r}." @@ -303,15 +303,15 @@ msgstr "" "Sammelt Informationen über alle verwendeten Puppet-Module von {url!r} und speichert diese " "Informationen in {cdir!r}." -#: lib/webhooks/get_forge_modules.py:114 lib/webhooks/get_forge_modules.py:123 +#: lib/webhooks/get_forge_modules.py:116 lib/webhooks/get_forge_modules.py:125 msgid "Don't get module information from Puppet forge." msgstr "Keine Modul-Informationen von Puppet-Forge holen." -#: lib/webhooks/get_forge_modules.py:162 +#: lib/webhooks/get_forge_modules.py:164 msgid "Path for the Puppet environments {p!r} must be an absolute path in {f!r}." msgstr "Der Pfad zu den Puppet-Umgebungen {p!r} muss ein absoluter Pfad in {f!r} sein." -#: lib/webhooks/get_forge_modules.py:172 +#: lib/webhooks/get_forge_modules.py:174 msgid "Invalid HTTP timeout {t!r} in {f!r} found." msgstr "Ungültige HTTP-Zeitüberschreitung in {f!r} gefunden." @@ -331,67 +331,67 @@ msgstr "Sammle Modul-Informationen von Upstream ⋯" msgid "Reading metadata files of environment {!r} ..." msgstr "Lese Metadaten-Dateien von Umgebung {!r} ⋯" -#: lib/webhooks/get_forge_modules.py:287 +#: lib/webhooks/get_forge_modules.py:282 msgid "Got no module info from directory {!r}." msgstr "Keine Modul-Informationen aus dem Verzeichnis {!r} erhalten." -#: lib/webhooks/get_forge_modules.py:296 lib/webhooks/r10k.py:126 +#: lib/webhooks/get_forge_modules.py:291 lib/webhooks/r10k.py:122 msgid "Directory {!r} does not exists." msgstr "Das Verzeichnis {!r} existiert nicht." -#: lib/webhooks/get_forge_modules.py:300 +#: lib/webhooks/get_forge_modules.py:295 msgid "Path {!r} is not a directory." msgstr "Der Pfad {!r} is kein Verzeichnis." -#: lib/webhooks/get_forge_modules.py:305 +#: lib/webhooks/get_forge_modules.py:300 msgid "Metadatafile {!r} does not exists." msgstr "Die Metadaten-Datei {!r} existiert nicht." -#: lib/webhooks/get_forge_modules.py:308 +#: lib/webhooks/get_forge_modules.py:303 msgid "Metadatafile {!r} is not a regular file." msgstr "Die Metadaten-Datei {!r} ist keine reguläre Datei." -#: lib/webhooks/get_forge_modules.py:311 +#: lib/webhooks/get_forge_modules.py:306 msgid "No read access to metadatafile {!r}." msgstr "Kein Lesezugriff auf die Metadaten-Datei {!r}." -#: lib/webhooks/get_forge_modules.py:321 +#: lib/webhooks/get_forge_modules.py:316 msgid "Could not interprete {f!r} as a regular JSON file: {e}" msgstr "Konnte {f!r} nicht als reguläre JSON-Datei interpretieren: {e}" -#: lib/webhooks/get_forge_modules.py:325 +#: lib/webhooks/get_forge_modules.py:320 msgid "Did not found any data in {!r}." msgstr "Keine Daten in {!r} gefunden." -#: lib/webhooks/get_forge_modules.py:334 +#: lib/webhooks/get_forge_modules.py:337 msgid "Reading Puppetfile of environment {!r} ..." msgstr "Lese Puppetfile von Umgebung {!r} ⋯" -#: lib/webhooks/get_forge_modules.py:376 +#: lib/webhooks/get_forge_modules.py:379 msgid "Did not found environments in {!r}." msgstr "Keine Umgebungen in {!r} gefunden." -#: lib/webhooks/get_forge_modules.py:394 +#: lib/webhooks/get_forge_modules.py:397 msgid "Trying to open {!r} exclusive ..." msgstr "Versuche, {!r} exklusiv zu öffnen ⋯" -#: lib/webhooks/get_forge_modules.py:397 +#: lib/webhooks/get_forge_modules.py:400 msgid "Simulation mode, cache file will not be written." msgstr "Simulations-Modus, Cache-Datei wird nicht geschrieben." -#: lib/webhooks/get_forge_modules.py:404 +#: lib/webhooks/get_forge_modules.py:407 msgid "Error on creating file {f!r}: {e}" msgstr "Fehler bim Erstellen der Datei {f!r}: {e}" -#: lib/webhooks/get_forge_modules.py:434 +#: lib/webhooks/get_forge_modules.py:437 msgid "Renaming {src!r} => {tgt!r}." msgstr "Umbenennung {src!r} => {tgt!r}." -#: lib/webhooks/get_module_changes.py:64 +#: lib/webhooks/get_module_changes.py:62 msgid "Puppet environment {!r} does not exists." msgstr "Die Puppet-Umgebung {!r} existiert nicht." -#: lib/webhooks/get_module_changes.py:81 +#: lib/webhooks/get_module_changes.py:79 msgid "" "Generates a list of all Puppets modules, which are newer in Puppet forge than in a defined " "environment." @@ -399,49 +399,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:100 +#: lib/webhooks/get_module_changes.py:98 msgid "An environment may not be None." msgstr "Eine Umgebung darf nicht None sein." -#: lib/webhooks/get_module_changes.py:103 lib/webhooks/get_module_changes.py:106 +#: lib/webhooks/get_module_changes.py:101 lib/webhooks/get_module_changes.py:104 msgid "Invalid environment name: {!r}." msgstr "Ungültiger Name für eine Umgebung: {!r}." -#: lib/webhooks/get_module_changes.py:132 +#: lib/webhooks/get_module_changes.py:130 msgid "ENVIRONMENT" msgstr "UMGEBUNG" -#: lib/webhooks/get_module_changes.py:133 +#: lib/webhooks/get_module_changes.py:131 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:164 +#: lib/webhooks/get_module_changes.py:161 msgid "Here I go. ..." msgstr "Und hier geht's los ⋯" -#: lib/webhooks/get_module_changes.py:180 +#: lib/webhooks/get_module_changes.py:177 msgid "Checking verions of modules ..." msgstr "Überprüfe Modul-Versionen ⋯" -#: lib/webhooks/get_module_changes.py:210 +#: lib/webhooks/get_module_changes.py:207 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:215 +#: lib/webhooks/get_module_changes.py:212 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:240 +#: lib/webhooks/get_module_changes.py:237 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:244 +#: lib/webhooks/get_module_changes.py:241 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:252 +#: lib/webhooks/get_module_changes.py:249 msgid "" "Didn't found any modules in environment {!r} with a\n" "newer version on Puppet Forge." @@ -449,29 +449,29 @@ msgstr "" "Keine Module in Umgebung {!r} gefunden,\n" "für die eine neuere Version bei Puppet-Forge vorliegt." -#: lib/webhooks/get_module_changes.py:256 lib/webhooks/get_module_changes.py:310 +#: lib/webhooks/get_module_changes.py:253 lib/webhooks/get_module_changes.py:307 msgid "Checked at: {}" msgstr "Überprüft am: {}" -#: lib/webhooks/get_module_changes.py:262 +#: lib/webhooks/get_module_changes.py:259 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:266 +#: lib/webhooks/get_module_changes.py:263 msgid "Module" msgstr "Modul" -#: lib/webhooks/get_module_changes.py:267 +#: lib/webhooks/get_module_changes.py:264 msgid "Full Module name" msgstr "Vollständiger Modulname" -#: lib/webhooks/get_module_changes.py:268 +#: lib/webhooks/get_module_changes.py:265 msgid "Used Version" msgstr "Verwendete Version" -#: lib/webhooks/get_module_changes.py:269 +#: lib/webhooks/get_module_changes.py:266 msgid "Version on Puppet Forge" msgstr "Version bei Puppet-Forge" @@ -547,6 +547,16 @@ msgstr "Ein leere Schlüssel is nicht erlaubt." msgid "Object {{!r}} is not a {} object." msgstr "Das Objekt {{!r}} ist kein {}-Objekt." +#: lib/webhooks/module_meta_info.py:59 lib/webhooks/module_meta_info.py:105 +#: lib/webhooks/module_meta_info.py:335 +msgid "{} not included in JSON data." +msgstr "{} is in den JSON-Daten nicht enthalten." + +#: lib/webhooks/module_meta_info.py:111 lib/webhooks/module_meta_info.py:339 +#: lib/webhooks/module_meta_info.py:344 lib/webhooks/module_meta_info.py:349 +msgid "Invalid item {} - not a list." +msgstr "Ungültiger Eintrag {} - keine Liste." + #: lib/webhooks/puppetfile.py:96 msgid "The root directory of all puppet environments may not be None." msgstr "Das Root-Verzeichnis aller Puppet-Umgebungen darf nicht None sein." @@ -563,143 +573,163 @@ msgstr "Das Puppetfile {!r} existiert nicht." msgid "Puppetfile {!r} is not readable." msgstr "Das Puppetfile {!r} kann nicht gelesen werden." -#: lib/webhooks/r10k.py:53 +#: lib/webhooks/r10k.py:49 msgid "Receives push events as JSON-Data and deploys it with r10k." msgstr "Erhält Push-Ereignisse als JSON-Daten und verteilt diese mittels r10k." -#: lib/webhooks/r10k.py:118 +#: lib/webhooks/r10k.py:114 msgid "Puppetmaster SSL directory {!r} is not an absolute path name." msgstr "Das Puppetmaster-SSL-Verzeichnis {!r} ist kein absoluter Pfad." -#: lib/webhooks/r10k.py:129 lib/webhooks/r10k.py:141 +#: lib/webhooks/r10k.py:125 lib/webhooks/r10k.py:137 msgid "Directory {!r} is read protected, cannot check existence of cert files." msgstr "" "Das Verzeichnis {!r} ist lesegeschützt, kann deshalb die Existenz der Zertifikats-Dateien nicht " "überprüfen." -#: lib/webhooks/r10k.py:137 +#: lib/webhooks/r10k.py:133 msgid "Puppetmaster SSL directory {!r} does not exists." msgstr "Das Puppetmaster-SSL-Verzeichnis {!r} existiert nicht." -#: lib/webhooks/r10k.py:156 +#: lib/webhooks/r10k.py:152 msgid "File {!r} does not exists." msgstr "Die Datei {!r} existiert nicht." -#: lib/webhooks/r10k.py:159 +#: lib/webhooks/r10k.py:155 msgid "File {!r} is not readable." msgstr "Die Datei {!r} kann nicht gelesen werden." -#: lib/webhooks/r10k.py:178 +#: lib/webhooks/r10k.py:174 msgid "Invalid port {p!r} for puppetmaster API in {f!r} found: {e}" msgstr "Ungültige Portnummer {p!r} für die Puppetmaster-API in {f!r} gefunden: {e}" -#: lib/webhooks/r10k.py:195 +#: lib/webhooks/r10k.py:191 msgid "Current locale is: {lo!r}, current LANG is {la!r}." msgstr "Aktuelles Gebietsschema ist: {lo!r}, die aktuelle Sprache ist: {la!r}." -#: lib/webhooks/r10k.py:209 +#: lib/webhooks/r10k.py:205 msgid "Executing {!r} was not successful." msgstr "Die Ausführung von {!r} war nicht erfolgreich." -#: lib/webhooks/r10k.py:214 +#: lib/webhooks/r10k.py:210 msgid "{!r} was not successful." msgstr "{!r} war nicht erfolgreich." -#: lib/webhooks/r10k.py:223 +#: lib/webhooks/r10k.py:219 msgid "No environment defined." msgstr "Keine Umgebung definiert." -#: lib/webhooks/r10k.py:227 +#: lib/webhooks/r10k.py:223 msgid "Environment directory {!r} does not exists." msgstr "Das Umgebungs-Verzeichnis {!r} existiert nicht." -#: lib/webhooks/r10k.py:230 +#: lib/webhooks/r10k.py:226 msgid "Clearing environment cache for environment {e!r} on {h!r}." msgstr "Lösche Umgebungs-Cache für die Umgebung {e!r} auf {h!r}." -#: lib/webhooks/r10k.py:253 +#: lib/webhooks/r10k.py:249 msgid "Simulation mode, don't requesting URL." msgstr "Simulations-Modus, frage keine URL ab." -#: lib/webhooks/r10k.py:275 lib/webhooks/r10k.py:284 lib/webhooks/r10k.py:315 lib/webhooks/r10k.py:358 +#: lib/webhooks/r10k.py:271 lib/webhooks/r10k.py:280 lib/webhooks/r10k.py:311 lib/webhooks/r10k.py:354 msgid "No output." msgstr "Keine Ausgabe." -#: lib/webhooks/r10k.py:280 +#: lib/webhooks/r10k.py:276 msgid "Got status code: {}." msgstr "Erhaltener Statuscode: {}" -#: lib/webhooks/r10k.py:294 +#: lib/webhooks/r10k.py:290 msgid "Generating Puppet types for environment {e!r} on {h!r}." msgstr "Generiere Puppet-Typen für die Umgebung {e!r} auf {h!r}." -#: lib/webhooks/r10k.py:333 +#: lib/webhooks/r10k.py:329 msgid "Deploying r10k environment {e!r} on {h!r}." msgstr "Rolle r10k-Umgebung {e!r} auf {h!r} aus." -#: lib/webhooks/show_modules.py:59 +#: lib/webhooks/show_env.py:65 +msgid "Shows all environment variables and sonme information about Python." +msgstr "Stellt alle Umgebungsvariablen und einige Informationen zu Python dar." + +#: lib/webhooks/show_env.py:74 +msgid "Environment" +msgstr "Umgebung" + +#: lib/webhooks/show_env.py:147 lib/webhooks/show_env.py:185 +msgid "All environment variables." +msgstr "Alle Umgebungsvariablen." + +#: lib/webhooks/show_env.py:152 lib/webhooks/show_env.py:191 +msgid "Environment name" +msgstr "Name der Umgebungsvariablen" + +#: lib/webhooks/show_env.py:153 lib/webhooks/show_env.py:192 +msgid "Environment value" +msgstr "Wert der Umgebungsvariablen" + +#: lib/webhooks/show_modules.py:60 msgid "Returns a list with all used Puppet modules." msgstr "Gibt eine Liste mit allen Puppet-Modulen zurück." -#: lib/webhooks/show_modules.py:67 +#: lib/webhooks/show_modules.py:68 msgid "All Puppet modules." msgstr "Alle Puppet-Module" -#: lib/webhooks/show_modules.py:172 +#: lib/webhooks/show_modules.py:173 msgid "{c}: Invalid regular expression {r!r}: {e}" msgstr "{c}: Ungültiger regulärer Ausdruck {r!r}: {e}" -#: lib/webhooks/show_modules.py:230 lib/webhooks/show_modules.py:313 +#: lib/webhooks/show_modules.py:231 lib/webhooks/show_modules.py:311 msgid "No suitable modules found." msgstr "Keine passenden Module gefunden." -#: lib/webhooks/show_modules.py:239 lib/webhooks/show_modules.py:318 +#: lib/webhooks/show_modules.py:240 lib/webhooks/show_modules.py:316 msgid "Name" msgstr "Name" -#: lib/webhooks/show_modules.py:241 lib/webhooks/show_modules.py:319 +#: lib/webhooks/show_modules.py:242 lib/webhooks/show_modules.py:317 msgid "Complete Name" msgstr "Vollständiger Name" -#: lib/webhooks/show_modules.py:243 lib/webhooks/show_modules.py:320 +#: lib/webhooks/show_modules.py:244 lib/webhooks/show_modules.py:318 msgid "Repository" msgstr "Repository" -#: lib/webhooks/show_modules.py:245 +#: lib/webhooks/show_modules.py:246 msgid "Homepage at Puppet Forge" msgstr "Homepage bei Puppet Forge" -#: lib/webhooks/show_modules.py:247 +#: lib/webhooks/show_modules.py:248 msgid "Version" msgstr "Version" -#: lib/webhooks/show_modules.py:249 lib/webhooks/show_modules.py:325 +#: lib/webhooks/show_modules.py:250 lib/webhooks/show_modules.py:323 msgid "Last Check" msgstr "Letzte Überprüfung" -#: lib/webhooks/show_modules.py:302 lib/webhooks/show_modules.py:370 +#: lib/webhooks/show_modules.py:300 lib/webhooks/show_modules.py:365 msgid "Found total {sb}one module{eb}." msgid_plural "Found total {sb}{nr} modules{eb}." msgstr[0] "Insgesamt {sb}ein Modul{eb} gefunden." msgstr[1] "Insgesamt {sb}{nr} Module{eb} gefunden." -#: lib/webhooks/xlate.py:54 +#: lib/webhooks/xlate.py:59 msgid "Module directory: {!r}" msgstr "Modul-Verzeichnis: {!r}" -#: lib/webhooks/xlate.py:55 +#: lib/webhooks/xlate.py:60 msgid "Base directory: {!r}" msgstr "Basis-Verzeichnis: {!r}" -#: lib/webhooks/xlate.py:56 +#: lib/webhooks/xlate.py:61 msgid "Locale directory: {!r}" msgstr "Verzeichnis für Locales: {!r}" -#: lib/webhooks/xlate.py:57 +#: lib/webhooks/xlate.py:62 msgid "Locale domain: {!r}" msgstr "Locale-Domäne: {!r}" -#: lib/webhooks/xlate.py:58 +#: lib/webhooks/xlate.py:63 msgid "Found .mo-file: {!r}" msgstr "Gefundene .mo-Datei: {!r}" diff --git a/locale/en_US/LC_MESSAGES/puppetmaster_webhooks.po b/locale/en_US/LC_MESSAGES/puppetmaster_webhooks.po index 29ef378..1b1a24b 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-03 17:46+0100\n" +"POT-Creation-Date: 2019-02-13 10:46+0100\n" "PO-Revision-Date: 2018-12-28 09:57+0100\n" "Last-Translator: FULL NAME \n" "Language: en_US\n" @@ -18,284 +18,284 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.6.0\n" -#: lib/webhooks/base_app.py:91 lib/webhooks/base_app.py:1043 +#: lib/webhooks/base_app.py:94 lib/webhooks/base_app.py:1073 msgid "Data directory {!r} does not exists." msgstr "" -#: lib/webhooks/base_app.py:95 lib/webhooks/base_app.py:1047 +#: lib/webhooks/base_app.py:98 lib/webhooks/base_app.py:1077 msgid "Path to data directory {!r} is not a directory." msgstr "" -#: lib/webhooks/base_app.py:107 lib/webhooks/base_app.py:792 +#: lib/webhooks/base_app.py:111 lib/webhooks/base_app.py:822 msgid "Logging directory {!r} does not exists." msgstr "" -#: lib/webhooks/base_app.py:111 lib/webhooks/base_app.py:798 +#: lib/webhooks/base_app.py:115 lib/webhooks/base_app.py:828 msgid "Path to logging directory {!r} is not a directory." msgstr "" -#: lib/webhooks/base_app.py:168 +#: lib/webhooks/base_app.py:176 msgid "Base gitlab webhook application." msgstr "" -#: lib/webhooks/base_app.py:263 +#: lib/webhooks/base_app.py:287 msgid "General hook options" msgstr "" -#: lib/webhooks/base_app.py:267 +#: lib/webhooks/base_app.py:291 msgid "Don't send error mails in case of some exceptions." msgstr "" -#: lib/webhooks/base_app.py:271 lib/webhooks/base_app.py:277 +#: lib/webhooks/base_app.py:295 lib/webhooks/base_app.py:301 msgid "DIR" msgstr "" -#: lib/webhooks/base_app.py:273 +#: lib/webhooks/base_app.py:297 msgid "Data directory, default: {!r}." msgstr "" -#: lib/webhooks/base_app.py:279 +#: lib/webhooks/base_app.py:303 msgid "Logging directory, default: {!r}." msgstr "" -#: lib/webhooks/base_app.py:286 +#: lib/webhooks/base_app.py:310 msgid "Sorting all lists of modules by name and vendor, in this order." msgstr "" -#: lib/webhooks/base_app.py:291 +#: lib/webhooks/base_app.py:315 msgid "Sorting all lists of modules by the full name of the module (default)." msgstr "" -#: lib/webhooks/base_app.py:296 +#: lib/webhooks/base_app.py:320 msgid "Enforces behaviour as called as a CGI script." msgstr "" -#: lib/webhooks/base_app.py:301 +#: lib/webhooks/base_app.py:325 msgid "An optional query string like on HTTP GET requests." msgstr "" -#: lib/webhooks/base_app.py:575 lib/webhooks/r10k.py:100 lib/webhooks/r10k.py:110 +#: lib/webhooks/base_app.py:602 lib/webhooks/r10k.py:96 lib/webhooks/r10k.py:106 msgid "Command {!r} not found." msgstr "" -#: lib/webhooks/base_app.py:613 +#: lib/webhooks/base_app.py:640 msgid "Trying to read config from {!r} ..." msgstr "" -#: lib/webhooks/base_app.py:617 +#: lib/webhooks/base_app.py:644 msgid "Reading config from {!r} ..." msgstr "" -#: lib/webhooks/base_app.py:622 +#: lib/webhooks/base_app.py:649 msgid "" "Read config:\n" "{}" msgstr "" -#: lib/webhooks/base_app.py:635 +#: lib/webhooks/base_app.py:662 msgid "Configuration error" msgstr "" -#: lib/webhooks/base_app.py:644 +#: lib/webhooks/base_app.py:671 msgid "Wrong verbose level {v!d} in file {f!r}, must be >= 0" msgstr "" -#: lib/webhooks/base_app.py:647 +#: lib/webhooks/base_app.py:674 msgid "Wrong verbose level {v!r} in file {f!r}: {e}" msgstr "" -#: lib/webhooks/base_app.py:662 +#: lib/webhooks/base_app.py:689 msgid "Logging directory {p!r} in file {f!r} must be an absolute path." msgstr "" -#: lib/webhooks/base_app.py:671 +#: lib/webhooks/base_app.py:698 msgid "Default parent directory {p!r} in file {f!r} must be an absolute path." msgstr "" -#: lib/webhooks/base_app.py:784 +#: lib/webhooks/base_app.py:814 msgid "Initialization error" msgstr "" -#: lib/webhooks/base_app.py:804 +#: lib/webhooks/base_app.py:834 msgid "Logging directory {!r} is not writeable." msgstr "" -#: lib/webhooks/base_app.py:819 +#: lib/webhooks/base_app.py:849 msgid "Could not open error logfile {f!r}: {e}" msgstr "" -#: lib/webhooks/base_app.py:855 +#: lib/webhooks/base_app.py:885 msgid "Python CGI is running." msgstr "" -#: lib/webhooks/base_app.py:888 lib/webhooks/base_app.py:893 +#: lib/webhooks/base_app.py:918 lib/webhooks/base_app.py:923 msgid "Got a {cn} performing {a}: {e}" msgstr "" -#: lib/webhooks/base_app.py:899 +#: lib/webhooks/base_app.py:929 msgid "Got a {cn} reading input data as JSON: {e}" msgstr "" -#: lib/webhooks/base_app.py:900 +#: lib/webhooks/base_app.py:930 msgid "Input data: {!r}" msgstr "" -#: lib/webhooks/base_app.py:914 +#: lib/webhooks/base_app.py:944 msgid "Executing {} ..." msgstr "" -#: lib/webhooks/base_app.py:993 +#: lib/webhooks/base_app.py:1023 msgid "Project {!r}: Received special characters in module name" msgstr "" -#: lib/webhooks/base_app.py:1018 +#: lib/webhooks/base_app.py:1048 msgid "Last commit by {n!r} <{m}> at {d}." msgstr "" -#: lib/webhooks/base_app.py:1029 +#: lib/webhooks/base_app.py:1059 msgid "Executing webhook {a!r} for Git SSH URL {u!r}, branch {b!r}." msgstr "" -#: lib/webhooks/base_app.py:1051 +#: lib/webhooks/base_app.py:1081 msgid "Data directory {!r} is not writeable." msgstr "" -#: lib/webhooks/base_app.py:1067 +#: lib/webhooks/base_app.py:1097 msgid "Error while processing {!r} project:" msgid_plural "Errors while processing {!r} project:" msgstr[0] "" msgstr[1] "" -#: lib/webhooks/base_app.py:1071 +#: lib/webhooks/base_app.py:1101 msgid "Puppetmaster deploy error for project {!r}" msgid_plural "Puppetmaster deploy errors for project {!r}" msgstr[0] "" msgstr[1] "" -#: lib/webhooks/base_app.py:1076 +#: lib/webhooks/base_app.py:1106 msgid "Error while processing {!r}:" msgid_plural "Errors while processing {!r}:" msgstr[0] "" msgstr[1] "" -#: lib/webhooks/base_app.py:1080 +#: lib/webhooks/base_app.py:1110 msgid "Puppetmaster error processing {!r}" msgid_plural "Puppetmaster errors processing {!r}" msgstr[0] "" msgstr[1] "" -#: lib/webhooks/base_app.py:1086 +#: lib/webhooks/base_app.py:1116 msgid "Cheers" msgstr "" -#: lib/webhooks/base_app.py:1104 +#: lib/webhooks/base_app.py:1134 msgid "" "Sending the following mail to {r!r} via {s}:{p}:\n" "{m}" msgstr "" -#: lib/webhooks/base_app.py:1108 +#: lib/webhooks/base_app.py:1138 msgid "" "Sending a mail to {r!r} via {s}:{p}:\n" "{e}" msgstr "" -#: lib/webhooks/base_app.py:1113 +#: lib/webhooks/base_app.py:1143 msgid "It's undesired to send error mails." msgstr "" -#: lib/webhooks/base_app.py:1117 +#: lib/webhooks/base_app.py:1147 msgid "Simulation mode, don't sending mail." msgstr "" -#: lib/webhooks/base_app.py:1135 +#: lib/webhooks/base_app.py:1165 msgid "" "Errors on sending error message for project {pr!r} to {r!r} via {s}:{p}:\n" "{e}" msgstr "" -#: lib/webhooks/base_app.py:1141 +#: lib/webhooks/base_app.py:1171 msgid "" "Errors on sending error message for {a!r} to {r!r} via {s}:{p}:\n" "{e}" msgstr "" -#: lib/webhooks/base_app.py:1156 +#: lib/webhooks/base_app.py:1186 msgid "Cache file {!r} not found." msgstr "" -#: lib/webhooks/base_app.py:1160 +#: lib/webhooks/base_app.py:1190 msgid "Cache file {!r} not readable." msgstr "" -#: lib/webhooks/base_app.py:1191 +#: lib/webhooks/base_app.py:1221 msgid "Could not evaluate content of {f!r}: {e}" msgstr "" -#: lib/webhooks/deploy.py:48 +#: lib/webhooks/deploy.py:47 msgid "Receives push events as JSON-Data and synchronizes the local repository." msgstr "" -#: lib/webhooks/deploy.py:179 +#: lib/webhooks/deploy.py:178 msgid "Could not find a definition for project {!r}." msgstr "" -#: lib/webhooks/deploy.py:202 +#: lib/webhooks/deploy.py:201 msgid "Deploying working directory {f!r} for project {p!r} ..." msgstr "" -#: lib/webhooks/deploy.py:206 +#: lib/webhooks/deploy.py:205 msgid "Parent directory {d!r} of project {p!r} does not exists." msgstr "" -#: lib/webhooks/deploy.py:213 +#: lib/webhooks/deploy.py:212 msgid "Path for parent directory {d!r} for project {p!r} is not a directory." msgstr "" -#: lib/webhooks/deploy.py:243 lib/webhooks/deploy.py:290 lib/webhooks/r10k.py:273 -#: lib/webhooks/r10k.py:282 lib/webhooks/r10k.py:312 lib/webhooks/r10k.py:355 +#: lib/webhooks/deploy.py:242 lib/webhooks/deploy.py:289 lib/webhooks/r10k.py:269 +#: lib/webhooks/r10k.py:278 lib/webhooks/r10k.py:308 lib/webhooks/r10k.py:351 msgid "Output:" msgstr "" -#: lib/webhooks/deploy.py:250 lib/webhooks/deploy.py:297 lib/webhooks/r10k.py:319 -#: lib/webhooks/r10k.py:362 +#: lib/webhooks/deploy.py:249 lib/webhooks/deploy.py:296 lib/webhooks/r10k.py:315 +#: lib/webhooks/r10k.py:358 msgid "" "Error messages on {c!r}:\n" "{e}" msgstr "" -#: lib/webhooks/deploy.py:251 lib/webhooks/deploy.py:298 lib/webhooks/r10k.py:320 -#: lib/webhooks/r10k.py:363 +#: lib/webhooks/deploy.py:250 lib/webhooks/deploy.py:297 lib/webhooks/r10k.py:316 +#: lib/webhooks/r10k.py:359 msgid "Returncode was {}." msgstr "" -#: lib/webhooks/deploy.py:275 +#: lib/webhooks/deploy.py:274 msgid "Script {!r} exists, but is not a regular file." msgstr "" -#: lib/webhooks/deploy.py:279 +#: lib/webhooks/deploy.py:278 msgid "Script {!r} exists, but is not executable.." msgstr "" -#: lib/webhooks/deploy.py:284 +#: lib/webhooks/deploy.py:283 msgid "Compiling language catalogues by calling {!r} ..." msgstr "" -#: lib/webhooks/get_forge_modules.py:84 +#: lib/webhooks/get_forge_modules.py:86 msgid "" "Collects information about all used Puppet Modules from {url!r} and cache those information in " "{cdir!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:114 lib/webhooks/get_forge_modules.py:123 +#: lib/webhooks/get_forge_modules.py:116 lib/webhooks/get_forge_modules.py:125 msgid "Don't get module information from Puppet forge." msgstr "" -#: lib/webhooks/get_forge_modules.py:162 +#: lib/webhooks/get_forge_modules.py:164 msgid "Path for the Puppet environments {p!r} must be an absolute path in {f!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:172 +#: lib/webhooks/get_forge_modules.py:174 msgid "Invalid HTTP timeout {t!r} in {f!r} found." msgstr "" @@ -315,141 +315,141 @@ msgstr "" msgid "Reading metadata files of environment {!r} ..." msgstr "" -#: lib/webhooks/get_forge_modules.py:287 +#: lib/webhooks/get_forge_modules.py:282 msgid "Got no module info from directory {!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:296 lib/webhooks/r10k.py:126 +#: lib/webhooks/get_forge_modules.py:291 lib/webhooks/r10k.py:122 msgid "Directory {!r} does not exists." msgstr "" -#: lib/webhooks/get_forge_modules.py:300 +#: lib/webhooks/get_forge_modules.py:295 msgid "Path {!r} is not a directory." msgstr "" -#: lib/webhooks/get_forge_modules.py:305 +#: lib/webhooks/get_forge_modules.py:300 msgid "Metadatafile {!r} does not exists." msgstr "" -#: lib/webhooks/get_forge_modules.py:308 +#: lib/webhooks/get_forge_modules.py:303 msgid "Metadatafile {!r} is not a regular file." msgstr "" -#: lib/webhooks/get_forge_modules.py:311 +#: lib/webhooks/get_forge_modules.py:306 msgid "No read access to metadatafile {!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:321 +#: lib/webhooks/get_forge_modules.py:316 msgid "Could not interprete {f!r} as a regular JSON file: {e}" msgstr "" -#: lib/webhooks/get_forge_modules.py:325 +#: lib/webhooks/get_forge_modules.py:320 msgid "Did not found any data in {!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:334 +#: lib/webhooks/get_forge_modules.py:337 msgid "Reading Puppetfile of environment {!r} ..." msgstr "" -#: lib/webhooks/get_forge_modules.py:376 +#: lib/webhooks/get_forge_modules.py:379 msgid "Did not found environments in {!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:394 +#: lib/webhooks/get_forge_modules.py:397 msgid "Trying to open {!r} exclusive ..." msgstr "" -#: lib/webhooks/get_forge_modules.py:397 +#: lib/webhooks/get_forge_modules.py:400 msgid "Simulation mode, cache file will not be written." msgstr "" -#: lib/webhooks/get_forge_modules.py:404 +#: lib/webhooks/get_forge_modules.py:407 msgid "Error on creating file {f!r}: {e}" msgstr "" -#: lib/webhooks/get_forge_modules.py:434 +#: lib/webhooks/get_forge_modules.py:437 msgid "Renaming {src!r} => {tgt!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:64 +#: lib/webhooks/get_module_changes.py:62 msgid "Puppet environment {!r} does not exists." msgstr "" -#: lib/webhooks/get_module_changes.py:81 +#: lib/webhooks/get_module_changes.py:79 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:100 +#: lib/webhooks/get_module_changes.py:98 msgid "An environment may not be None." msgstr "" -#: lib/webhooks/get_module_changes.py:103 lib/webhooks/get_module_changes.py:106 +#: lib/webhooks/get_module_changes.py:101 lib/webhooks/get_module_changes.py:104 msgid "Invalid environment name: {!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:132 +#: lib/webhooks/get_module_changes.py:130 msgid "ENVIRONMENT" msgstr "" -#: lib/webhooks/get_module_changes.py:133 +#: lib/webhooks/get_module_changes.py:131 msgid "The Puppet environmment, which to compare with Puppet forge, default: {!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:164 +#: lib/webhooks/get_module_changes.py:161 msgid "Here I go. ..." msgstr "" -#: lib/webhooks/get_module_changes.py:180 +#: lib/webhooks/get_module_changes.py:177 msgid "Checking verions of modules ..." msgstr "" -#: lib/webhooks/get_module_changes.py:210 +#: lib/webhooks/get_module_changes.py:207 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:215 +#: lib/webhooks/get_module_changes.py:212 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:240 +#: lib/webhooks/get_module_changes.py:237 msgid "Check for newer versions of Puppet modules in environment {!r}" msgstr "" -#: lib/webhooks/get_module_changes.py:244 +#: lib/webhooks/get_module_changes.py:241 msgid "Results of checking for newer versions of Puppet modules in environment {!r}:" msgstr "" -#: lib/webhooks/get_module_changes.py:252 +#: lib/webhooks/get_module_changes.py:249 msgid "" "Didn't found any modules in environment {!r} with a\n" "newer version on Puppet Forge." msgstr "" -#: lib/webhooks/get_module_changes.py:256 lib/webhooks/get_module_changes.py:310 +#: lib/webhooks/get_module_changes.py:253 lib/webhooks/get_module_changes.py:307 msgid "Checked at: {}" msgstr "" -#: lib/webhooks/get_module_changes.py:262 +#: lib/webhooks/get_module_changes.py:259 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:266 +#: lib/webhooks/get_module_changes.py:263 msgid "Module" msgstr "" -#: lib/webhooks/get_module_changes.py:267 +#: lib/webhooks/get_module_changes.py:264 msgid "Full Module name" msgstr "" -#: lib/webhooks/get_module_changes.py:268 +#: lib/webhooks/get_module_changes.py:265 msgid "Used Version" msgstr "" -#: lib/webhooks/get_module_changes.py:269 +#: lib/webhooks/get_module_changes.py:266 msgid "Version on Puppet Forge" msgstr "" @@ -523,6 +523,16 @@ msgstr "" msgid "Object {{!r}} is not a {} object." msgstr "" +#: lib/webhooks/module_meta_info.py:59 lib/webhooks/module_meta_info.py:105 +#: lib/webhooks/module_meta_info.py:335 +msgid "{} not included in JSON data." +msgstr "" + +#: lib/webhooks/module_meta_info.py:111 lib/webhooks/module_meta_info.py:339 +#: lib/webhooks/module_meta_info.py:344 lib/webhooks/module_meta_info.py:349 +msgid "Invalid item {} - not a list." +msgstr "" + #: lib/webhooks/puppetfile.py:96 msgid "The root directory of all puppet environments may not be None." msgstr "" @@ -539,141 +549,161 @@ msgstr "" msgid "Puppetfile {!r} is not readable." msgstr "" -#: lib/webhooks/r10k.py:53 +#: lib/webhooks/r10k.py:49 msgid "Receives push events as JSON-Data and deploys it with r10k." msgstr "" -#: lib/webhooks/r10k.py:118 +#: lib/webhooks/r10k.py:114 msgid "Puppetmaster SSL directory {!r} is not an absolute path name." msgstr "" -#: lib/webhooks/r10k.py:129 lib/webhooks/r10k.py:141 +#: lib/webhooks/r10k.py:125 lib/webhooks/r10k.py:137 msgid "Directory {!r} is read protected, cannot check existence of cert files." msgstr "" -#: lib/webhooks/r10k.py:137 +#: lib/webhooks/r10k.py:133 msgid "Puppetmaster SSL directory {!r} does not exists." msgstr "" -#: lib/webhooks/r10k.py:156 +#: lib/webhooks/r10k.py:152 msgid "File {!r} does not exists." msgstr "" -#: lib/webhooks/r10k.py:159 +#: lib/webhooks/r10k.py:155 msgid "File {!r} is not readable." msgstr "" -#: lib/webhooks/r10k.py:178 +#: lib/webhooks/r10k.py:174 msgid "Invalid port {p!r} for puppetmaster API in {f!r} found: {e}" msgstr "" -#: lib/webhooks/r10k.py:195 +#: lib/webhooks/r10k.py:191 msgid "Current locale is: {lo!r}, current LANG is {la!r}." msgstr "" -#: lib/webhooks/r10k.py:209 +#: lib/webhooks/r10k.py:205 msgid "Executing {!r} was not successful." msgstr "" -#: lib/webhooks/r10k.py:214 +#: lib/webhooks/r10k.py:210 msgid "{!r} was not successful." msgstr "" -#: lib/webhooks/r10k.py:223 +#: lib/webhooks/r10k.py:219 msgid "No environment defined." msgstr "" -#: lib/webhooks/r10k.py:227 +#: lib/webhooks/r10k.py:223 msgid "Environment directory {!r} does not exists." msgstr "" -#: lib/webhooks/r10k.py:230 +#: lib/webhooks/r10k.py:226 msgid "Clearing environment cache for environment {e!r} on {h!r}." msgstr "" -#: lib/webhooks/r10k.py:253 +#: lib/webhooks/r10k.py:249 msgid "Simulation mode, don't requesting URL." msgstr "" -#: lib/webhooks/r10k.py:275 lib/webhooks/r10k.py:284 lib/webhooks/r10k.py:315 lib/webhooks/r10k.py:358 +#: lib/webhooks/r10k.py:271 lib/webhooks/r10k.py:280 lib/webhooks/r10k.py:311 lib/webhooks/r10k.py:354 msgid "No output." msgstr "" -#: lib/webhooks/r10k.py:280 +#: lib/webhooks/r10k.py:276 msgid "Got status code: {}." msgstr "" -#: lib/webhooks/r10k.py:294 +#: lib/webhooks/r10k.py:290 msgid "Generating Puppet types for environment {e!r} on {h!r}." msgstr "" -#: lib/webhooks/r10k.py:333 +#: lib/webhooks/r10k.py:329 msgid "Deploying r10k environment {e!r} on {h!r}." msgstr "" -#: lib/webhooks/show_modules.py:59 +#: lib/webhooks/show_env.py:65 +msgid "Shows all environment variables and sonme information about Python." +msgstr "" + +#: lib/webhooks/show_env.py:74 +msgid "Environment" +msgstr "" + +#: lib/webhooks/show_env.py:147 lib/webhooks/show_env.py:185 +msgid "All environment variables." +msgstr "" + +#: lib/webhooks/show_env.py:152 lib/webhooks/show_env.py:191 +msgid "Environment name" +msgstr "" + +#: lib/webhooks/show_env.py:153 lib/webhooks/show_env.py:192 +msgid "Environment value" +msgstr "" + +#: lib/webhooks/show_modules.py:60 msgid "Returns a list with all used Puppet modules." msgstr "" -#: lib/webhooks/show_modules.py:67 +#: lib/webhooks/show_modules.py:68 msgid "All Puppet modules." msgstr "" -#: lib/webhooks/show_modules.py:172 +#: lib/webhooks/show_modules.py:173 msgid "{c}: Invalid regular expression {r!r}: {e}" msgstr "" -#: lib/webhooks/show_modules.py:230 lib/webhooks/show_modules.py:313 +#: lib/webhooks/show_modules.py:231 lib/webhooks/show_modules.py:311 msgid "No suitable modules found." msgstr "" -#: lib/webhooks/show_modules.py:239 lib/webhooks/show_modules.py:318 +#: lib/webhooks/show_modules.py:240 lib/webhooks/show_modules.py:316 msgid "Name" msgstr "" -#: lib/webhooks/show_modules.py:241 lib/webhooks/show_modules.py:319 +#: lib/webhooks/show_modules.py:242 lib/webhooks/show_modules.py:317 msgid "Complete Name" msgstr "" -#: lib/webhooks/show_modules.py:243 lib/webhooks/show_modules.py:320 +#: lib/webhooks/show_modules.py:244 lib/webhooks/show_modules.py:318 msgid "Repository" msgstr "" -#: lib/webhooks/show_modules.py:245 +#: lib/webhooks/show_modules.py:246 msgid "Homepage at Puppet Forge" msgstr "" -#: lib/webhooks/show_modules.py:247 +#: lib/webhooks/show_modules.py:248 msgid "Version" msgstr "" -#: lib/webhooks/show_modules.py:249 lib/webhooks/show_modules.py:325 +#: lib/webhooks/show_modules.py:250 lib/webhooks/show_modules.py:323 msgid "Last Check" msgstr "" -#: lib/webhooks/show_modules.py:302 lib/webhooks/show_modules.py:370 +#: lib/webhooks/show_modules.py:300 lib/webhooks/show_modules.py:365 msgid "Found total {sb}one module{eb}." msgid_plural "Found total {sb}{nr} modules{eb}." msgstr[0] "" msgstr[1] "" -#: lib/webhooks/xlate.py:54 +#: lib/webhooks/xlate.py:59 msgid "Module directory: {!r}" msgstr "" -#: lib/webhooks/xlate.py:55 +#: lib/webhooks/xlate.py:60 msgid "Base directory: {!r}" msgstr "" -#: lib/webhooks/xlate.py:56 +#: lib/webhooks/xlate.py:61 msgid "Locale directory: {!r}" msgstr "" -#: lib/webhooks/xlate.py:57 +#: lib/webhooks/xlate.py:62 msgid "Locale domain: {!r}" msgstr "" -#: lib/webhooks/xlate.py:58 +#: lib/webhooks/xlate.py:63 msgid "Found .mo-file: {!r}" msgstr "" diff --git a/locale/puppetmaster_webhooks.pot b/locale/puppetmaster_webhooks.pot index 12364ee..ffaf1e5 100644 --- a/locale/puppetmaster_webhooks.pot +++ b/locale/puppetmaster_webhooks.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: puppetmaster_webhooks 1.4.5\n" +"Project-Id-Version: puppetmaster_webhooks 1.4.7\n" "Report-Msgid-Bugs-To: frank.brehm@pixelpark.com\n" -"POT-Creation-Date: 2019-01-03 17:46+0100\n" +"POT-Creation-Date: 2019-02-13 10:46+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,284 +17,284 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.6.0\n" -#: lib/webhooks/base_app.py:91 lib/webhooks/base_app.py:1043 +#: lib/webhooks/base_app.py:94 lib/webhooks/base_app.py:1073 msgid "Data directory {!r} does not exists." msgstr "" -#: lib/webhooks/base_app.py:95 lib/webhooks/base_app.py:1047 +#: lib/webhooks/base_app.py:98 lib/webhooks/base_app.py:1077 msgid "Path to data directory {!r} is not a directory." msgstr "" -#: lib/webhooks/base_app.py:107 lib/webhooks/base_app.py:792 +#: lib/webhooks/base_app.py:111 lib/webhooks/base_app.py:822 msgid "Logging directory {!r} does not exists." msgstr "" -#: lib/webhooks/base_app.py:111 lib/webhooks/base_app.py:798 +#: lib/webhooks/base_app.py:115 lib/webhooks/base_app.py:828 msgid "Path to logging directory {!r} is not a directory." msgstr "" -#: lib/webhooks/base_app.py:168 +#: lib/webhooks/base_app.py:176 msgid "Base gitlab webhook application." msgstr "" -#: lib/webhooks/base_app.py:263 +#: lib/webhooks/base_app.py:287 msgid "General hook options" msgstr "" -#: lib/webhooks/base_app.py:267 +#: lib/webhooks/base_app.py:291 msgid "Don't send error mails in case of some exceptions." msgstr "" -#: lib/webhooks/base_app.py:271 lib/webhooks/base_app.py:277 +#: lib/webhooks/base_app.py:295 lib/webhooks/base_app.py:301 msgid "DIR" msgstr "" -#: lib/webhooks/base_app.py:273 +#: lib/webhooks/base_app.py:297 msgid "Data directory, default: {!r}." msgstr "" -#: lib/webhooks/base_app.py:279 +#: lib/webhooks/base_app.py:303 msgid "Logging directory, default: {!r}." msgstr "" -#: lib/webhooks/base_app.py:286 +#: lib/webhooks/base_app.py:310 msgid "Sorting all lists of modules by name and vendor, in this order." msgstr "" -#: lib/webhooks/base_app.py:291 +#: lib/webhooks/base_app.py:315 msgid "Sorting all lists of modules by the full name of the module (default)." msgstr "" -#: lib/webhooks/base_app.py:296 +#: lib/webhooks/base_app.py:320 msgid "Enforces behaviour as called as a CGI script." msgstr "" -#: lib/webhooks/base_app.py:301 +#: lib/webhooks/base_app.py:325 msgid "An optional query string like on HTTP GET requests." msgstr "" -#: lib/webhooks/base_app.py:575 lib/webhooks/r10k.py:100 lib/webhooks/r10k.py:110 +#: lib/webhooks/base_app.py:602 lib/webhooks/r10k.py:96 lib/webhooks/r10k.py:106 msgid "Command {!r} not found." msgstr "" -#: lib/webhooks/base_app.py:613 +#: lib/webhooks/base_app.py:640 msgid "Trying to read config from {!r} ..." msgstr "" -#: lib/webhooks/base_app.py:617 +#: lib/webhooks/base_app.py:644 msgid "Reading config from {!r} ..." msgstr "" -#: lib/webhooks/base_app.py:622 +#: lib/webhooks/base_app.py:649 msgid "" "Read config:\n" "{}" msgstr "" -#: lib/webhooks/base_app.py:635 +#: lib/webhooks/base_app.py:662 msgid "Configuration error" msgstr "" -#: lib/webhooks/base_app.py:644 +#: lib/webhooks/base_app.py:671 msgid "Wrong verbose level {v!d} in file {f!r}, must be >= 0" msgstr "" -#: lib/webhooks/base_app.py:647 +#: lib/webhooks/base_app.py:674 msgid "Wrong verbose level {v!r} in file {f!r}: {e}" msgstr "" -#: lib/webhooks/base_app.py:662 +#: lib/webhooks/base_app.py:689 msgid "Logging directory {p!r} in file {f!r} must be an absolute path." msgstr "" -#: lib/webhooks/base_app.py:671 +#: lib/webhooks/base_app.py:698 msgid "Default parent directory {p!r} in file {f!r} must be an absolute path." msgstr "" -#: lib/webhooks/base_app.py:784 +#: lib/webhooks/base_app.py:814 msgid "Initialization error" msgstr "" -#: lib/webhooks/base_app.py:804 +#: lib/webhooks/base_app.py:834 msgid "Logging directory {!r} is not writeable." msgstr "" -#: lib/webhooks/base_app.py:819 +#: lib/webhooks/base_app.py:849 msgid "Could not open error logfile {f!r}: {e}" msgstr "" -#: lib/webhooks/base_app.py:855 +#: lib/webhooks/base_app.py:885 msgid "Python CGI is running." msgstr "" -#: lib/webhooks/base_app.py:888 lib/webhooks/base_app.py:893 +#: lib/webhooks/base_app.py:918 lib/webhooks/base_app.py:923 msgid "Got a {cn} performing {a}: {e}" msgstr "" -#: lib/webhooks/base_app.py:899 +#: lib/webhooks/base_app.py:929 msgid "Got a {cn} reading input data as JSON: {e}" msgstr "" -#: lib/webhooks/base_app.py:900 +#: lib/webhooks/base_app.py:930 msgid "Input data: {!r}" msgstr "" -#: lib/webhooks/base_app.py:914 +#: lib/webhooks/base_app.py:944 msgid "Executing {} ..." msgstr "" -#: lib/webhooks/base_app.py:993 +#: lib/webhooks/base_app.py:1023 msgid "Project {!r}: Received special characters in module name" msgstr "" -#: lib/webhooks/base_app.py:1018 +#: lib/webhooks/base_app.py:1048 msgid "Last commit by {n!r} <{m}> at {d}." msgstr "" -#: lib/webhooks/base_app.py:1029 +#: lib/webhooks/base_app.py:1059 msgid "Executing webhook {a!r} for Git SSH URL {u!r}, branch {b!r}." msgstr "" -#: lib/webhooks/base_app.py:1051 +#: lib/webhooks/base_app.py:1081 msgid "Data directory {!r} is not writeable." msgstr "" -#: lib/webhooks/base_app.py:1067 +#: lib/webhooks/base_app.py:1097 msgid "Error while processing {!r} project:" msgid_plural "Errors while processing {!r} project:" msgstr[0] "" msgstr[1] "" -#: lib/webhooks/base_app.py:1071 +#: lib/webhooks/base_app.py:1101 msgid "Puppetmaster deploy error for project {!r}" msgid_plural "Puppetmaster deploy errors for project {!r}" msgstr[0] "" msgstr[1] "" -#: lib/webhooks/base_app.py:1076 +#: lib/webhooks/base_app.py:1106 msgid "Error while processing {!r}:" msgid_plural "Errors while processing {!r}:" msgstr[0] "" msgstr[1] "" -#: lib/webhooks/base_app.py:1080 +#: lib/webhooks/base_app.py:1110 msgid "Puppetmaster error processing {!r}" msgid_plural "Puppetmaster errors processing {!r}" msgstr[0] "" msgstr[1] "" -#: lib/webhooks/base_app.py:1086 +#: lib/webhooks/base_app.py:1116 msgid "Cheers" msgstr "" -#: lib/webhooks/base_app.py:1104 +#: lib/webhooks/base_app.py:1134 msgid "" "Sending the following mail to {r!r} via {s}:{p}:\n" "{m}" msgstr "" -#: lib/webhooks/base_app.py:1108 +#: lib/webhooks/base_app.py:1138 msgid "" "Sending a mail to {r!r} via {s}:{p}:\n" "{e}" msgstr "" -#: lib/webhooks/base_app.py:1113 +#: lib/webhooks/base_app.py:1143 msgid "It's undesired to send error mails." msgstr "" -#: lib/webhooks/base_app.py:1117 +#: lib/webhooks/base_app.py:1147 msgid "Simulation mode, don't sending mail." msgstr "" -#: lib/webhooks/base_app.py:1135 +#: lib/webhooks/base_app.py:1165 msgid "" "Errors on sending error message for project {pr!r} to {r!r} via {s}:{p}:\n" "{e}" msgstr "" -#: lib/webhooks/base_app.py:1141 +#: lib/webhooks/base_app.py:1171 msgid "" "Errors on sending error message for {a!r} to {r!r} via {s}:{p}:\n" "{e}" msgstr "" -#: lib/webhooks/base_app.py:1156 +#: lib/webhooks/base_app.py:1186 msgid "Cache file {!r} not found." msgstr "" -#: lib/webhooks/base_app.py:1160 +#: lib/webhooks/base_app.py:1190 msgid "Cache file {!r} not readable." msgstr "" -#: lib/webhooks/base_app.py:1191 +#: lib/webhooks/base_app.py:1221 msgid "Could not evaluate content of {f!r}: {e}" msgstr "" -#: lib/webhooks/deploy.py:48 +#: lib/webhooks/deploy.py:47 msgid "Receives push events as JSON-Data and synchronizes the local repository." msgstr "" -#: lib/webhooks/deploy.py:179 +#: lib/webhooks/deploy.py:178 msgid "Could not find a definition for project {!r}." msgstr "" -#: lib/webhooks/deploy.py:202 +#: lib/webhooks/deploy.py:201 msgid "Deploying working directory {f!r} for project {p!r} ..." msgstr "" -#: lib/webhooks/deploy.py:206 +#: lib/webhooks/deploy.py:205 msgid "Parent directory {d!r} of project {p!r} does not exists." msgstr "" -#: lib/webhooks/deploy.py:213 +#: lib/webhooks/deploy.py:212 msgid "Path for parent directory {d!r} for project {p!r} is not a directory." msgstr "" -#: lib/webhooks/deploy.py:243 lib/webhooks/deploy.py:290 lib/webhooks/r10k.py:273 -#: lib/webhooks/r10k.py:282 lib/webhooks/r10k.py:312 lib/webhooks/r10k.py:355 +#: lib/webhooks/deploy.py:242 lib/webhooks/deploy.py:289 lib/webhooks/r10k.py:269 +#: lib/webhooks/r10k.py:278 lib/webhooks/r10k.py:308 lib/webhooks/r10k.py:351 msgid "Output:" msgstr "" -#: lib/webhooks/deploy.py:250 lib/webhooks/deploy.py:297 lib/webhooks/r10k.py:319 -#: lib/webhooks/r10k.py:362 +#: lib/webhooks/deploy.py:249 lib/webhooks/deploy.py:296 lib/webhooks/r10k.py:315 +#: lib/webhooks/r10k.py:358 msgid "" "Error messages on {c!r}:\n" "{e}" msgstr "" -#: lib/webhooks/deploy.py:251 lib/webhooks/deploy.py:298 lib/webhooks/r10k.py:320 -#: lib/webhooks/r10k.py:363 +#: lib/webhooks/deploy.py:250 lib/webhooks/deploy.py:297 lib/webhooks/r10k.py:316 +#: lib/webhooks/r10k.py:359 msgid "Returncode was {}." msgstr "" -#: lib/webhooks/deploy.py:275 +#: lib/webhooks/deploy.py:274 msgid "Script {!r} exists, but is not a regular file." msgstr "" -#: lib/webhooks/deploy.py:279 +#: lib/webhooks/deploy.py:278 msgid "Script {!r} exists, but is not executable.." msgstr "" -#: lib/webhooks/deploy.py:284 +#: lib/webhooks/deploy.py:283 msgid "Compiling language catalogues by calling {!r} ..." msgstr "" -#: lib/webhooks/get_forge_modules.py:84 +#: lib/webhooks/get_forge_modules.py:86 msgid "" "Collects information about all used Puppet Modules from {url!r} and cache those information in " "{cdir!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:114 lib/webhooks/get_forge_modules.py:123 +#: lib/webhooks/get_forge_modules.py:116 lib/webhooks/get_forge_modules.py:125 msgid "Don't get module information from Puppet forge." msgstr "" -#: lib/webhooks/get_forge_modules.py:162 +#: lib/webhooks/get_forge_modules.py:164 msgid "Path for the Puppet environments {p!r} must be an absolute path in {f!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:172 +#: lib/webhooks/get_forge_modules.py:174 msgid "Invalid HTTP timeout {t!r} in {f!r} found." msgstr "" @@ -314,141 +314,141 @@ msgstr "" msgid "Reading metadata files of environment {!r} ..." msgstr "" -#: lib/webhooks/get_forge_modules.py:287 +#: lib/webhooks/get_forge_modules.py:282 msgid "Got no module info from directory {!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:296 lib/webhooks/r10k.py:126 +#: lib/webhooks/get_forge_modules.py:291 lib/webhooks/r10k.py:122 msgid "Directory {!r} does not exists." msgstr "" -#: lib/webhooks/get_forge_modules.py:300 +#: lib/webhooks/get_forge_modules.py:295 msgid "Path {!r} is not a directory." msgstr "" -#: lib/webhooks/get_forge_modules.py:305 +#: lib/webhooks/get_forge_modules.py:300 msgid "Metadatafile {!r} does not exists." msgstr "" -#: lib/webhooks/get_forge_modules.py:308 +#: lib/webhooks/get_forge_modules.py:303 msgid "Metadatafile {!r} is not a regular file." msgstr "" -#: lib/webhooks/get_forge_modules.py:311 +#: lib/webhooks/get_forge_modules.py:306 msgid "No read access to metadatafile {!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:321 +#: lib/webhooks/get_forge_modules.py:316 msgid "Could not interprete {f!r} as a regular JSON file: {e}" msgstr "" -#: lib/webhooks/get_forge_modules.py:325 +#: lib/webhooks/get_forge_modules.py:320 msgid "Did not found any data in {!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:334 +#: lib/webhooks/get_forge_modules.py:337 msgid "Reading Puppetfile of environment {!r} ..." msgstr "" -#: lib/webhooks/get_forge_modules.py:376 +#: lib/webhooks/get_forge_modules.py:379 msgid "Did not found environments in {!r}." msgstr "" -#: lib/webhooks/get_forge_modules.py:394 +#: lib/webhooks/get_forge_modules.py:397 msgid "Trying to open {!r} exclusive ..." msgstr "" -#: lib/webhooks/get_forge_modules.py:397 +#: lib/webhooks/get_forge_modules.py:400 msgid "Simulation mode, cache file will not be written." msgstr "" -#: lib/webhooks/get_forge_modules.py:404 +#: lib/webhooks/get_forge_modules.py:407 msgid "Error on creating file {f!r}: {e}" msgstr "" -#: lib/webhooks/get_forge_modules.py:434 +#: lib/webhooks/get_forge_modules.py:437 msgid "Renaming {src!r} => {tgt!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:64 +#: lib/webhooks/get_module_changes.py:62 msgid "Puppet environment {!r} does not exists." msgstr "" -#: lib/webhooks/get_module_changes.py:81 +#: lib/webhooks/get_module_changes.py:79 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:100 +#: lib/webhooks/get_module_changes.py:98 msgid "An environment may not be None." msgstr "" -#: lib/webhooks/get_module_changes.py:103 lib/webhooks/get_module_changes.py:106 +#: lib/webhooks/get_module_changes.py:101 lib/webhooks/get_module_changes.py:104 msgid "Invalid environment name: {!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:132 +#: lib/webhooks/get_module_changes.py:130 msgid "ENVIRONMENT" msgstr "" -#: lib/webhooks/get_module_changes.py:133 +#: lib/webhooks/get_module_changes.py:131 msgid "The Puppet environmment, which to compare with Puppet forge, default: {!r}." msgstr "" -#: lib/webhooks/get_module_changes.py:164 +#: lib/webhooks/get_module_changes.py:161 msgid "Here I go. ..." msgstr "" -#: lib/webhooks/get_module_changes.py:180 +#: lib/webhooks/get_module_changes.py:177 msgid "Checking verions of modules ..." msgstr "" -#: lib/webhooks/get_module_changes.py:210 +#: lib/webhooks/get_module_changes.py:207 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:215 +#: lib/webhooks/get_module_changes.py:212 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:240 +#: lib/webhooks/get_module_changes.py:237 msgid "Check for newer versions of Puppet modules in environment {!r}" msgstr "" -#: lib/webhooks/get_module_changes.py:244 +#: lib/webhooks/get_module_changes.py:241 msgid "Results of checking for newer versions of Puppet modules in environment {!r}:" msgstr "" -#: lib/webhooks/get_module_changes.py:252 +#: lib/webhooks/get_module_changes.py:249 msgid "" "Didn't found any modules in environment {!r} with a\n" "newer version on Puppet Forge." msgstr "" -#: lib/webhooks/get_module_changes.py:256 lib/webhooks/get_module_changes.py:310 +#: lib/webhooks/get_module_changes.py:253 lib/webhooks/get_module_changes.py:307 msgid "Checked at: {}" msgstr "" -#: lib/webhooks/get_module_changes.py:262 +#: lib/webhooks/get_module_changes.py:259 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:266 +#: lib/webhooks/get_module_changes.py:263 msgid "Module" msgstr "" -#: lib/webhooks/get_module_changes.py:267 +#: lib/webhooks/get_module_changes.py:264 msgid "Full Module name" msgstr "" -#: lib/webhooks/get_module_changes.py:268 +#: lib/webhooks/get_module_changes.py:265 msgid "Used Version" msgstr "" -#: lib/webhooks/get_module_changes.py:269 +#: lib/webhooks/get_module_changes.py:266 msgid "Version on Puppet Forge" msgstr "" @@ -522,6 +522,16 @@ msgstr "" msgid "Object {{!r}} is not a {} object." msgstr "" +#: lib/webhooks/module_meta_info.py:59 lib/webhooks/module_meta_info.py:105 +#: lib/webhooks/module_meta_info.py:335 +msgid "{} not included in JSON data." +msgstr "" + +#: lib/webhooks/module_meta_info.py:111 lib/webhooks/module_meta_info.py:339 +#: lib/webhooks/module_meta_info.py:344 lib/webhooks/module_meta_info.py:349 +msgid "Invalid item {} - not a list." +msgstr "" + #: lib/webhooks/puppetfile.py:96 msgid "The root directory of all puppet environments may not be None." msgstr "" @@ -538,141 +548,161 @@ msgstr "" msgid "Puppetfile {!r} is not readable." msgstr "" -#: lib/webhooks/r10k.py:53 +#: lib/webhooks/r10k.py:49 msgid "Receives push events as JSON-Data and deploys it with r10k." msgstr "" -#: lib/webhooks/r10k.py:118 +#: lib/webhooks/r10k.py:114 msgid "Puppetmaster SSL directory {!r} is not an absolute path name." msgstr "" -#: lib/webhooks/r10k.py:129 lib/webhooks/r10k.py:141 +#: lib/webhooks/r10k.py:125 lib/webhooks/r10k.py:137 msgid "Directory {!r} is read protected, cannot check existence of cert files." msgstr "" -#: lib/webhooks/r10k.py:137 +#: lib/webhooks/r10k.py:133 msgid "Puppetmaster SSL directory {!r} does not exists." msgstr "" -#: lib/webhooks/r10k.py:156 +#: lib/webhooks/r10k.py:152 msgid "File {!r} does not exists." msgstr "" -#: lib/webhooks/r10k.py:159 +#: lib/webhooks/r10k.py:155 msgid "File {!r} is not readable." msgstr "" -#: lib/webhooks/r10k.py:178 +#: lib/webhooks/r10k.py:174 msgid "Invalid port {p!r} for puppetmaster API in {f!r} found: {e}" msgstr "" -#: lib/webhooks/r10k.py:195 +#: lib/webhooks/r10k.py:191 msgid "Current locale is: {lo!r}, current LANG is {la!r}." msgstr "" -#: lib/webhooks/r10k.py:209 +#: lib/webhooks/r10k.py:205 msgid "Executing {!r} was not successful." msgstr "" -#: lib/webhooks/r10k.py:214 +#: lib/webhooks/r10k.py:210 msgid "{!r} was not successful." msgstr "" -#: lib/webhooks/r10k.py:223 +#: lib/webhooks/r10k.py:219 msgid "No environment defined." msgstr "" -#: lib/webhooks/r10k.py:227 +#: lib/webhooks/r10k.py:223 msgid "Environment directory {!r} does not exists." msgstr "" -#: lib/webhooks/r10k.py:230 +#: lib/webhooks/r10k.py:226 msgid "Clearing environment cache for environment {e!r} on {h!r}." msgstr "" -#: lib/webhooks/r10k.py:253 +#: lib/webhooks/r10k.py:249 msgid "Simulation mode, don't requesting URL." msgstr "" -#: lib/webhooks/r10k.py:275 lib/webhooks/r10k.py:284 lib/webhooks/r10k.py:315 lib/webhooks/r10k.py:358 +#: lib/webhooks/r10k.py:271 lib/webhooks/r10k.py:280 lib/webhooks/r10k.py:311 lib/webhooks/r10k.py:354 msgid "No output." msgstr "" -#: lib/webhooks/r10k.py:280 +#: lib/webhooks/r10k.py:276 msgid "Got status code: {}." msgstr "" -#: lib/webhooks/r10k.py:294 +#: lib/webhooks/r10k.py:290 msgid "Generating Puppet types for environment {e!r} on {h!r}." msgstr "" -#: lib/webhooks/r10k.py:333 +#: lib/webhooks/r10k.py:329 msgid "Deploying r10k environment {e!r} on {h!r}." msgstr "" -#: lib/webhooks/show_modules.py:59 +#: lib/webhooks/show_env.py:65 +msgid "Shows all environment variables and sonme information about Python." +msgstr "" + +#: lib/webhooks/show_env.py:74 +msgid "Environment" +msgstr "" + +#: lib/webhooks/show_env.py:147 lib/webhooks/show_env.py:185 +msgid "All environment variables." +msgstr "" + +#: lib/webhooks/show_env.py:152 lib/webhooks/show_env.py:191 +msgid "Environment name" +msgstr "" + +#: lib/webhooks/show_env.py:153 lib/webhooks/show_env.py:192 +msgid "Environment value" +msgstr "" + +#: lib/webhooks/show_modules.py:60 msgid "Returns a list with all used Puppet modules." msgstr "" -#: lib/webhooks/show_modules.py:67 +#: lib/webhooks/show_modules.py:68 msgid "All Puppet modules." msgstr "" -#: lib/webhooks/show_modules.py:172 +#: lib/webhooks/show_modules.py:173 msgid "{c}: Invalid regular expression {r!r}: {e}" msgstr "" -#: lib/webhooks/show_modules.py:230 lib/webhooks/show_modules.py:313 +#: lib/webhooks/show_modules.py:231 lib/webhooks/show_modules.py:311 msgid "No suitable modules found." msgstr "" -#: lib/webhooks/show_modules.py:239 lib/webhooks/show_modules.py:318 +#: lib/webhooks/show_modules.py:240 lib/webhooks/show_modules.py:316 msgid "Name" msgstr "" -#: lib/webhooks/show_modules.py:241 lib/webhooks/show_modules.py:319 +#: lib/webhooks/show_modules.py:242 lib/webhooks/show_modules.py:317 msgid "Complete Name" msgstr "" -#: lib/webhooks/show_modules.py:243 lib/webhooks/show_modules.py:320 +#: lib/webhooks/show_modules.py:244 lib/webhooks/show_modules.py:318 msgid "Repository" msgstr "" -#: lib/webhooks/show_modules.py:245 +#: lib/webhooks/show_modules.py:246 msgid "Homepage at Puppet Forge" msgstr "" -#: lib/webhooks/show_modules.py:247 +#: lib/webhooks/show_modules.py:248 msgid "Version" msgstr "" -#: lib/webhooks/show_modules.py:249 lib/webhooks/show_modules.py:325 +#: lib/webhooks/show_modules.py:250 lib/webhooks/show_modules.py:323 msgid "Last Check" msgstr "" -#: lib/webhooks/show_modules.py:302 lib/webhooks/show_modules.py:370 +#: lib/webhooks/show_modules.py:300 lib/webhooks/show_modules.py:365 msgid "Found total {sb}one module{eb}." msgid_plural "Found total {sb}{nr} modules{eb}." msgstr[0] "" msgstr[1] "" -#: lib/webhooks/xlate.py:54 +#: lib/webhooks/xlate.py:59 msgid "Module directory: {!r}" msgstr "" -#: lib/webhooks/xlate.py:55 +#: lib/webhooks/xlate.py:60 msgid "Base directory: {!r}" msgstr "" -#: lib/webhooks/xlate.py:56 +#: lib/webhooks/xlate.py:61 msgid "Locale directory: {!r}" msgstr "" -#: lib/webhooks/xlate.py:57 +#: lib/webhooks/xlate.py:62 msgid "Locale domain: {!r}" msgstr "" -#: lib/webhooks/xlate.py:58 +#: lib/webhooks/xlate.py:63 msgid "Found .mo-file: {!r}" msgstr "" diff --git a/requirements.txt b/requirements.txt index a0e3e1e..34c18ac 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,6 +9,6 @@ dnspython flake8 docker-py pathlib -git+https://git.pixelpark.com/frabrehm/python_fb_tools.git@master +git+https://git.pixelpark.com/frabrehm/python_fb_tools.git@dev-i18n Babel webob