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

news-to-metainfo: ignore description #350

Closed
fedelibre opened this issue Sep 7, 2021 · 3 comments
Closed

news-to-metainfo: ignore description #350

fedelibre opened this issue Sep 7, 2021 · 3 comments

Comments

@fedelibre
Copy link

This is a feature request: what about adding a --no-description switch so that the script will generate only a <release> tag (with version, date, type) and ignore the actual release notes?

This would be useful for those projects that want to keep the metainfo small and simple. No description in metainfo means also less work for translators.

@ximion
Copy link
Owner

ximion commented Sep 11, 2021

I'm against that, as it makes release metadata less useful and user-friendly.
However, I think this subcommand could grow a flag --translate=all|none|last to mark all, none or just the last few releases as translatable.
Projects which want a simple metainfo file can run appstreamcli during the build process, like AppStream itself does ;-)

@fedelibre
Copy link
Author

I guess it's here.

Ok, it sounds good. Feel free to change the title of this issue.

@ximion ximion closed this as completed in 1a1ef40 Oct 6, 2021
@ximion
Copy link
Owner

ximion commented Oct 6, 2021

You can now run appstreamcli like this:
appstreamcli news-to-metainfo ./NEWS --limit=10 --translatable-limit=3
This will limit the overall list of added releases to 10, and mark only the latest 3 as translatable. The annoying thing is that this may actually cause translations of older entries to be removed from your translation templates, and therefore already translated past-entries being removed too, unless their data was already merged into the XML.
So, to get the full advantage of this, some more clever tooling around it is probably required.

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