[Bug 1052205] New: please provide yast2-country data as json
http://bugzilla.suse.com/show_bug.cgi?id=1052205 Bug ID: 1052205 Summary: please provide yast2-country data as json Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: lnussel@suse.com QA Contact: jsrain@suse.com CC: gmoro@suse.com Found By: --- Blocker: --- Unfortunately I cannot edit fate#323349 anymore so have to file it his way. Please a) provide the data from yast2-country in json format instead of ycp and b) put the data in a separate sub package (e.g yast2-country-data). That way Live images and especially JeOS can use it from shell without yast e.g. via the jq program. AFAICT json is part of stdlib so using that one to parse the files should add no extra dependencies to YaST. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1052205
http://bugzilla.suse.com/show_bug.cgi?id=1052205#c1
Ladislav Slezák
http://bugzilla.suse.com/show_bug.cgi?id=1052205
http://bugzilla.suse.com/show_bug.cgi?id=1052205#c2
Ludwig Nussel
http://bugzilla.suse.com/show_bug.cgi?id=1052205
http://bugzilla.suse.com/show_bug.cgi?id=1052205#c3
--- Comment #3 from Fabian Vogt
http://bugzilla.suse.com/show_bug.cgi?id=1052205
http://bugzilla.suse.com/show_bug.cgi?id=1052205#c4
Ludwig Nussel
http://bugzilla.suse.com/show_bug.cgi?id=1052205
Ludwig Nussel
http://bugzilla.suse.com/show_bug.cgi?id=1052205
http://bugzilla.suse.com/show_bug.cgi?id=1052205#c5
Ladislav Slezák
I'd suggest to move the calls to gettext to the actual code instead.
The problem is not calling the gettext, the problem is to mark the texts for translation so they are extracted into the POT file and translated by translators. That already works for YCP, Ruby and XML (we use a glade compatibility hack).
If the lack of comments is an issue, there could be a comment hash entry for the entries that need it.
Yes, that's the usual workaround for the JSON format. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1052205
http://bugzilla.suse.com/show_bug.cgi?id=1052205#c6
--- Comment #6 from Ladislav Slezák
I didn't know about https://build.opensuse.org/package/view_file/openSUSE:Factory/kiwi-config- openSUSE/getcountrydata.rb
Oh, so no need to change anything in YaST?
So we just need to package that in a way reusable by Lives and JeOS. Will to Alex to to take that for future JeOS so yast can keep those shiny ycp maps.
BTW in the long term we want to get rid of the YCP format anyway. I already converted some YaST data files to YAML. The other files are blocked by translations, we haven't decided how to solve that yet. And because these are just static data files changed rarely it has a low priority for us... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1052205
http://bugzilla.suse.com/show_bug.cgi?id=1052205#c7
--- Comment #7 from Ludwig Nussel
(In reply to Ludwig Nussel from comment #4)
I didn't know about https://build.opensuse.org/package/view_file/openSUSE:Factory/kiwi-config- openSUSE/getcountrydata.rb
Oh, so no need to change anything in YaST?
Not immediately at least. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com