From d00e2fe9ddad21c77e8e324a010dc48d86776d68 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 18 Aug 2009 12:35:06 +0100 Subject: [PATCH] reformat slightly so we get a pylint 10 --- terminatorlib/translation.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/terminatorlib/translation.py b/terminatorlib/translation.py index 77477539..0e825a86 100644 --- a/terminatorlib/translation.py +++ b/terminatorlib/translation.py @@ -17,16 +17,19 @@ """Terminator by Chris Jones """ -from terminatorlib.version import APP_NAME +from version import APP_NAME +from util import dbg try: import gettext - gettext.install (APP_NAME) + gettext.install(APP_NAME) except ImportError: - print "Using fallback _()" + dbg("Using fallback _()") import __builtin__ + def dummytrans (text): - """A _ function for systems without gettext. Effectively a NOOP""" - return text + """A _ function for systems without gettext. Effectively a NOOP""" + return(text) + __builtin__.__dict__['_'] = dummytrans