Bugzilla – Bug 1218729
Pattern groups are not translated
Last modified: 2024-01-31 10:02:25 UTC
I noticed that the pattern groups in Agama are not translated, although the pattern names and the descriptions are. See the screencast in https://github.com/openSUSE/agama/pull/991. YaST has the same issue, I can see the translated pattern names and descriptions, but the pattern categories are not translated. (Go to View -> Patterns) I verified that the groups are correctly translated in the *-susedata.cs.xml.gz repository metadata file. For example it contains <pattern-category lang="cs">Grafická rozhraní</pattern-category> for the "patterns-kde-kde_plasma" package. That file also contains the translated pattern names and descriptions which are used correctly. So it seems that just the pattern groups are not read properly. I can reproduce the problem in YaST also in Leap 15.4 and 15.5, so it seems that also some older products are affected. (Very likely including SLE15, I haven't checked that.)
Created attachment 871783 [details] Screenshot: yast2 sw_single in de_DE.UTF-8 It's the same in YaST: The UI is translated, package summaries and patterns are translated, only pattern categories are not. This is from Leap 15.5 with the latest YaST:Head.
(In reply to Ladislav Slezák from comment #0) > I verified that the groups are correctly translated in the > *-susedata.cs.xml.gz repository metadata file. For example it contains > <pattern-category lang="cs">Grafická rozhraní</pattern-category> for the > "patterns-kde-kde_plasma" package. Hard to judge for me. The libsolv parser responds to > { STATE_SOLVABLE, "category", STATE_CATEGORY, 1 } > i.e <category> @mls: I don't know what tag was negotiated between the metadata generator and libsolv's parser.
"patten-category" is actually the name of the *provides* in the pattern package, it was always <category> in the xml.
It's coming from the following commit: https://github.com/openSUSE/instsource-susedata/commit/347a06b3a21f13d7f0b1f21e4d40b11dfd152389 FATE/JIRA: https://jira.suse.com/browse/SLE-3047 Didn't anybody try this at all?
@Ludwig, would you take and fix this?
I'm no longer in that business
I opened https://github.com/openSUSE/instsource-susedata/issues/4 for this.