Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url element and lang attribute #462

Closed
van-de-bugger opened this issue Feb 2, 2023 · 1 comment
Closed

url element and lang attribute #462

van-de-bugger opened this issue Feb 2, 2023 · 1 comment

Comments

@van-de-bugger
Copy link

van-de-bugger commented Feb 2, 2023

Is lang attribute allowed for url element?

For example if a project have localized homepage (or help page):

    <url type="homepage">http://example.org/en/home.html</url>
    <url type="homepage" lang="es">http://example.org/es/home.html</url>
    <url type="help">http://example.org/en/home.html</url>
    <url type="help" lang="es">http://example.org/es/home.html</url>

In such a case, appstreamcli 0.15.5 issues warnings:

W: example:74: url-redefined homepage
W: example:76: url-redefined help

Using xml:lang instead of plain lang does not help to avoid warnings. What is wrong with localized homapages, help, and other urls (donate, faq, bugtracker, etc)?

@ximion
Copy link
Owner

ximion commented Feb 2, 2023

Is lang attribute allowed for url element?

No. If it were, the specification would mention it.
We expect websites to just auto-redirect to localized pages based on the web browser locale.

@ximion ximion closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants