reformat slightly so we get a pylint 10
This commit is contained in:
parent
4150249f87
commit
d00e2fe9dd
|
@ -17,16 +17,19 @@
|
||||||
|
|
||||||
"""Terminator by Chris Jones <cmsj@tenshu.net>"""
|
"""Terminator by Chris Jones <cmsj@tenshu.net>"""
|
||||||
|
|
||||||
from terminatorlib.version import APP_NAME
|
from version import APP_NAME
|
||||||
|
from util import dbg
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import gettext
|
import gettext
|
||||||
gettext.install (APP_NAME)
|
gettext.install(APP_NAME)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "Using fallback _()"
|
dbg("Using fallback _()")
|
||||||
import __builtin__
|
import __builtin__
|
||||||
|
|
||||||
def dummytrans (text):
|
def dummytrans (text):
|
||||||
"""A _ function for systems without gettext. Effectively a NOOP"""
|
"""A _ function for systems without gettext. Effectively a NOOP"""
|
||||||
return text
|
return(text)
|
||||||
|
|
||||||
__builtin__.__dict__['_'] = dummytrans
|
__builtin__.__dict__['_'] = dummytrans
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue