aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-09-04 15:56:58 +0200
committerGuido Günther <agx@sigxcpu.org>2013-09-04 16:04:02 +0200
commitcd54f18e6862dc38692ad857006dbc5494f94776 (patch)
tree2921d8885585c294807eb2398568fe92c23a2f7f
parent5f909854d514be85c45e20e6bf12ce06e2b1d103 (diff)
Make _ global
so pylint doesn't grock on it
-rwxr-xr-xsrc/prepaid-manager-applet.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/prepaid-manager-applet.py b/src/prepaid-manager-applet.py
index 7df7da7..29d90a9 100755
--- a/src/prepaid-manager-applet.py
+++ b/src/prepaid-manager-applet.py
@@ -31,6 +31,8 @@ from ppm.modemproxy import (ModemManagerProxy, ModemError)
from ppm.providerdb import ProviderDB
from ppm.accountdb import AccountDB
+_ = None
+
# The controller receives input and initiates a response by making calls on model
# objects. A controller accepts input from the user and instructs the model and
# view to perform actions based on that input.
@@ -748,6 +750,7 @@ class PPMProviderInfoMissingDialog(object):
def setup_i18n():
+ global _
locale.setlocale(locale.LC_ALL, '')
gettext.install(ppm.gettext_app, ppm.gettext_dir)
gettext.bindtextdomain(ppm.gettext_app, ppm.gettext_dir)