Bug 40612 - Can not change interface language in univention management console
Can not change interface language in univention management console
Product: UCS
Classification: Unclassified
Component: UMC - Language settings
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Florian Best
Alexander Kläser
: interim-1
: 33135 (view as bug list)
Depends on: 38370
  Show dependency treegraph
Reported: 2016-02-09 16:58 CET by Michel Smidt
Modified: 2017-04-04 18:29 CEST (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?: 5: Will affect all 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.114
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): External feedback, Internationalization, Usability
Max CVSS v3 score:


Note You need to log in before you can comment on or make changes to this bug.
Description Michel Smidt 2016-02-09 16:58:51 CET
Noticed in a customer workshop.

It is not possible to change the language in the univention management console.
The participant at least tried to find a language switcher in the univention management console in the upper right corner under Administrator -> Settings
Comment 1 Florian Best univentionstaff 2016-02-09 17:53:45 CET
A in-place language change is not possible without reloading the page and would therefore destroy the active session.
We could add such a menu item easily which warns about this via a pop up and reloads the page after confirmation with a different language.
Comment 2 Florian Best univentionstaff 2016-09-13 13:58:56 CEST
I guess we need to fix this for UCS 4.2 as the language selection will be moved into the menu and the portal will also show the language switch everywhere while communicating with the UMC backend.
Comment 3 Florian Best univentionstaff 2017-02-02 18:06:30 CET
A menu entry for switching the language has been added to UMC. Translating is currently not possible due to Bug #38824 there is no de.po file in univention-mangement-console.

univention-management-console (9.0.21-2):
r76335 | Bug #40612: Bug #38370: fix updating of language
r76134 | Bug #40612: Bug #38370: fix language mix after e.g. installing a app

univention-lib (6.0.6-7):
r76335 | Bug #40612: Bug #38370: fix updating of language
Comment 4 Alexander Kläser univentionstaff 2017-02-03 14:43:12 CET
When loading the setup wizard, I observe a spinning wheel as setup/load is not resolved. The reason for this is that the module process crashes when setting the locale.

---------- 8< ----------
> 03.02.17 08:37:49.146  PARSER      ( INFO    ) : UMCP REQUEST 148612906914539-0 parsed successfully
> 03.02.17 08:37:49.149  MODULE      ( INFO    ) : Received request 148612906914539-0
> 03.02.17 08:37:49.149  PROTOCOL    ( INFO    ) : Received UMCP SET REQUEST 148612906914539-0
> 03.02.17 08:37:49.150  MAIN        ( INFO    ) : Setting locale 'en_US.UTF-8'
> 03.02.17 08:37:49.152  MODULE      ( PROCESS ) : Execution of command '' has failed:
> Traceback (most recent call last):
>   File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/modserver.py", line 178, in _recv
>     self.handle(msg)
>   File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/modserver.py", line 277, in handle
>     self.__handler.update_language([value])
>   File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 233, in update_language
>     self.set_locale(str(_locale))
>   File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 181, in _response
>     request.options = sanitizer.sanitize(options_name, {options_name: request.options})
> AttributeError: 'str' object has no attribute 'options'
---------- 8< ----------
Comment 5 Florian Best univentionstaff 2017-02-03 14:57:41 CET
The Instance class of the system setup had a method called "set_locale" which overwrote the newly added one. I renamed the method in the system setup.

univention-system-setup (10.0.4-4):
r76399 | Bug #40612: rename method set_locale as this name is now used in the Base class
Comment 6 Florian Best univentionstaff 2017-02-10 11:08:28 CET
*** Bug 33135 has been marked as a duplicate of this bug. ***
Comment 7 Alexander Kläser univentionstaff 2017-02-15 14:24:25 CET
Changes: OK, language can be changed via menu
Changelog: OK

Comment 8 Stefan Gohmann univentionstaff 2017-04-04 18:29:14 CEST
UCS 4.2 has been released:

If this error occurs again, please use "Clone This Bug".