Univention Bugzilla – Bug 56255
Make use of system diagnostic module translations if present
Last modified: 2023-11-13 16:50:59 CET
Enhancement: Translate system diagnosis module plugins from UCS@school Although the plugins in `ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/` are prepared to be translated, no translation in the form of `.po` files are contained in the Debian source.
Most plugins are translated, but there is a python bug: _("foo {}".format(foo)) instead of _("foo {}").format(foo) ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/906_ucsschool_uid_uniqueness.py: "has same ucsschoolSourceUID and ucsschoolRecordUID as {!r}: {!r}{!r}".format( # noqa: INT002 ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/908_ucsschool_school_admin_accounts.py: details = "\n\n" + _("The following {} problems were detected:".format(problem_desc)) # noqa: INT002 ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/908_ucsschool_school_admin_accounts.py: "is member of group {} but is not registered as a " # noqa: INT002 ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/908_ucsschool_school_admin_accounts.py: "is registered as admin but no member of the following groups: {}".format( # noqa: INT002 ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/908_ucsschool_school_admin_accounts.py: "should not be member of the following groups " # noqa: INT002 ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/910_ucsschool_veyon_app_installed.py: "Verify that the {!r} app is installed on singleserver system and school server system " # noqa: INT002 ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/910_ucsschool_veyon_app_installed.py: "The {0!r} app is not installed. Try installing it through the 'Install {0!r} app' button. " # noqa: INT002 ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/910_ucsschool_veyon_app_installed.py: "label": _("Install {!r} app".format(VEYON_APP_NAME)), # noqa: INT002 ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/910_ucsschool_veyon_app_installed.py: "label": _("Appcenter page for {!r} app.".format(VEYON_APP_NAME)), # noqa: INT002 ucs-school-umc-groups/umc/python/schoolgroups/__init__.py: "One or more errors during validation of the group occured:\n{}".format( # noqa: INT002