From: Frank Brehm Date: Fri, 13 May 2011 23:04:59 +0000 (+0000) Subject: Mit deutscher Übersetzung von LogRotateConfig.py weitergemacht X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=2da41e049088398aa45ff74ca48263ae1d1c9b74;p=my-stuff%2Fpy-logrotate.git Mit deutscher Übersetzung von LogRotateConfig.py weitergemacht git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/PyLogrotate/trunk@238 ec8d2aa5-1599-4edb-8739-2b3a1bc399aa --- diff --git a/LogRotateConfig.py b/LogRotateConfig.py index 167edde..0f2a0ab 100755 --- a/LogRotateConfig.py +++ b/LogRotateConfig.py @@ -801,7 +801,7 @@ class LogrotateConfigurationReader(object): rest = match.group(1) if in_fd or in_logfile_list: self.logger.warning( - ( _("Syntax error: include may not appear inside of log file definition (file »%(file)s«, line %(line)s)") + ( _("Syntax error: include may not appear inside of log file definition (file '%(file)s', line %(line)s)") % {'file': configfile, 'line': linenr}) ) continue @@ -820,7 +820,7 @@ class LogrotateConfigurationReader(object): script_name = values[0] if self.verbose > 3: self.logger.debug( - ( _("Found start of a regular script definition: type: »%(type)s«, name: »%(name)s« (file »%(file)s«, line %(line)s)") + ( _("Found start of a regular script definition: type: '%(type)s', name: '%(name)s' (file '%(file)s', line %(line)s)") % {'type': script_type, 'name': script_name, 'file': configfile, 'line': linenr}) ) newscript = self._start_log_script_definition( @@ -834,20 +834,20 @@ class LogrotateConfigurationReader(object): if newscript: in_script = True if self.verbose > 3: - self.logger.debug( ( _("New log script name: »%s«.") % (newscript) )) + self.logger.debug( ( _("New log script name: '%s'.") % (newscript) )) continue # start of an explicite external script definition match = re.search(r'^script(\s+.*)?$', line, re.IGNORECASE) if match: if self.verbose > 3: - self.logger.debug( ( _("Found start of a external script definition. (file »%(file)s«, line %(line)s)") + self.logger.debug( ( _("Found start of a external script definition. (file '%(file)s', line %(line)s)") % {'file': configfile, 'line': linenr}) ) rest = match.group(1) if in_fd or in_logfile_list: self.logger.warning( - ( _("Syntax error: external script definition may not appear inside of a log file definition (file »%(file)s«, line %(line)s)") + ( _("Syntax error: external script definition may not appear inside of a log file definition (file '%(file)s', line %(line)s)") % {'file': configfile, 'line': linenr}) ) continue @@ -857,12 +857,12 @@ class LogrotateConfigurationReader(object): if newscript: in_script = True if self.verbose > 3: - self.logger.debug( ( _("New external script name: »%s«.") % (newscript) )) + self.logger.debug( ( _("New external script name: '%s'.") % (newscript) )) continue # all other options if not self._option(line, in_fd, configfile, linenr): - self.logger.warning( ( _("Syntax error in file »%(file)s«, line %(line)s") + self.logger.warning( ( _("Syntax error in file '%(file)s', line %(line)s") % {'file': configfile, 'line': linenr}) ) @@ -910,7 +910,7 @@ class LogrotateConfigurationReader(object): option = match.group(1).lower() val = match.group(2) else: - self.logger.warning( ( _("Could not detect option in line »%s«.") % (line))) + self.logger.warning( ( _("Could not detect option in line '%s'.") % (line))) return False # Check for unsupported options @@ -918,7 +918,7 @@ class LogrotateConfigurationReader(object): match = re.search(pattern, option, re.IGNORECASE) if match: self.logger.info( - ( _("Unsupported option »%(option)s«. (file »%(file)s«, line %(lnr)s)") + ( _("Unsupported option '%(option)s'. (file '%(file)s', line %(lnr)s)") % {'option': match.group(1).lower(), 'file': filename, 'lnr': linenr}) ) return True @@ -931,7 +931,7 @@ class LogrotateConfigurationReader(object): key = match.group(2).lower() if val: self.logger.warning( - ( _("Found value »%(value)s« behind the boolean option »%(option)s«, ignoring. (file »%(file)s«, line %(lnr)s)") + ( _("Found value '%(value)s' behind the boolean option '%(option)s', ignoring. (file '%(file)s', line %(lnr)s)") % {'value': val, 'option': option, 'file': filename, 'lnr': linenr}) ) if negated is None: @@ -940,7 +940,7 @@ class LogrotateConfigurationReader(object): option_value = False if self.verbose > 4: self.logger.debug( - ( _("Setting boolean option »%(option)s« in »%(directive)s« to »%(value)s«. (file »%(file)s«, line %(lnr)s)") + ( _("Setting boolean 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 @@ -956,7 +956,7 @@ class LogrotateConfigurationReader(object): if negated is None: if key in options_with_values: if val is None or val == '': - self.logger.warning( ( _("Option »%s« without a necessary value.") % (key))) + self.logger.warning( ( _("Option '%s' without a necessary value.") % (key))) return False else: if val is None or val == '': @@ -965,13 +965,13 @@ class LogrotateConfigurationReader(object): option_value = long(val) except ValueError, e: self.logger.warning( - ( _("Option »%(option)s« has no integer value: %(msg)s.") + ( _("Option '%(option)s' has no integer value: %(msg)s.") % {'option': key, 'msg': str(e)}) ) return False if option_value < 0: self.logger.warning( - ( _("Negative value %(value)s for option »%(option)s« is not allowed.") + ( _("Negative value %(value)s for option '%(option)s' is not allowed.") % {'value': str(option_value), 'option': key}) ) return False diff --git a/po/LogRotateConfig.de.po b/po/LogRotateConfig.de.po index 3d4552b..5cf7835 100644 --- a/po/LogRotateConfig.de.po +++ b/po/LogRotateConfig.de.po @@ -117,14 +117,14 @@ msgstr "Syntaxfehler: unausgeglichene Zahl von öffnenden und schließenden Klam #: LogRotateConfig.py:784 #, python-format msgid "End of a logfile definition (file '%(file)s', line %(line)s)" -msgstr "Ende einer Logdateidefinition (Datei »%(file)s«, Zeil %(line)s)" +msgstr "Ende einer Logdateidefinition (Datei »%(file)s«, Zeile %(line)s)" #: LogRotateConfig.py:787 #, python-format msgid "" "Needless content found at the end of a logfile definition found: " "'%(rest)s' (file '%(file)s', line %(line)s)" -msgstr "Nutzloser Inhalt am Ende einer Logdateidefinition gefunden: »%(rest)s« (Datei »%(file)s«, Zeil %(line)s)" +msgstr "Nutzloser Inhalt am Ende einer Logdateidefinition gefunden: »%(rest)s« (Datei »%(file)s«, Zeile %(line)s)" #: LogRotateConfig.py:791 msgid "New logfile definition:" @@ -134,43 +134,43 @@ msgstr "Neue Logdateidefinition:" #, python-format msgid "" "Syntax error: include may not appear inside of log file definition (file " -"»%(file)s«, line %(line)s)" -msgstr "" +"'%(file)s', line %(line)s)" +msgstr "Syntaxfehler: Eine include-Anweisung darf nicht einer Logdateidefinition auftreten Datei »%(file)s«, Zeile %(line)s)" #: LogRotateConfig.py:823 #, python-format msgid "" -"Found start of a regular script definition: type: »%(type)s«, name: " -"»%(name)s« (file »%(file)s«, line %(line)s)" -msgstr "" +"Found start of a regular script definition: type: '%(type)s', name: " +"'%(name)s' (file '%(file)s', line %(line)s)" +msgstr "Beginn einer regulären Scriptdefinition gefunden: »%(type)s«, Name: »%(name)s« (Datei »%(file)s«, Zeile %(line)s)" #: LogRotateConfig.py:837 #, python-format -msgid "New log script name: »%s«." -msgstr "" +msgid "New log script name: '%s'." +msgstr "Neuer Scriptname: »%s«" #: LogRotateConfig.py:844 #, python-format msgid "" -"Found start of a external script definition. (file »%(file)s«, line %(line)s)" -msgstr "" +"Found start of a external script definition. (file '%(file)s', line %(line)s)" +msgstr "Beginn einer externen Scriptdefinition gefunden. (Datei »%(file)s«, Zeile %(line)s)" #: LogRotateConfig.py:850 #, python-format msgid "" "Syntax error: external script definition may not appear inside of a log file " -"definition (file »%(file)s«, line %(line)s)" -msgstr "" +"definition (file '%(file)s', line %(line)s)" +msgstr "Syntaxfehler: eine externe Scriptdefinition darf nicht innerhalb einer Logdateidefinition auftreten (Datei »%(file)s«, Zeile %(line)s)" #: LogRotateConfig.py:860 #, python-format -msgid "New external script name: »%s«." -msgstr "" +msgid "New external script name: '%s'." +msgstr "Neuer externer Scriptname: »%s«" #: LogRotateConfig.py:865 #, python-format -msgid "Syntax error in file »%(file)s«, line %(line)s" -msgstr "" +msgid "Syntax error in file '%(file)s', line %(line)s" +msgstr "Syntaxfehler in Datei Datei »%(file)s«, Zeile %(line)s" #: LogRotateConfig.py:894 #, python-format @@ -181,42 +181,42 @@ msgstr "Überprüfe Zeile »%(line)s« nach einer Logrotate-Option. (Datei »%(f #: LogRotateConfig.py:913 #, python-format -msgid "Could not detect option in line »%s«." -msgstr "" +msgid "Could not detect option in line '%s'." +msgstr "Konnte keine Option in Zeile »%s« ermitteln." #: LogRotateConfig.py:921 #, python-format -msgid "Unsupported option »%(option)s«. (file »%(file)s«, line %(lnr)s)" -msgstr "" +msgid "Unsupported option '%(option)s'. (file '%(file)s', line %(lnr)s)" +msgstr "Nicht unterstützte Option »%(option)s«. (Datei »%(file)s«, Zeile %(lnr)s)" #: LogRotateConfig.py:934 #, python-format msgid "" -"Found value »%(value)s« behind the boolean option »%(option)s«, ignoring. " -"(file »%(file)s«, line %(lnr)s)" -msgstr "" +"Found value '%(value)s' behind the boolean option '%(option)s', ignoring. " +"(file '%(file)s', line %(lnr)s)" +msgstr "Wert »%(value)s« nach boolscher Option »%(option)s« gefunden, wird ignoriert. (Datei »%(file)s«, Zeile %(lnr)s)" #: LogRotateConfig.py:943 #, python-format msgid "" -"Setting boolean option »%(option)s« in »%(directive)s« to »%(value)s«. (file " -"»%(file)s«, line %(lnr)s)" -msgstr "" +"Setting boolean option '%(option)s' in '%(directive)s' to '%(value)s'. (file " +"'%(file)s', line %(lnr)s)" +msgstr "Setze boolsche Option »%(option)s« in »%(directive)s« auf »%(value)s«. (Datei »%(file)s«, Zeile %(lnr)s)" #: LogRotateConfig.py:959 #, python-format -msgid "Option »%s« without a necessary value." -msgstr "" +msgid "Option '%s' without a necessary value." +msgstr "Der Option »%s« wurde kein Wert zugewiesen." #: LogRotateConfig.py:968 #, python-format -msgid "Option »%(option)s« has no integer value: %(msg)s." -msgstr "" +msgid "Option '%(option)s' has no integer value: %(msg)s." +msgstr "Der Option »%(option)s« wurde kein Integerwert zugewiesen: %(msg)s." #: LogRotateConfig.py:974 #, python-format -msgid "Negative value %(value)s for option »%(option)s« is not allowed." -msgstr "" +msgid "Negative value %(value)s for option '%(option)s' is not allowed." +msgstr "Der negative Wert %(value)s für die Option »%(option)s« ist nicht erlaubt." #: LogRotateConfig.py:980 #, python-format