selinux/python/semanage
Petr Lautrbach b945bf050a python: improve format strings for proper localization
If a string contains more than one unnamed argument it's hard for
translators to proper localize as they don't know which value is
represented by a unnamed argument. It also blocks them to use a
different order of arguments which would make better sense in other
languages.

Fixes:

    $ xgettext --default-domain=python -L Python --keyword=_ --keyword=N_ ../audit2allow/audit2allow ../chcat/chcat ../semanage/semanage ../semanage/seobject.py ../sepolgen/src/sepolgen/interfaces.py ../sepolicy/sepolicy/generate.py ../sepolicy/sepolicy/gui.py ../sepolicy/sepolicy/__init__.py ../sepolicy/sepolicy/interface.py ../sepolicy/sepolicy.py
    ../chcat/chcat:220: warning: 'msgid' format string with unnamed arguments cannot be properly localized:
                                 The translator cannot reorder the arguments.
                                 Please consider using a format string with named arguments,
                                 and a mapping instead of a tuple for the arguments.
    ../semanage/seobject.py:1178: warning: 'msgid' format string with unnamed arguments cannot be properly localized:
                                           The translator cannot reorder the arguments.
                                           Please consider using a format string with named arguments,
                                           and a mapping instead of a tuple for the arguments.
    ...

Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
2023-07-12 12:57:31 -04:00
..
ru Update man pages translation by Olesya Gerasimenko 2019-05-28 07:50:34 -04:00
Makefile python: Remove dependency on the Python module distutils 2022-11-09 07:51:36 -05:00
semanage Correct misc typos 2023-01-11 08:45:08 -05:00
semanage-bash-completion.sh semanage bash completion: handle semanage module 2020-06-09 15:44:07 -04:00
semanage-boolean.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-dontaudit.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-export.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-fcontext.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-ibendport.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-ibpkey.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-import.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-interface.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-login.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-module.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-node.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-permissive.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-port.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage-user.8 python/semanage: Improve man pages 2023-05-11 09:22:40 +02:00
semanage.8 python/semanage: Examples are no longer in the main semanage man page 2019-02-04 22:11:26 +01:00
seobject.py python: improve format strings for proper localization 2023-07-12 12:57:31 -04:00
test-semanage.py semanage/test-semanage.py: Return non-zero value when some of unittest tests fail 2020-05-13 11:11:23 +02:00