From 8fe46a012d17eaa874abf63b9be93c6f11b8df97 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Sun, 5 Aug 2007 04:11:46 +0000 Subject: i18n support and german translations --- portato/config_parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'portato/config_parser.py') diff --git a/portato/config_parser.py b/portato/config_parser.py index 32e0518..8555fc0 100644 --- a/portato/config_parser.py +++ b/portato/config_parser.py @@ -31,6 +31,7 @@ Currently supported are the values (case insensitive): false, 0, off, falsch, ne """ from helper import debug +from gettext import lgettext as _ import re import types @@ -207,7 +208,7 @@ class ConfigParser: self.vars[section][key] = Value(val, count, bool = bool) self.pos[count] = match.span(2) else: # neither comment nor empty nor expression nor section => error - error("Unrecognized line in configuration: %s", line) + error(_("Unrecognized line in configuration: %s"), line) def get (self, key, section = "MAIN"): """Returns the value of a given key in a section. -- cgit v1.2.3