Commit 8d52449d authored by Alan's avatar Alan

ASP: fix tranlsation

Assigning _ to gettext.gettext in the module to make syntax checkers
happy was rendering the version provided by gettext.install
inaccessible.

Will-fix: #16601
parent d71b9fab
......@@ -25,8 +25,6 @@ from tailslib.additionalsoftware import ( # NOQA: E402
get_packages_list_path,
filter_package_details)
_ = gettext.gettext
UI_FILE = "/usr/share/tails/additional-software/configuration-window.ui"
......
......@@ -15,8 +15,6 @@ from gi.repository import GLib
gi.require_version('Notify', '0.7')
from gi.repository import Notify # NOQA: E402
_ = gettext.gettext
class ASPNotifier(object):
"""Display a notification and exit with a meaningful code."""
......
......@@ -32,8 +32,6 @@ from tailslib.persistence import (
from tailslib.utils import launch_x_application
_ = gettext.gettext
ASP_STATE_DIR = "/run/live-additional-software"
ASP_STATE_PACKAGES = os.path.join(ASP_STATE_DIR, "packages")
ASP_STATE_INSTALLER_ASKED = os.path.join(ASP_STATE_DIR, "installer-asked")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment