|
|
9bbebd |
From 57cd23e11e1a700802a5955e84a0a7e04c30ec73 Mon Sep 17 00:00:00 2001
|
|
|
9bbebd |
From: Petr Lautrbach <plautrba@redhat.com>
|
|
|
9bbebd |
Date: Mon, 6 Aug 2018 13:37:07 +0200
|
|
|
9bbebd |
Subject: [PATCH] Use correct gettext domains in python/ gui/ sandbox/
|
|
|
9bbebd |
|
|
|
9bbebd |
https://github.com/fedora-selinux/selinux/issues/43
|
|
|
9bbebd |
---
|
|
|
9bbebd |
gui/booleansPage.py | 2 +-
|
|
|
9bbebd |
gui/domainsPage.py | 2 +-
|
|
|
9bbebd |
gui/fcontextPage.py | 2 +-
|
|
|
9bbebd |
gui/loginsPage.py | 2 +-
|
|
|
9bbebd |
gui/modulesPage.py | 2 +-
|
|
|
9bbebd |
gui/polgengui.py | 2 +-
|
|
|
9bbebd |
gui/portsPage.py | 2 +-
|
|
|
9bbebd |
gui/semanagePage.py | 2 +-
|
|
|
9bbebd |
gui/statusPage.py | 2 +-
|
|
|
9bbebd |
gui/system-config-selinux.py | 2 +-
|
|
|
9bbebd |
gui/usersPage.py | 2 +-
|
|
|
9bbebd |
python/chcat/chcat | 2 +-
|
|
|
9bbebd |
python/semanage/semanage | 2 +-
|
|
|
9bbebd |
python/semanage/seobject.py | 2 +-
|
|
|
9bbebd |
python/sepolgen/src/sepolgen/sepolgeni18n.py | 2 +-
|
|
|
9bbebd |
python/sepolicy/sepolicy.py | 2 +-
|
|
|
9bbebd |
python/sepolicy/sepolicy/__init__.py | 2 +-
|
|
|
9bbebd |
python/sepolicy/sepolicy/generate.py | 2 +-
|
|
|
9bbebd |
python/sepolicy/sepolicy/gui.py | 2 +-
|
|
|
9bbebd |
python/sepolicy/sepolicy/interface.py | 2 +-
|
|
|
9bbebd |
sandbox/sandbox | 2 +-
|
|
|
9bbebd |
21 files changed, 21 insertions(+), 21 deletions(-)
|
|
|
9bbebd |
|
|
|
9bbebd |
diff --git a/gui/booleansPage.py b/gui/booleansPage.py
|
|
|
9bbebd |
index 7849bea2..dd12b6d6 100644
|
|
|
9bbebd |
--- a/gui/booleansPage.py
|
|
|
9bbebd |
+++ b/gui/booleansPage.py
|
|
|
9bbebd |
@@ -38,7 +38,7 @@ DISABLED = 2
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-gui"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/gui/domainsPage.py b/gui/domainsPage.py
|
|
|
9bbebd |
index bad5140d..6bbe4de5 100644
|
|
|
9bbebd |
--- a/gui/domainsPage.py
|
|
|
9bbebd |
+++ b/gui/domainsPage.py
|
|
|
9bbebd |
@@ -30,7 +30,7 @@ from semanagePage import *
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-gui"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/gui/fcontextPage.py b/gui/fcontextPage.py
|
|
|
9bbebd |
index 370bbee4..e424366d 100644
|
|
|
9bbebd |
--- a/gui/fcontextPage.py
|
|
|
9bbebd |
+++ b/gui/fcontextPage.py
|
|
|
9bbebd |
@@ -47,7 +47,7 @@ class context:
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-gui"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/gui/loginsPage.py b/gui/loginsPage.py
|
|
|
9bbebd |
index b67eb8bc..cbfb0cc2 100644
|
|
|
9bbebd |
--- a/gui/loginsPage.py
|
|
|
9bbebd |
+++ b/gui/loginsPage.py
|
|
|
9bbebd |
@@ -29,7 +29,7 @@ from semanagePage import *
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-gui"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/gui/modulesPage.py b/gui/modulesPage.py
|
|
|
9bbebd |
index cb856b2d..26ac5404 100644
|
|
|
9bbebd |
--- a/gui/modulesPage.py
|
|
|
9bbebd |
+++ b/gui/modulesPage.py
|
|
|
9bbebd |
@@ -30,7 +30,7 @@ from semanagePage import *
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-gui"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/gui/polgengui.py b/gui/polgengui.py
|
|
|
9bbebd |
index b1cc9937..46a1bd2c 100644
|
|
|
9bbebd |
--- a/gui/polgengui.py
|
|
|
9bbebd |
+++ b/gui/polgengui.py
|
|
|
9bbebd |
@@ -63,7 +63,7 @@ def get_all_modules():
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-gui"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/gui/portsPage.py b/gui/portsPage.py
|
|
|
9bbebd |
index 30f58383..a537ecc8 100644
|
|
|
9bbebd |
--- a/gui/portsPage.py
|
|
|
9bbebd |
+++ b/gui/portsPage.py
|
|
|
9bbebd |
@@ -35,7 +35,7 @@ from semanagePage import *
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-gui"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/gui/semanagePage.py b/gui/semanagePage.py
|
|
|
9bbebd |
index 4127804f..5361d69c 100644
|
|
|
9bbebd |
--- a/gui/semanagePage.py
|
|
|
9bbebd |
+++ b/gui/semanagePage.py
|
|
|
9bbebd |
@@ -22,7 +22,7 @@ from gi.repository import Gdk, Gtk
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-gui"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/gui/statusPage.py b/gui/statusPage.py
|
|
|
9bbebd |
index 766854b1..a8f079b9 100644
|
|
|
9bbebd |
--- a/gui/statusPage.py
|
|
|
9bbebd |
+++ b/gui/statusPage.py
|
|
|
9bbebd |
@@ -35,7 +35,7 @@ RELABELFILE = "/.autorelabel"
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-gui"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/gui/system-config-selinux.py b/gui/system-config-selinux.py
|
|
|
9bbebd |
index c42301b6..1e0d5eb1 100644
|
|
|
9bbebd |
--- a/gui/system-config-selinux.py
|
|
|
9bbebd |
+++ b/gui/system-config-selinux.py
|
|
|
9bbebd |
@@ -45,7 +45,7 @@ import selinux
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-gui"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/gui/usersPage.py b/gui/usersPage.py
|
|
|
9bbebd |
index 26794ed5..d15d4c5a 100644
|
|
|
9bbebd |
--- a/gui/usersPage.py
|
|
|
9bbebd |
+++ b/gui/usersPage.py
|
|
|
9bbebd |
@@ -29,7 +29,7 @@ from semanagePage import *
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-gui"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/python/chcat/chcat b/python/chcat/chcat
|
|
|
9bbebd |
index ba398684..df2509f2 100755
|
|
|
9bbebd |
--- a/python/chcat/chcat
|
|
|
9bbebd |
+++ b/python/chcat/chcat
|
|
|
9bbebd |
@@ -30,7 +30,7 @@ import getopt
|
|
|
9bbebd |
import selinux
|
|
|
9bbebd |
import seobject
|
|
|
9bbebd |
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-python"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/python/semanage/semanage b/python/semanage/semanage
|
|
|
9bbebd |
index 144cc000..56db3e0d 100644
|
|
|
9bbebd |
--- a/python/semanage/semanage
|
|
|
9bbebd |
+++ b/python/semanage/semanage
|
|
|
9bbebd |
@@ -27,7 +27,7 @@ import traceback
|
|
|
9bbebd |
import argparse
|
|
|
9bbebd |
import seobject
|
|
|
9bbebd |
import sys
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-python"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/python/semanage/seobject.py b/python/semanage/seobject.py
|
|
|
9bbebd |
index 13fdf531..b90b1070 100644
|
|
|
9bbebd |
--- a/python/semanage/seobject.py
|
|
|
9bbebd |
+++ b/python/semanage/seobject.py
|
|
|
9bbebd |
@@ -29,7 +29,7 @@ import sys
|
|
|
9bbebd |
import stat
|
|
|
9bbebd |
import socket
|
|
|
9bbebd |
from semanage import *
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-python"
|
|
|
9bbebd |
import sepolicy
|
|
|
9bbebd |
import setools
|
|
|
9bbebd |
from IPy import IP
|
|
|
9bbebd |
diff --git a/python/sepolgen/src/sepolgen/sepolgeni18n.py b/python/sepolgen/src/sepolgen/sepolgeni18n.py
|
|
|
9bbebd |
index 998c4356..56ebd807 100644
|
|
|
9bbebd |
--- a/python/sepolgen/src/sepolgen/sepolgeni18n.py
|
|
|
9bbebd |
+++ b/python/sepolgen/src/sepolgen/sepolgeni18n.py
|
|
|
9bbebd |
@@ -19,7 +19,7 @@
|
|
|
9bbebd |
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
- t = gettext.translation( 'yumex' )
|
|
|
9bbebd |
+ t = gettext.translation( 'selinux-python' )
|
|
|
9bbebd |
_ = t.gettext
|
|
|
9bbebd |
except:
|
|
|
9bbebd |
def _(str):
|
|
|
9bbebd |
diff --git a/python/sepolicy/sepolicy.py b/python/sepolicy/sepolicy.py
|
|
|
9bbebd |
index 1934cd86..8bd6a579 100755
|
|
|
9bbebd |
--- a/python/sepolicy/sepolicy.py
|
|
|
9bbebd |
+++ b/python/sepolicy/sepolicy.py
|
|
|
9bbebd |
@@ -27,7 +27,7 @@ import selinux
|
|
|
9bbebd |
import sepolicy
|
|
|
9bbebd |
from sepolicy import get_os_version, get_conditionals, get_conditionals_format_text
|
|
|
9bbebd |
import argparse
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-python"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/python/sepolicy/sepolicy/__init__.py b/python/sepolicy/sepolicy/__init__.py
|
|
|
9bbebd |
index 0c66f4d5..b6ca57c3 100644
|
|
|
9bbebd |
--- a/python/sepolicy/sepolicy/__init__.py
|
|
|
9bbebd |
+++ b/python/sepolicy/sepolicy/__init__.py
|
|
|
9bbebd |
@@ -13,7 +13,7 @@ import os
|
|
|
9bbebd |
import re
|
|
|
9bbebd |
import gzip
|
|
|
9bbebd |
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-python"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/python/sepolicy/sepolicy/generate.py b/python/sepolicy/sepolicy/generate.py
|
|
|
9bbebd |
index 019e7836..7175d36b 100644
|
|
|
9bbebd |
--- a/python/sepolicy/sepolicy/generate.py
|
|
|
9bbebd |
+++ b/python/sepolicy/sepolicy/generate.py
|
|
|
9bbebd |
@@ -49,7 +49,7 @@ import sepolgen.defaults as defaults
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-python"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/python/sepolicy/sepolicy/gui.py b/python/sepolicy/sepolicy/gui.py
|
|
|
9bbebd |
index 00fd7a11..805cee67 100644
|
|
|
9bbebd |
--- a/python/sepolicy/sepolicy/gui.py
|
|
|
9bbebd |
+++ b/python/sepolicy/sepolicy/gui.py
|
|
|
9bbebd |
@@ -41,7 +41,7 @@ import os
|
|
|
9bbebd |
import re
|
|
|
9bbebd |
import unicodedata
|
|
|
9bbebd |
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-python"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/python/sepolicy/sepolicy/interface.py b/python/sepolicy/sepolicy/interface.py
|
|
|
9bbebd |
index 583091ae..e2b8d23b 100644
|
|
|
9bbebd |
--- a/python/sepolicy/sepolicy/interface.py
|
|
|
9bbebd |
+++ b/python/sepolicy/sepolicy/interface.py
|
|
|
9bbebd |
@@ -30,7 +30,7 @@ __all__ = ['get_all_interfaces', 'get_interfaces_from_xml', 'get_admin', 'get_us
|
|
|
9bbebd |
##
|
|
|
9bbebd |
## I18N
|
|
|
9bbebd |
##
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-python"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
diff --git a/sandbox/sandbox b/sandbox/sandbox
|
|
|
9bbebd |
index 1dec07ac..a12403b3 100644
|
|
|
9bbebd |
--- a/sandbox/sandbox
|
|
|
9bbebd |
+++ b/sandbox/sandbox
|
|
|
9bbebd |
@@ -37,7 +37,7 @@ import sepolicy
|
|
|
9bbebd |
|
|
|
9bbebd |
SEUNSHARE = "/usr/sbin/seunshare"
|
|
|
9bbebd |
SANDBOXSH = "/usr/share/sandbox/sandboxX.sh"
|
|
|
9bbebd |
-PROGNAME = "policycoreutils"
|
|
|
9bbebd |
+PROGNAME = "selinux-sandbox"
|
|
|
9bbebd |
try:
|
|
|
9bbebd |
import gettext
|
|
|
9bbebd |
kwargs = {}
|
|
|
9bbebd |
--
|
|
|
9bbebd |
2.21.0
|
|
|
9bbebd |
|