Coder Social home page Coder Social logo

Comments (4)

razzeee avatar razzeee commented on September 24, 2024 2

It's not the website, it's a libappstream bug I guess. The description in http://hub.flathub.org/repo/appstream/x86_64/appstream.xml.gz has no language tags anymore on the ul.

Can you raise an issue over at https://github.com/ximion/appstream/issues ?

from flathub.

bbhtt avatar bbhtt commented on September 24, 2024 1

The xml:lang is supppsed to be inside li not ul, probably that's the reason See https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines/#metainfo-translations

from flathub.

razzeee avatar razzeee commented on September 24, 2024

flathub-infra/website#2647 should take care of that

Edit: nevermind, that's not working correctly

from flathub.

JakeSmarter avatar JakeSmarter commented on September 24, 2024

Indeed, this is not a Flathub issue but an AppStream spec issue.

The core issue here is that the AppStream spec on this matter is incomplete or inconclusive at best, and breaking the XML spec at worst. Imho the latter is the case here because the XML spec says:

A special attribute named xml:lang may be inserted in documents to specify the language used in the contents and attribute values of any element in an XML document.
[…]
The language specified by xml:lang applies to the element where it is specified (including the values of its attributes), and to all elements in its content unless overridden with another instance of xml:lang.

This means that XML parsing apps have to a) implement xml:lang attribute inheritance on nested elements and b) give XML document authors freedom to choose the structure in which xml:lang attributes are inherited in the document. In other words, XML document authors are free to choose and may create completely different content structures for different languages. Please, note also that specs building on top of the XML spec must not preclude using the xml:lang attribute on any element because the xml namespace is always implicitly imported in all valid XML documents and the xml:lang attribute may be literally used on “any element in an XML document” (including a root element!). Hence, this issue affects all AppStream elements, and not just those colloquially called translatable, like name, summary, p, ul, ol, li, or keyword.

from flathub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.