Bug 56255 - Make use of system diagnostic module translations if present
Make use of system diagnostic module translations if present
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: UMC - System diagnostic
UCS@school 5.0
Other Linux
: P5 enhancement (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-04 14:30 CEST by Johannes Königer
Modified: 2023-11-13 16:50 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Internationalization
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Königer univentionstaff 2023-07-04 14:30:29 CEST
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.
Comment 1 Florian Best univentionstaff 2023-11-08 16:38:59 CET
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