diff options
author | necoro <> | 2007-08-05 04:11:46 +0000 |
---|---|---|
committer | necoro <> | 2007-08-05 04:11:46 +0000 |
commit | 8fe46a012d17eaa874abf63b9be93c6f11b8df97 (patch) | |
tree | 517e994fa610586e83d297997a4865f7b3b86af4 /portato/config_parser.py | |
parent | 0087f656a2d9fe962d874ae73f5759dbfc09f634 (diff) | |
download | portato-8fe46a012d17eaa874abf63b9be93c6f11b8df97.tar.gz portato-8fe46a012d17eaa874abf63b9be93c6f11b8df97.tar.bz2 portato-8fe46a012d17eaa874abf63b9be93c6f11b8df97.zip |
i18n support and german translations
Diffstat (limited to '')
-rw-r--r-- | portato/config_parser.py | 3 |
1 files changed, 2 insertions, 1 deletions
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. |