Bug 1218729

Summary: Pattern groups are not translated
Product: [openSUSE] openSUSE Tumbleweed Reporter: Ladislav Slezák <lslezak>
Component: libzyppAssignee: Michael Schröder <mls>
Status: RESOLVED UPSTREAM QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: lnussel, mls
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot: yast2 sw_single in de_DE.UTF-8

Description Ladislav Slezák 2024-01-11 14:44:14 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.)
Comment 1 Stefan Hundhammer 2024-01-11 15:12:30 UTC
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.
Comment 2 Michael Andres 2024-01-11 21:31:59 UTC
(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.
Comment 3 Michael Schröder 2024-01-17 15:22:46 UTC
"patten-category" is actually the name of the *provides* in the pattern package, it was always <category> in the xml.
Comment 4 Michael Schröder 2024-01-17 15:52:40 UTC
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?
Comment 5 Michael Andres 2024-01-30 11:56:41 UTC
@Ludwig, would you take and fix this?
Comment 6 Ludwig Nussel 2024-01-31 09:06:38 UTC
I'm no longer in that business
Comment 7 Michael Andres 2024-01-31 10:02:25 UTC
I opened https://github.com/openSUSE/instsource-susedata/issues/4 for this.