_ = self.t.lgettext
if not pattern_type in pattern_types:
- raise Exception( _('Invalid taboo pattern type »%s« given') % (pattern_type) )
+ raise Exception( _("Invalid taboo pattern type '%s' given") % (pattern_type) )
pattern = ( pattern_types[pattern_type] % pattern )
if self.verbose > 3:
_ = self.t.lgettext
pp = pprint.PrettyPrinter(indent=4)
- self.logger.debug( _("Try reading configuration from »%s« ...") % (configfile) )
+ self.logger.debug( _("Try reading configuration from '%s' ...") % (configfile) )
if not os.path.exists(configfile):
- raise LogrotateConfigurationError( _("File »%s« doesn't exists.") % (configfile))
+ raise LogrotateConfigurationError( _("File '%s' doesn't exists.") % (configfile))
if not os.path.isfile(configfile):
- raise LogrotateConfigurationError( _("»%s« is not a regular file.") % (configfile))
+ raise LogrotateConfigurationError( _("'%s' is not a regular file.") % (configfile))
self.config_files[configfile] = True
- self.logger.info( _("Reading configuration from »%s« ...") % (configfile) )
+ self.logger.info( _("Reading configuration from '%s' ...") % (configfile) )
cfile = None
try:
cfile = open(configfile, 'Ur')
except IOError, e:
- raise LogrotateConfigurationError( ( _("Could not read configuration file »%s«") % (configfile) ) + ': ' + str(e))
+ raise LogrotateConfigurationError( ( _("Could not read configuration file '%s'") % (configfile) ) + ': ' + str(e))
lines = cfile.readlines()
cfile.close()
if line == '{':
if self.verbose > 3:
- self.logger.debug( ( _("Starting a logfile definition (file »%(file)s«, line %(line)s)")
+ self.logger.debug( ( _("Starting a logfile definition (file '%(file)s', line %(line)s)")
% {'file': configfile, 'line': linenr}))
self._start_logfile_definition(
if in_fd:
raise LogrotateConfigurationError(
- ( _("Logfile pattern definition not allowed inside a logfile definition (file »%(file)s«, line %(line)s)")
+ ( _("Logfile pattern definition not allowed inside a logfile definition (file '%(file)s', line %(line)s)")
% {'file': configfile, 'line': linenr})
)
do_start_logfile_definition = False
parts = split_parts(line)
if self.verbose > 3:
self.logger.debug(
- ( _("Split into parts of: »%s«") % (line))
+ ( _("Split into parts of: '%s'") % (line))
+ ":\n" + pp.pformat(parts)
)
for pattern in parts:
if pattern == '{':
raise LogrotateConfigurationError(
- ( _("Syntax error: open curly bracket inside a logfile pattern definition (file »%(file)s«, line %(line)s)")
+ ( _("Syntax error: open curly bracket inside a logfile pattern definition (file '%(file)s', line %(line)s)")
% {'file': configfile, 'line': linenr})
)
self.new_log['file_patterns'].append(pattern)
if match:
if not in_fd:
raise LogrotateConfigurationError(
- ( _("Syntax error: unbalanced closing curly bracket found (file »%(file)s«, line %(line)s)")
+ ( _("Syntax error: unbalanced closing curly bracket found (file '%(file)s', line %(line)s)")
% {'file': configfile, 'line': linenr})
)
rest = match.group(1)
if self.verbose > 2:
- self.logger.debug( ( _("End of a logfile definition (file »%(file)s«, line %(line)s)") % {'file': configfile, 'line': linenr}))
+ self.logger.debug( ( _("End of a logfile definition (file '%(file)s', line %(line)s)") % {'file': configfile, 'line': linenr}))
if rest:
self.logger.warning(
- ( _("Needless content found at the end of a logfile definition found: »%(rest)s« (file »%(file)s«, line %(line)s)")
+ ( _("Needless content found at the end of a logfile definition found: '%(rest)s' (file '%(file)s', line %(line)s)")
% { 'rest': str(rest), 'file': configfile, 'line': linenr})
)
if self.verbose > 3:
#: LogRotateConfig.py:418
#, python-format
-msgid "Invalid taboo pattern type »%s« given"
+msgid "Invalid taboo pattern type '%s' given"
msgstr "Ungültiger Tabutyp »%s« gegeben"
#: LogRotateConfig.py:422
msgid "Shred command not found, shred disabled"
msgstr "Shred Befehl nicht gefunden, shred wird deaktiviert"
-#: LogRotateConfig.py:628
+#: LogRotateConfig.py:628 LogRotateConfig.py:653
#, python-format
msgid "File '%s' doesn't exists."
msgstr "Die Datei »%s« existiert nicht."
#: LogRotateConfig.py:650
#, python-format
-msgid "Try reading configuration from »%s« ..."
+msgid "Try reading configuration from '%s' ..."
msgstr "Versuche, die Konfiguration aus »%s« zu lesen ..."
-#: LogRotateConfig.py:653
-#, python-format
-msgid "File »%s« doesn't exists."
-msgstr "Die Datei »%s« existiert nicht."
-
#: LogRotateConfig.py:656
#, python-format
-msgid "»%s« is not a regular file."
+msgid "'%s' is not a regular file."
msgstr "»%s« ist keine reguläre Datei."
#: LogRotateConfig.py:660
#, python-format
-msgid "Reading configuration from »%s« ..."
+msgid "Reading configuration from '%s' ..."
msgstr "Lese Konfiguration aus »%s« ..."
#: LogRotateConfig.py:666
#, python-format
-msgid "Could not read configuration file »%s«"
+msgid "Could not read configuration file '%s'"
msgstr "Konnte Konfigurationsdatei »%s« nicht lesen"
#: LogRotateConfig.py:711
#, python-format
-msgid "Starting a logfile definition (file »%(file)s«, line %(line)s)"
+msgid "Starting a logfile definition (file '%(file)s', line %(line)s)"
msgstr "Beginne eine Logdateidefinition (Datei »%(file)s«, Zeil %(line)s)"
#: LogRotateConfig.py:731
#, python-format
msgid ""
"Logfile pattern definition not allowed inside a logfile definition (file "
-"»%(file)s«, line %(line)s)"
-msgstr ""
+"'%(file)s', line %(line)s)"
+msgstr "Die Definition eines Logdateimusters ist innerhalb einer Logdateidefinition nicht erlaubt. Datei »%(file)s«, Zeil %(line)s)"
#: LogRotateConfig.py:748
#, python-format
-msgid "Split into parts of: »%s«"
-msgstr ""
+msgid "Split into parts of: '%s'"
+msgstr "Zerteile: »%s«"
#: LogRotateConfig.py:755
#, python-format
msgid ""
"Syntax error: open curly bracket inside a logfile pattern definition (file "
-"»%(file)s«, line %(line)s)"
-msgstr ""
+"'%(file)s', line %(line)s)"
+msgstr "Syntaxfehler: öffnende geschweifte Klammer innerhalb einer Logdateidefinition (Datei »%(file)s«, Zeile %(line)s)"
#: LogRotateConfig.py:779
#, python-format
msgid ""
-"Syntax error: unbalanced closing curly bracket found (file »%(file)s«, line "
+"Syntax error: unbalanced closing curly bracket found (file '%(file)s', line "
"%(line)s)"
-msgstr ""
+msgstr "Syntaxfehler: unausgeglichene Zahl von öffnenden und schließenden Klammern (Datei »%(file)s«, Zeile %(line)s)"
#: LogRotateConfig.py:784
#, python-format
-msgid "End of a logfile definition (file »%(file)s«, line %(line)s)"
-msgstr ""
+msgid "End of a logfile definition (file '%(file)s', line %(line)s)"
+msgstr "Ende einer Logdateidefinition (Datei »%(file)s«, Zeil %(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 ""
+"'%(rest)s' (file '%(file)s', line %(line)s)"
+msgstr "Nutzloser Inhalt am Ende einer Logdateidefinition gefunden: »%(rest)s« (Datei »%(file)s«, Zeil %(line)s)"
#: LogRotateConfig.py:791
msgid "New logfile definition:"
-msgstr ""
+msgstr "Neue Logdateidefinition:"
#: LogRotateConfig.py:804
#, python-format