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