Bug 56256 - UMC system diagnostic module messages are not translated to German
UMC system diagnostic module messages are not translated to German
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - System diagnostic
UCS 5.0
Other Linux
: P5 minor (vote)
: UCS 5.0-4-errata
Assigned To: Florian Best
Christian Castens
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-04 14:44 CEST by Johannes Königer
Modified: 2023-07-05 14:48 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
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
System diagnostic module translation bug example (177.63 KB, image/png)
2023-07-04 14:44 CEST, Johannes Königer
Details

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:44:03 CEST
Created attachment 11081 [details]
System diagnostic module translation bug example

The UMC system diagnostic module is only partially translated. I filed this as a bug and not an enhancement as the translation has worked in the past.

See the attachment for an example of the problem.

In the example, the type of the message is translated ("Warnung") but not the title ("SAML certificate verification failed!") although a translation file exists, see `management/univention-management-console-module-diagnostic/umc/python/diagnostic/de.po` in the UCS repository.

System information:

```
UCS: 5.0-4 errata721
Installed: self-service-backend=5.0 ucsschool=5.0 v3
```
Comment 1 Florian Best univentionstaff 2023-07-04 17:00:41 CEST
The problem is in the UMC-Moduleprocess, which is initially started with the correct locale but then the first request resets that, because tornado doesn't contain the locale territory:

MODULE      ( PROCESS ) : Received request '/univention/command/diagnostic/run': ('Administrator', None, None, 'de')
MAIN        ( WARN    ) : Locale 'de.UTF-8' is not available: unsupported locale setting
MAIN        ( WARN    ) : Could not set language. Resetting locale.
Comment 2 Florian Best univentionstaff 2023-07-04 17:23:02 CEST
univention-management-console.yaml
58445b2ba03e | fix(umc): fix translation of module processes

univention-management-console (12.0.31-5)
58445b2ba03e | fix(umc): fix translation of module processes
Comment 3 Christian Castens univentionstaff 2023-07-05 12:54:10 CEST
QA:
  - system diagnostics are translated correctly: OK
  - advisory:  OK
  - no related errors/tracebacks in logfiles:  OK
Comment 4 Christian Castens univentionstaff 2023-07-05 14:48:56 CEST
<https://errata.software-univention.de/#/?erratum=5.0x725>