Bug 35550 - Setup progress not correctly localized
Setup progress not correctly localized
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: System setup
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 4.0-1-errata
Assigned To: Alexander Kläser
Erik Damrose
:
: 33330 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-04 12:06 CEST by Dirk Wiesenthal
Modified: 2015-04-30 12:32 CEST (History)
4 users (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

Note You need to log in before you can comment on or make changes to this bug.
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>