Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gnome-software gnome-software
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 230
    • Issues 230
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gnome-softwaregnome-software
  • Issues
  • #2117
Closed
Open
Issue created Mar 12, 2023 by JakobDev@JakobDev

Translated Screenshots are ignored

According to the AppStream documentation, I should be able to provide translated screenshots using the xml:lang attribute. I have the following example file:

<?xml version='1.0' encoding='utf-8'?>
<component type="desktop">
  <id>org.example.App</id>
  <name>Test</name>
  <summary>Test</summary>
  <screenshots>
    <screenshot type="default">
      <image type="source">https://upload.wikimedia.org/wikipedia/commons/c/ce/PNG_demo_Banana.png</image>
      <image type="source" xml:lang="de">https://upload.wikimedia.org/wikipedia/commons/3/39/PNG_demo_heatmap_Banana.png</image>
    </screenshot>
  </screenshots>
  <content_rating type="oars-1.1"/>
</component>

This is a little examples which contains just 2 images from Wikipedia for testing reasons.

If I view it with:

gnome-software --show-metainfo=org.example.App.metainfo.xml

As I have A German System, I see the second Image.

Now I try to view it in English:

LC_ALL=C gnome-software --show-metainfo=org.example.App.metainfo.xml

The User interface of Gnome Software is now in English, but it still shows the second Image, which is marked as the German translation.

OS: Manjaro

This was first reported on the AppStream Repo

Assignee
Assign to
Time tracking