Univention Bugzilla – Bug 40612
Can not change interface language in univention management console
Last modified: 2017-04-04 18:29:14 CEST
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
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.
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.
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
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< ----------
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
*** Bug 33135 has been marked as a duplicate of this bug. ***
Changes: OK, language can be changed via menu Changelog: OK VERIFIED
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".