Univention Bugzilla – Bug 35550
Setup progress not correctly localized
Last modified: 2015-04-30 12:32:33 CEST
In German I see "Configuring server role" In English (having switched from initial German on the first page) I see all the titles in German
(In reply to Dirk Wiesenthal from comment #0) > In German I see "Configuring server role" The problem is the script refresh-i18n within system-setup. It uses xgettext -L Shell -o $pot usr/lib/univention-system-setup/scripts/*.sh usr/lib/univention-system-setup/scripts/*/* But some scripts (e.g. the role script are in Python)
*** Bug 33330 has been marked as a duplicate of this bug. ***
I have fixed that in UCS 4 because a new frontend-message heavy setup-script written in Python Index: refresh-i18n =================================================================== --- refresh-i18n (Revision 54332) +++ refresh-i18n (Arbeitskopie) @@ -34,12 +34,16 @@ dir=usr/share/locale/$lang/LC_MESSAGES/ po=$dir/univention-system-setup-scripts.po pot=${po}t +potpy=${pot}-py pox=${po}x mkdir -p $dir echo; echo "Translation for UMC module" xgettext -L Shell -o $pot usr/lib/univention-system-setup/scripts/*.sh usr/lib/univention-system-setup/scripts/*/* +xgettext -L python --omit-header -o $pot-py usr/lib/univention-system-setup/scripts/*/* +cat $potpy >> $pot && rm $potpy +msgmerge --update -o $pot if grep "Content-Type: text/plain; charset=CHARSET" $pot ; then echo "Rewriting encoding information from CHARSET to UTF-8"
I fixed this behaviour by passing the option "env" to subprocess.Popen() with the correct value for LANG. After some tests, it seemed that the setup-join.sh process would not inherit the correct environment variable values from the module process... hm. AFAIS, this works fine now. r60065 | Bug #35550: ensure that the chosen locale is used for the progress bar
Package has been build, YAML file has been added. r60069 | Bug #37771, Bug #35550, Bug #38293: added YAML entries
OK: Messages are correctly localized OK: yaml Verified
<http://errata.univention.de/ucs/4.0/161.html>