commit de8ed60b402b02172601d2a28389e67a9b7464d7 Author: Thomas Woerner Date: Fri Jul 29 15:55:47 2016 +0200 firewall-config: Add missing gettext.textdomain call to fix translations gettext.gettext was used without setting the textdomain. This resulted in failed translations and also in a traceback in the rich rule dialog while adding a service or port, .. The failed translations only happended for strings that have been translated using _() in the code, but not in glade. diff --git a/src/firewall-config b/src/firewall-config index 4a452e2..9e4d2af 100755 --- a/src/firewall-config +++ b/src/firewall-config @@ -23,8 +23,6 @@ import sys import string import gi -import gettext -_ = gettext.gettext try: gi.require_version('Gtk', '3.0') @@ -57,6 +55,10 @@ from firewall.core.io.ipset import IPSet from firewall.core import rich from firewall.core.fw_nm import * +import gettext +gettext.textdomain(config.DOMAIN) +_ = gettext.gettext + if not datadir: datadir = config.DATADIR sys.path.insert(0, datadir)