[Bug 954505] New: yast ruby msg extractor (xgettext) does not support format marker
http://bugzilla.suse.com/show_bug.cgi?id=954505 Bug ID: 954505 Summary: yast ruby msg extractor (xgettext) does not support format marker Classification: openSUSE Product: openSUSE Tumbleweed Version: 2015* Hardware: x86-64 OS: openSUSE 42.1 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: ke@suse.com QA Contact: jsrain@suse.com CC: 5yrnyk@myway.com, ancor@suse.com, dimstar@opensuse.org, ke@suse.com Depends on: 954357 Found By: --- Blocker: --- +++ This bug was initially created as a clone of Bug #954357 +++ When installing Leap 42.1 (or 13.2) with Ukrainian localization the page of user account setup is skipped with error: Details: malformed format string - %*[0-9] Caller: /usr/lib64/ruby/gems/2.1.0/gems/fast_gettext-0.9.2/lib/fast_gettext/vendor/string.rb:70:in `%' Other tried localizations show user account page correctly. y2logs is attached ============================================================================= Karl Eichwalder 2015-11-10 17:36:40 CET (In reply to Ancor Gonzalez Sosa from comment #5)
Silly me! I was looking at Estonian .po file (et) and checking the effect in Greek language (el). But turns out el!=et. :-)
In Estonian it's not broken just because the translation is marked as fuzzy (so not included in the .mo file)... a missing translation that is not that obvious when you are staring at a Greek screen and you see no English text. :-D
So, in the end, it's a bug in the uk/users.po, as expected from the very beginning. So reassigning to translations.
Ok, thanks for debugging. It would work better, if the ruby xgettext extractor would add formatting markers as it does for other languages such as c or even ycp: #, c-format #, ycp-format I'm not sure whether that's a general issue or whether our yast xgettext extractor just does not know about this. Without such markers we are not (easily) able to validate the translations -- we usually do this with msgfmt. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=954505
Karl Eichwalder
http://bugzilla.suse.com/show_bug.cgi?id=954505 Bug 954505 depends on bug 954357, which changed state. Bug 954357 Summary: Error when installing with Ukrainian localization http://bugzilla.suse.com/show_bug.cgi?id=954357 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=954505 Bug 954505 depends on bug 954357, which changed state. Bug 954357 Summary: Error when installing with Ukrainian localization http://bugzilla.suse.com/show_bug.cgi?id=954357 What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=954505
http://bugzilla.suse.com/show_bug.cgi?id=954505#c1
Ancor Gonzalez Sosa
http://bugzilla.suse.com/show_bug.cgi?id=954505 Bug 954505 depends on bug 954357, which changed state. Bug 954357 Summary: Error when installing with Ukrainian localization http://bugzilla.suse.com/show_bug.cgi?id=954357 What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=954505
Karl Eichwalder
http://bugzilla.suse.com/show_bug.cgi?id=954505
Karl Eichwalder
http://bugzilla.suse.com/show_bug.cgi?id=954505
http://bugzilla.suse.com/show_bug.cgi?id=954505#c2
Ludwig Nussel
http://bugzilla.suse.com/show_bug.cgi?id=954505
Karl Eichwalder
http://bugzilla.suse.com/show_bug.cgi?id=954505
http://bugzilla.suse.com/show_bug.cgi?id=954505#c4
Luciano Santos
http://bugzilla.suse.com/show_bug.cgi?id=954505
http://bugzilla.suse.com/show_bug.cgi?id=954505#c5
--- Comment #5 from Luciano Santos
A user have reported that when trying to install TW 20180222 with German locale (de_DE.UTF-8) he got this same error in Keyboard Settings (required for vconsole): malformed format string - % ... /usr/lib64/ruby/gems/2.5.0/gems/fast_gettext-1.6.0/lib/fast_gettext/vendor/ string.rb:70:in `%'
Sorry, I gave a wrong information. The system was installed but failed at startup when vconsole was being set. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=954505
http://bugzilla.suse.com/show_bug.cgi?id=954505#c6
--- Comment #6 from Ancor Gonzalez Sosa
A user have reported that when trying to install TW 20180222 with German locale (de_DE.UTF-8) he got this same error in Keyboard Settings (required for vconsole): malformed format string - % ... /usr/lib64/ruby/gems/2.5.0/gems/fast_gettext-1.6.0/lib/fast_gettext/vendor/ string.rb:70:in `%'
Which typically means an error in the translated string (German in this case). The translator didn't respect the number and shape of all the placeholders. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=954505
http://bugzilla.suse.com/show_bug.cgi?id=954505#c7
--- Comment #7 from Karl Eichwalder
Which typically means an error in the translated string (German in this case). The translator didn't respect the number and shape of all the placeholders.
As long as nobody take the time to work with gettext upstream maintainers to add proper ruby support, this will happen again and again. Also see Ludwig's #c2. (In the past I did this for ycp.) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=954505
http://bugzilla.suse.com/show_bug.cgi?id=954505#c22
Tomáš Chvátal
http://bugzilla.suse.com/show_bug.cgi?id=954505
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=954505
http://bugzilla.suse.com/show_bug.cgi?id=954505#c23
--- Comment #23 from Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=954505
Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=954505
Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=954505
http://bugzilla.suse.com/show_bug.cgi?id=954505#c24
--- Comment #24 from Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=954505
http://bugzilla.suse.com/show_bug.cgi?id=954505#c25
Stefan Hundhammer
http://bugzilla.suse.com/show_bug.cgi?id=954505
Shane Wims
participants (1)
-
bugzilla_noreply@novell.com