platform_external_selinux/gui
Vit Mojzis 344463076b gettext: handle unsupported languages properly
With "fallback=True" gettext.translation behaves the same as
gettext.install and uses NullTranslations in case the
translation file for given language was not found (as opposed to
throwing an exception).

Fixes:
  # LANG is set to any "unsupported" language, e.g. en_US.UTF-8
  $ chcat --help
  Traceback (most recent call last):
  File "/usr/bin/chcat", line 39, in <module>
    t = gettext.translation(PROGNAME,
  File "/usr/lib64/python3.9/gettext.py", line 592, in translation
    raise FileNotFoundError(ENOENT,
  FileNotFoundError: [Errno 2] No translation file found for domain: 'selinux-python'

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
Reviewed-by: Daniel Burgener <dburgener@linux.microsoft.com>
Acked-by: Petr Lautrbach <plautrba@redhat.com>
2022-06-29 15:51:07 +02:00
..
po Update translations from translate.fedoraproject.org 2022-04-06 10:53:37 +02:00
ru Add man pages translation by Olesya Gerasimenko 2019-01-28 12:03:57 +01:00
booleansPage.py gettext: handle unsupported languages properly 2022-06-29 15:51:07 +02:00
COPYING Add COPYING files for new subdirs. 2016-11-16 11:19:51 -05:00
domainsPage.py gettext: handle unsupported languages properly 2022-06-29 15:51:07 +02:00
fcontextPage.py gettext: handle unsupported languages properly 2022-06-29 15:51:07 +02:00
loginsPage.py gettext: handle unsupported languages properly 2022-06-29 15:51:07 +02:00
Makefile Split po/ translation files into the relevant sub-directories 2022-04-06 10:52:41 +02:00
modulesPage.py gettext: handle unsupported languages properly 2022-06-29 15:51:07 +02:00
org.selinux.config.policy Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
polgen.ui Fix many misspellings 2019-09-18 22:47:35 +02:00
polgengui.py gettext: handle unsupported languages properly 2022-06-29 15:51:07 +02:00
portsPage.py gettext: handle unsupported languages properly 2022-06-29 15:51:07 +02:00
selinux-polgengui.8 Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
selinux-polgengui.desktop Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
semanagePage.py gettext: handle unsupported languages properly 2022-06-29 15:51:07 +02:00
sepolgen Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
sepolicy.desktop Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
sepolicy_16.png Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
sepolicy_22.png Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
sepolicy_32.png Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
sepolicy_48.png Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
sepolicy_256.png Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
statusPage.py gettext: handle unsupported languages properly 2022-06-29 15:51:07 +02:00
system-config-selinux Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
system-config-selinux.8 Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
system-config-selinux.desktop Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
system-config-selinux.png Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
system-config-selinux.py gettext: handle unsupported languages properly 2022-06-29 15:51:07 +02:00
system-config-selinux.ui gui: fix "file type" selection in fcontextPage 2021-02-24 15:13:25 +01:00
usersPage.py gettext: handle unsupported languages properly 2022-06-29 15:51:07 +02:00
VERSION Update VERSIONs to 3.4 for release. 2022-05-18 16:51:03 +02:00