From 944747a50a899d88c0685314d5dd37f0d246a113 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Sat, 14 May 2011 06:33:01 +0000 Subject: [PATCH] =?utf8?q?Mit=20deutscher=20=C3=9Cbersetzung=20von=20LogRo?= =?utf8?q?tateConfig.py=20weitergemacht?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/PyLogrotate/trunk@239 ec8d2aa5-1599-4edb-8739-2b3a1bc399aa --- LogRotateConfig.py | 36 +++++++++++------------ po/LogRotateConfig.de.po | 62 ++++++++++++++++++++-------------------- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/LogRotateConfig.py b/LogRotateConfig.py index 0f2a0ab..f2cfbe1 100755 --- a/LogRotateConfig.py +++ b/LogRotateConfig.py @@ -977,7 +977,7 @@ class LogrotateConfigurationReader(object): return False if self.verbose > 4: self.logger.debug( - ( _("Setting integer option »%(option)s« in »%(directive)s« to »%(value)s«. (file »%(file)s«, line %(lnr)s)") + ( _("Setting integer option '%(option)s' in '%(directive)s' to '%(value)s'. (file '%(file)s', line %(lnr)s)") % {'option': key, 'directive': directive_str, 'value': str(option_value), 'file': filename, 'lnr': linenr}) ) directive[key] = option_value @@ -991,19 +991,19 @@ class LogrotateConfigurationReader(object): directive['mailaddress'] = None if val is not None and val != '': self.logger.warning( - ( _("Senseless option value »%(value)s« after »%(option)s«.") + ( _("Senseless option value '%(value)s' after '%(option)s'.") % {'value': val, 'option': option.lower()}) ) return False return True if not email_valid(val): directive['mailaddress'] = None - self.logger.warning( ( _("Invalid Mail address »%s«.") % (val))) + self.logger.warning( ( _("Invalid Mail address '%s'.") % (val))) return False directive['mailaddress'] = val if self.verbose > 4: self.logger.debug( - ( _("Setting mail address in »%(directive)s« to »%(addr)s«. (file »%(file)s«, line %(lnr)s)") + ( _("Setting mail address in '%(directive)s' to '%(addr)s'. (file '%(file)s', line %(lnr)s)") % {'directive': directive_str, 'addr': val, 'file': filename, 'lnr': linenr}) ) return True @@ -1018,12 +1018,12 @@ class LogrotateConfigurationReader(object): directive['mailfirst'] = option_value if self.verbose > 4: self.logger.debug( - ( _("Setting mailfirst in »%(directive)s« to »%(value)s«. (file »%(file)s«, line %(lnr)s)") + ( _("Setting mailfirst in '%(directive)s' to '%(value)s'. (file '%(file)s', line %(lnr)s)") % {'directive': directive_str, 'value': str(option_value), 'file': filename, 'lnr': linenr}) ) if val is not None and val != '': self.logger.warning( - ( _("Senseless option value »%(value)s« after »%(option)s«.") + ( _("Senseless option value »%(value)s« after '%(option)s'.") % {'value': val, 'option': option.lower()}) ) return False @@ -1036,14 +1036,14 @@ class LogrotateConfigurationReader(object): key = match.group(1).lower() if key in options_with_values: if self.verbose > 5: - self.logger.debug( ( _("Option »%s« must have a value.") %(key))) + self.logger.debug( ( _("Option '%s' must have a value.") %(key))) if (val is None) or (re.search(r'^\s*$', val) is None): - self.logger.warning( ( _("Option »%s« without a value") %(key))) + self.logger.warning( ( _("Option '%s' without a value") %(key))) return False if key == 'compresscmd': prog = self.check_compress_command(val) if prog is None: - self.logger.warning( ( _("Compress command »%s« not found.") %(val))) + self.logger.warning( ( _("Compress command '%s' not found.") %(val))) return False val = prog if key == 'compressoptions' and val is None: @@ -1057,24 +1057,24 @@ class LogrotateConfigurationReader(object): if match: key = match.group(1).lower() if in_fd: - self.logger.warning( ( _("Option »%s« not allowed inside a logfile directive.") %(key))) + self.logger.warning( ( _("Option '%s' not allowed inside a logfile directive.") %(key))) return False if key in options_with_values: if self.verbose > 5: - self.logger.debug( ( _("Option »%s« must have a value.") %(key))) + self.logger.debug( ( _("Option '%s' must have a value.") %(key))) if (val is None) or (re.search(r'^\s*$', val) is not None): - self.logger.warning( ( _("Option »%s« without a value") %(key))) + self.logger.warning( ( _("Option '%s' without a value") %(key))) return False if key in path_options: if not os.path.abspath(val): self.logger.warning( - ( _("Value »%(value)s« for option »%(option)s« is not an absolute path.") + ( _("Value '%(value)s' for option '%(option)s' is not an absolute path.") % {'value': val, 'option': key} ) ) return False if self.verbose > 4: self.logger.debug( - ( _("Setting %(option)s in »%(directive)s« to »%(value)s«. (file »%(file)s«, line %(lnr)s)") + ( _("Setting '%(option)s' in '%(directive)s' to '%(value)s'. (file '%(file)s', line %(lnr)s)") % {'option': key, 'directive': directive_str, 'value': str(val), 'file': filename, 'lnr': linenr}) ) directive[key] = val @@ -1087,14 +1087,14 @@ class LogrotateConfigurationReader(object): key = match.group(1).lower() if self.verbose > 4: self.logger.debug( - ( _("Checking »period«: key »%(key)s«, value »%(value)s«. (file »%(file)s«, line %(lnr)s)") + ( _("Checking 'period': key '%(key)s', value '%(value)s'. (file '%(file)s', line %(lnr)s)") % {'key': key, 'value': str(val), 'file': filename, 'lnr': linenr}) ) option_value = 1 if key in valid_periods: if (val is not None) and (re.search(r'^\s*$', val) is None): self.logger.warning( - ( _("Option »%(option)s« may not have a value (»%(value)s«). (file »%(file)s«, line %(lnr)s)") + ( _("Option '%(option)s' may not have a value ('%(value)s'). (file '%(file)s', line %(lnr)s)") % {'option': key, 'value': val, 'file': filename, 'lnr': linenr}) ) option_value = valid_periods[key] @@ -1102,11 +1102,11 @@ class LogrotateConfigurationReader(object): try: option_value = period2days(val, verbose = self.verbose) except ValueError, e: - self.logger.warning( ( _("Invalid period definition: »%s«") %(val) )) + self.logger.warning( ( _("Invalid period definition: '%s'") %(val) )) return False if self.verbose > 4: self.logger.debug( - ( _("Setting »period« in »%(directive)s« to %(days)f days. (file »%(file)s«, line %(lnr)s)") + ( _("Setting 'period' in '%(directive)s' to %(days)f days. (file '%(file)s', line %(lnr)s)") % {'directive': directive_str, 'days': option_value, 'file': filename, 'lnr': linenr}) ) directive['period'] = option_value diff --git a/po/LogRotateConfig.de.po b/po/LogRotateConfig.de.po index 5cf7835..938d3a6 100644 --- a/po/LogRotateConfig.de.po +++ b/po/LogRotateConfig.de.po @@ -221,91 +221,91 @@ msgstr "Der negative Wert %(value)s für die Option »%(option)s« ist nicht erl #: LogRotateConfig.py:980 #, python-format msgid "" -"Setting integer option »%(option)s« in »%(directive)s« to »%(value)s«. (file " -"»%(file)s«, line %(lnr)s)" -msgstr "" +"Setting integer option '%(option)s' in '%(directive)s' to '%(value)s'. (file " +"'%(file)s', line %(lnr)s)" +msgstr "Setze die Integer-Option '%(option)s' in '%(directive)s' auf '%(value)s'. (Datei »%(file)s«, Zeile %(lnr)s)" #: LogRotateConfig.py:994 LogRotateConfig.py:1026 #, python-format -msgid "Senseless option value »%(value)s« after »%(option)s«." -msgstr "" +msgid "Senseless option value '%(value)s' after '%(option)s'." +msgstr "Sinnloser Optionswert »%(value)s« nach »%(option)s«." #: LogRotateConfig.py:1001 #, python-format -msgid "Invalid Mail address »%s«." -msgstr "" +msgid "Invalid Mail address '%s'." +msgstr "Ungültige E-Mail-Adresse »%s«." #: LogRotateConfig.py:1006 #, python-format msgid "" -"Setting mail address in »%(directive)s« to »%(addr)s«. (file »%(file)s«, " +"Setting mail address in '%(directive)s' to '%(addr)s'. (file '%(file)s', " "line %(lnr)s)" -msgstr "" +msgstr "Setze Mailadresse in »%(directive)s« auf »%(addr)s«. (Datei »%(file)s«, Zeile %(lnr)s)" #: LogRotateConfig.py:1021 #, python-format msgid "" -"Setting mailfirst in »%(directive)s« to »%(value)s«. (file »%(file)s«, line " +"Setting mailfirst in '%(directive)s' to '%(value)s'. (file '%(file)s', line " "%(lnr)s)" -msgstr "" +msgstr "Setze mailfirst in »%(directive)s« auf »%(value)s«. (Datei »%(file)s«, Zeile %(lnr)s)" #: LogRotateConfig.py:1039 LogRotateConfig.py:1064 #, python-format -msgid "Option »%s« must have a value." -msgstr "" +msgid "Option '%s' must have a value." +msgstr "Die Option »%s« muss einen Wert haben." #: LogRotateConfig.py:1041 LogRotateConfig.py:1066 #, python-format -msgid "Option »%s« without a value" -msgstr "" +msgid "Option '%s' without a value" +msgstr "Die Option »%s« hat keinen Optionswert." #: LogRotateConfig.py:1046 #, python-format -msgid "Compress command »%s« not found." -msgstr "" +msgid "Compress command '%s' not found." +msgstr "Das Komprimierungskommando »%s« wurde nicht gefunden." #: LogRotateConfig.py:1060 #, python-format -msgid "Option »%s« not allowed inside a logfile directive." -msgstr "" +msgid "Option '%s' not allowed inside a logfile directive." +msgstr "Die Option »%s« ist innerhalb einer Logdateidefinition nicht erlaubt." #: LogRotateConfig.py:1071 #, python-format -msgid "Value »%(value)s« for option »%(option)s« is not an absolute path." -msgstr "" +msgid "Value '%(value)s' for option '%(option)s' is not an absolute path." +msgstr "Der Wert »%(value)s« für die Option »%(option)s« ist keine absolute Pfadangabe." #: LogRotateConfig.py:1077 #, python-format msgid "" -"Setting %(option)s in »%(directive)s« to »%(value)s«. (file »%(file)s«, line " +"Setting '%(option)s' in '%(directive)s' to '%(value)s'. (file '%(file)s', line " "%(lnr)s)" -msgstr "" +msgstr "Setze »%(option)s« in »%(directive)s« auf »%(value)s«. (Datei »%(file)s«, Zeile %(lnr)s)" #: LogRotateConfig.py:1090 #, python-format msgid "" -"Checking »period«: key »%(key)s«, value »%(value)s«. (file »%(file)s«, line " +"Checking 'period': key '%(key)s', value '%(value)s'. (file '%(file)s', line " "%(lnr)s)" -msgstr "" +msgstr "Überprüfe »period«: Schlüssel »%(key)s«, Wert »%(value)s«. (Datei »%(file)s«, Zeile %(lnr)s)" #: LogRotateConfig.py:1097 #, python-format msgid "" -"Option »%(option)s« may not have a value (»%(value)s«). (file »%(file)s«, " +"Option '%(option)s' may not have a value ('%(value)s'). (file '%(file)s', " "line %(lnr)s)" -msgstr "" +msgstr "Die Option »%(option)s« darf keinen Wert aufweisen (»%(value)s«). (Datei »%(file)s«, Zeile %(lnr)s)" #: LogRotateConfig.py:1105 #, python-format -msgid "Invalid period definition: »%s«" -msgstr "" +msgid "Invalid period definition: '%s'" +msgstr "Ungültige Angabe einer Rotationsperiode: »%s«" #: LogRotateConfig.py:1109 #, python-format msgid "" -"Setting »period« in »%(directive)s« to %(days)f days. (file »%(file)s«, line " +"Setting 'period' in '%(directive)s' to %(days)f days. (file '%(file)s', line " "%(lnr)s)" -msgstr "" +msgstr "Setze Rotationsperiode in »%(directive)s« auf %(days)f Tage. (Datei »%(file)s«, Zeile %(lnr)s)" #: LogRotateConfig.py:1128 #, python-format -- 2.39.5