Bug 381415

Summary: Wrong language settign per default in ncurses frontend
Product: [openSUSE] openSUSE 11.0 Reporter: Felix-Nicolai Müller <fnmueller>
Component: InstallationAssignee: Jiří Suchomel <jsuchome>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Minor    
Priority: P5 - None CC: captain.magnus, fnmueller, jsrain, locilka, mmeeks
Version: Beta 2   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot of error
As requested yast2 logs
My y2log
patch for /usr/share/YaST2/modules/Language.ycp

Description Felix-Nicolai Müller 2008-04-18 16:48:46 UTC
Created attachment 209022 [details]
Screenshot of error

Using the B1 KDE-live-cd ncurses frontent (yast2 live-installer) produces wrong language setting "Afrikaans" instead of "English" as default setting.
Comment 1 Lukas Ocilka 2008-04-23 11:50:07 UTC
YaST logs, please.

BTW:
  How exactly and why do you start `yast2 live-installer`?
  On a running system?
Comment 2 Stephan Kulow 2008-05-01 06:37:42 UTC
*** Bug 385490 has been marked as a duplicate of this bug. ***
Comment 3 Felix-Nicolai Müller 2008-05-03 19:41:34 UTC
Created attachment 212117 [details]
As requested yast2 logs

Why:
Because it's wise to run the installer in ncurses mode when e.g having a low mem system. Personaly, I just run it to test it ^^

How:
Boot from CD into KDE4. Change to tty1. Login as root. Issue init 3. Issue yast2 live-installer
Comment 4 Lukas Ocilka 2008-05-05 13:40:57 UTC
Still unable to test it
Comment 5 Felix-Nicolai Müller 2008-05-05 14:40:33 UTC
Why? Do you need any more input?
Comment 6 Lukas Ocilka 2008-05-06 13:50:55 UTC
Hmm, finally reproduced.
Comment 7 Lukas Ocilka 2008-05-06 13:58:05 UTC
Created attachment 212715 [details]
My y2log
Comment 8 Lukas Ocilka 2008-05-06 14:03:47 UTC
Language.ycp:523 content LANGUAGE nil
Linuxrc.ycp:26 Reading install.inf, but file doesn't exist!!!
Language.ycp:526 install_inf Locale nil
Language.ycp:543 Pkg Builtin called: GetTextLocale
Language.ycp:544 setting lang to default language: POSIX
Language.ycp:347 original language: en_US; setting to lang:POSIX
Language.ycp:336 Using yast2-trans-en_US.rpm for POSIX
ShellCommand.cc(shellcommand):78 sh: extend: command not found

1.) Language should not use InstExtensionImage.ycp during the live-installation
2.) locale returns 'POSIX' for all but LC_CTYPE which is 'en_US.UTF-8'
    Language::language returns POSIX (?)
    That leads into the 'first Language selected (Afrikaans)'
Comment 9 Jiří Suchomel 2008-05-07 07:02:02 UTC
Created attachment 212953 [details]
patch for /usr/share/YaST2/modules/Language.ycp

Hm, Language.ycp should check for Mode::live_installation, than it works.

But the installation steps are not translated before moving from the first dialog, this should be handled by the caller of inst_complex_welcome, just like during installation. Lukas?
Comment 10 Lukas Ocilka 2008-05-07 07:30:02 UTC
Language.ycp should not call 'extend' during Mode::live_installation but it could still switch the current language. Two different things...
Comment 11 Jiří Suchomel 2008-05-07 07:34:12 UTC
(In reply to comment #10 from Lukas Ocilka)
> Language.ycp should not call 'extend' during Mode::live_installation but it
> could still switch the current language. Two different things...

Sure. But this is not related to translating of wizard steps.

Comment 12 Jiří Suchomel 2008-05-07 08:54:14 UTC
Please check the wizard retranslation. Language.ycp with the patch above correctly changes the language.
Comment 13 Jiří Suchomel 2008-05-07 10:36:34 UTC
Patch applied to yast2-country-2.16.22. 

The wizard should be done either by some installation workflow (locilka) or live-installer (jsrain)
Comment 14 Lukas Ocilka 2008-05-07 12:29:22 UTC
Live CD contains only limited set of translations.
The reported problem seems to be fixed.
Comment 15 Lukas Ocilka 2008-05-07 12:29:45 UTC
^
Comment 16 Stephan Kulow 2008-05-08 14:19:59 UTC
*** Bug 388232 has been marked as a duplicate of this bug. ***