[Bug 386298] New: Automatically set time zone according to language/ keyboard layout
https://bugzilla.novell.com/show_bug.cgi?id=386298 Summary: Automatically set time zone according to language/keyboard layout Product: openSUSE 11.0 Version: Beta 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: cgoncalves@opensuse.org QAContact: jsrain@novell.com Found By: --- Time zone is not set automatically according to the language and/or keyboard layout set by user. Eg. if you choose Portuguese language then time zone settings should be set on-the-fly to Portugal time zone. Not really sure if this is a bug or a (missing)"feature" though... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386298
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=386298
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c1
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=386298
User sh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c2
--- Comment #2 from Stefan Hundhammer
https://bugzilla.novell.com/show_bug.cgi?id=386298
User cgoncalves@opensuse.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c3
--- Comment #3 from Carlos Gonçalves
Time zone should be set according to the language. Please attach y2logs.
I'm currently far from my test desktop machine. I'll attach them later. (In reply to comment #2 from Stefan Hundhammer)
I am not sure since we have Portugese and Brazilian Portugese, but Portugese might be handled as one of those cases of ambiguous language / timezone pairs (others being US English - 4 time zones; Spanish - Europe and 3 (4?) time zones in Latin America; etc.).
Please do not confuse Portugal with Brazil, where these two countries have two different keyboard layouts and even different localization teams. Thus Portuguese keyboard layout should refer to Portugal, and Brazilian Portuguese keyboard layout to Brazil. JFYI, Portugal has two time zones - Lisbon (GMT) and Azores (GMT-1), but in this case Lisbon time zone should be set by default. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386298
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c4
--- Comment #4 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=386298
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c5
Jiří Suchomel
But there's another problem, installation is not translated because wrong language extension is loaded....
YaST tries to load yast2-trans-pt_PT.rpm, which does not exist. IMHO it should: in other cases where there's same language code but different country, translation packages reflect the full locale name: yast2-trans-en_GB yast2-trans-en_US yast2-trans-zh_CN yast2-trans-zh_TW But: yast2-trans-pt yast2-trans-pt_BR Karl, this inconsistency should be changed, but I don't know if renaming packages is possible now in beta phase. If yes, I'd prefer this way (but we must ensure the original name is not required in other parts of system). If renaming yast2-trans-pt to yast2-trans-pt_PT is not possible now, maybe there could be a symlink in the instsys? Would the extend command work, Steffen? (Last option is check explicitly for pt_PT in yast code and load correct rpm) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386298
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c7
--- Comment #7 from Jiří Suchomel
maybe there could be a symlink in the instsys? Would the extend command work, Steffen?
Yes, this works for me: installation in Portuguese and time zone is correctly set (but time zone worked even before). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386298
User ke@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c8
Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=386298
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c9
Jiří Suchomel
Renaming is not an option. If you do not find pt_PT, you must fall back to pt. That's how gettext works.
Karl, the package should definitely be renamed after 11.0, see the inconsistency in comment 5. Steffen, please add current yast2-trans-pt.rpm to media + symlink called yast2-trans-pt_PT.rpm. NEEDINFO is for reporter to confirm the problems with time zone. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386298
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c10
--- Comment #10 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=386298
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c11
--- Comment #11 from Jiří Suchomel
The list of trans packages is autogenerated (from yast2-trans-allpacks). So yast, too, knows in advance which packages exist and can figure out that trans-pt_PT does not.
yast2-trans-allpacks is completely unrelated to the running YaST.
How do you handle Czech, for example? There's only trans-cs (and not cs_CZ, too).
Steffen, please read comment 5. YaST has this algorithm: "for each locale, take yast2-trans-[language-code].rpm. (e.g. yast2-trans-cs, yast2-trans-de). If for given locale there exist more country codes (and these are only en, pt, zh), take yast2-trans-[locale_code].rpm. (e.g. yast2-trans-en_US)" This works for every language except pt, because yast2-trans-pt, unlike en and zh doesn't use the full locale in the package name although there are more country codes for it.
If you really must, use trial and error to fetch a suitable trans package; but I will not symlink all possible long locale names to the short ones.
I'm asking you for one symlink to the package that has IMHO wrong name.
Renaming the packages is not a good idea, because, e.g., de is _not_ the same as de_DE but a fallback for all de_*.
Again, I call for renaming only yast2-trans-pt to fit the schema used by other package names. I hope it is clearer now. If you still refuse to create symlink, I could add a workaround to YaST. But do not forget to include yast2-trans-pt.rpm, currently it is not there. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386298
User ke@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c13
--- Comment #13 from Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=386298
User cgoncalves@opensuse.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c18
Carlos Gonçalves
https://bugzilla.novell.com/show_bug.cgi?id=386298
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c19
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=386298
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c20
--- Comment #20 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=386298
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c21
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=386298
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386298#c22
--- Comment #22 from Jiří Suchomel
Please check http://download.opensuse.org/repositories/home:/jsuchome/openSUSE_Factory/no...
Ah, not it should be (but currently not ready there) http://download.opensuse.org/repositories/home:/jsuchome/openSUSE_Factory/i5... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com