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

Appdata related changes #79

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

yakushabb
Copy link

@yakushabb yakushabb commented Mar 29, 2024

appdata: translate=no properties

It appears that the appstream project no longer supports translatable=no properties, and gettext extract the translatable=no marked strings as translatable.

I opened an issue to inform about the situation, but translatable=no properties are not accepted by developers. You can find the issue here: ximion/appstream#623

Please test your script or string extraction process before merging this PR.

In MetaInfo files, each individual paragraph of a description
(or enumerated entry) is translated individually, however,
you can only exclude the complete block from being translated
by adding translate="no" to the description element.

Source: https://freedesktop.org/software/appstream/docs/sect-Quickstart-Translation.html

appdata: Fix custom-key-duplicated error

Remove one of Purism::form_factor tag to pass appstreamcli validation.

appdata: Remove categories

Categories can be parsed from desktop files

If there’s a type="desktop-id" launchable, they are pulled from the desktop file and merged in the AppStream Catalog data. So defining them separately in the MetaInfo is not necessary.

More information: https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines/#categories-and-keywords

appdata: Add vcs-browser and translate URLs

Add vcs-browser and translate URLs to show source code and translation repositories.

appdata: Add translation tag

The <translation/> tag is an optional tag which can be added to specify the translation domain used for this software component. It may be used by the AppStream distro metadata generator to determine the translation status of the respective software (e.g. which languages the software is translated into and how complete the translations are).

https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-translation

It appears that the appstream project no longer supports
`translatable=no` properties, and gettext extract the
`translatable=no` marked strings as translatable.

I opened an issue to inform about the situation, but `translatable=no`
properties are not accepted by developers. You can find the issue
here: ximion/appstream#623

Also correct translatable usage.

**Please test your script or string extraction process
before merging this PR.**

> In MetaInfo files, each individual paragraph of a description
> (or enumerated entry) is translated individually, however,
> you can only exclude the complete block from being translated
> by adding `translate="no"` to the description element.

Source: https://freedesktop.org/software/appstream/docs/sect-Quickstart-Translation.html
Remove one of Purism::form_factor tag to pass appstreamcli validation.
Categories can be parsed from desktop files

> If there’s a type="desktop-id" launchable, they are pulled from the desktop file and merged in the AppStream Catalog data. So defining them separately in the MetaInfo is not necessary.

More information: https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines/#categories-and-keywords
Add vcs-browser and translate URLs to show source code and translation repositories.
> The `<translation/>` tag is an optional tag which can be added to specify the translation domain used for this software component. It may be used by the AppStream distro metadata generator to determine the translation status of the respective software (e.g. which languages the software is translated into and how complete the translations are).

https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-translation
@yakushabb yakushabb changed the title appdata: translate=no properties Appdata related changes Apr 6, 2024
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

Successfully merging this pull request may close these issues.

1 participant