Univention Bugzilla – Full Text Bug Listing |
Summary: | Setup progress not correctly localized | ||
---|---|---|---|
Product: | UCS | Reporter: | Dirk Wiesenthal <wiesenthal> |
Component: | System setup | Assignee: | 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
2014-08-04 12:06:32 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) *** 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 |