Bug 35550

Summary: Setup progress not correctly localized
Product: UCS Reporter: Dirk Wiesenthal <wiesenthal>
Component: System setupAssignee: Alexander Kläser <klaeser>
Status: CLOSED FIXED QA Contact: Erik Damrose <damrose>
Severity: normal    
Priority: P5 CC: gohmann, gulden, klaeser, walkenhorst
Version: UCS 3.2   
Target Milestone: UCS 4.0-1-errata   
Hardware: Other   
OS: Linux   
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:

Description Dirk Wiesenthal univentionstaff 2014-08-04 12:06:32 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
Comment 1 Dirk Wiesenthal univentionstaff 2014-09-01 12:32:13 CEST
(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)
Comment 2 Dirk Wiesenthal univentionstaff 2014-09-01 12:32:29 CEST
*** Bug 33330 has been marked as a duplicate of this bug. ***
Comment 3 Dirk Wiesenthal univentionstaff 2014-10-13 18:27:09 CEST
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"
Comment 4 Alexander Kläser univentionstaff 2015-04-22 12:45:07 CEST
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
Comment 5 Alexander Kläser univentionstaff 2015-04-22 13:10:27 CEST
Package has been build, YAML file has been added.

r60069 | Bug #37771, Bug #35550, Bug #38293: added YAML entries
Comment 6 Erik Damrose univentionstaff 2015-04-27 12:43:38 CEST
OK: Messages are correctly localized
OK: yaml
Verified
Comment 7 Janek Walkenhorst univentionstaff 2015-04-30 12:32:33 CEST
<http://errata.univention.de/ucs/4.0/161.html>