appdata: Update appdata

- Add vcs-browser and translate URLs
- Add the translation tag
- Mark the developer name and release descriptions as untranslatable
- Use appstreamcli to validate appdata
- Remove redundant paragraph from the translation document
This commit is contained in:
Sabri Ünal 2024-01-07 02:48:26 +03:00 committed by Romain Failliot
parent fb5423b788
commit eb01063bfb
2 changed files with 17 additions and 21 deletions

View File

@ -19,8 +19,11 @@
<project_license>GPL-2.0-or-later</project_license> <project_license>GPL-2.0-or-later</project_license>
<content_rating type="oars-1.1"/> <content_rating type="oars-1.1"/>
<launchable type="desktop-id">io.github.mightycreak.Diffuse.desktop</launchable> <launchable type="desktop-id">io.github.mightycreak.Diffuse.desktop</launchable>
<translation type="gettext">diffuse</translation>
<url type="homepage">https://mightycreak.github.io/diffuse/</url> <url type="homepage">https://mightycreak.github.io/diffuse/</url>
<url type="bugtracker">https://github.com/MightyCreak/diffuse/issues</url> <url type="bugtracker">https://github.com/MightyCreak/diffuse/issues</url>
<url type="vcs-browser">https://github.com/MightyCreak/diffuse</url>
<url type="translate">https://github.com/MightyCreak/diffuse/blob/main/docs/translators.md</url>
<screenshots> <screenshots>
<screenshot type="default"> <screenshot type="default">
@ -33,13 +36,12 @@
</screenshot> </screenshot>
</screenshots> </screenshots>
<!-- Translators: no need to translate after this comment --> <developer_name translatable="no">Romain Failliot</developer_name>
<developer_name>Romain Failliot</developer_name>
<update_contact>romain@foolstep.com</update_contact> <update_contact>romain@foolstep.com</update_contact>
<releases> <releases>
<release version="0.8.2" date="2023-04-16"> <release version="0.8.2" date="2023-04-16">
<description> <description translatable="no">
<p>Use more modern, symbolic icons, add Dutch translation, and a couple of small fixes.</p> <p>Use more modern, symbolic icons, add Dutch translation, and a couple of small fixes.</p>
<p>Added:</p> <p>Added:</p>
<ul> <ul>
@ -62,7 +64,7 @@
</description> </description>
</release> </release>
<release version="0.8.1" date="2023-04-07"> <release version="0.8.1" date="2023-04-07">
<description> <description translatable="no">
<p> <p>
Fix for the shortcuts that weren't working anymore due to migration to Gtk.Application. Fix for the shortcuts that weren't working anymore due to migration to Gtk.Application.
</p> </p>
@ -82,7 +84,7 @@
</description> </description>
</release> </release>
<release version="0.8.0" date="2023-04-03"> <release version="0.8.0" date="2023-04-03">
<description> <description translatable="no">
<p> <p>
Update to GNOME 44, improved GTK 3 support, initial support for Rust, added Turkish and Update to GNOME 44, improved GTK 3 support, initial support for Rust, added Turkish and
Georgian translations, and a couple of fixes. Georgian translations, and a couple of fixes.
@ -119,7 +121,7 @@
</description> </description>
</release> </release>
<release version="0.7.7" date="2022-10-23"> <release version="0.7.7" date="2022-10-23">
<description> <description translatable="no">
<p> <p>
Update translations. Update translations.
</p> </p>
@ -132,7 +134,7 @@
</description> </description>
</release> </release>
<release version="0.7.6" date="2022-10-23"> <release version="0.7.6" date="2022-10-23">
<description> <description translatable="no">
<p> <p>
Add port to Mac OS. Add port to Mac OS.
</p> </p>
@ -153,7 +155,7 @@
</description> </description>
</release> </release>
<release version="0.7.5" date="2022-04-15"> <release version="0.7.5" date="2022-04-15">
<description> <description translatable="no">
<p> <p>
Crashfix and French translation. Crashfix and French translation.
</p> </p>
@ -170,7 +172,7 @@
</description> </description>
</release> </release>
<release version="0.7.4" date="2022-04-03"> <release version="0.7.4" date="2022-04-03">
<description> <description translatable="no">
<p> <p>
Mainly a maintenance release. It does increase the GNOME SDK's version. Mainly a maintenance release. It does increase the GNOME SDK's version.
</p> </p>
@ -204,7 +206,7 @@
</description> </description>
</release> </release>
<release version="0.7.3" date="2021-11-22"> <release version="0.7.3" date="2021-11-22">
<description> <description translatable="no">
<p> <p>
Patch release that introduces linters (flake8 and mypy). Patch release that introduces linters (flake8 and mypy).
</p> </p>
@ -229,7 +231,7 @@
</description> </description>
</release> </release>
<release version="0.7.2" date="2021-11-18"> <release version="0.7.2" date="2021-11-18">
<description> <description translatable="no">
<p> <p>
Patch release that fixes an error about APP_NAME and the Brazilian translation. Patch release that fixes an error about APP_NAME and the Brazilian translation.
</p> </p>
@ -257,7 +259,7 @@
</description> </description>
</release> </release>
<release version="0.7.1" date="2021-11-17"> <release version="0.7.1" date="2021-11-17">
<description> <description translatable="no">
<p> <p>
Patch release to fix a bug when using the Flatpak package. Patch release to fix a bug when using the Flatpak package.
</p> </p>
@ -271,7 +273,7 @@
</description> </description>
</release> </release>
<release version="0.7.0" date="2021-11-16"> <release version="0.7.0" date="2021-11-16">
<description> <description translatable="no">
<p> <p>
With this release, the main end-user change is the new icon. The rest With this release, the main end-user change is the new icon. The rest
is mainly maintenance improvements with a much more standard folder is mainly maintenance improvements with a much more standard folder
@ -310,7 +312,7 @@
</description> </description>
</release> </release>
<release version="0.6.0" date="2020-11-29"> <release version="0.6.0" date="2020-11-29">
<description> <description translatable="no">
<p> <p>
Mainly under the hood changes in this release, so nothing really Mainly under the hood changes in this release, so nothing really
visible to the users in this version. That said, I figured it was a visible to the users in this version. That said, I figured it was a
@ -335,7 +337,7 @@
</description> </description>
</release> </release>
<release version="0.5.0" date="2020-07-18"> <release version="0.5.0" date="2020-07-18">
<description> <description translatable="no">
<p> <p>
Here is the v0.5.0. Unintentionally, this release happens exactly 6 Here is the v0.5.0. Unintentionally, this release happens exactly 6
years after the previous v0.4.8 release! years after the previous v0.4.8 release!

View File

@ -17,12 +17,6 @@ repo root:
xgettext -w 84 -o po/diffuse.pot -f po/POTFILES xgettext -w 84 -o po/diffuse.pot -f po/POTFILES
``` ```
Regenerating the POT file will add a bunch of new lines coming from
`data/io.github.mightycreak.Diffuse.appdata.xml.in`. Not all the lines need to
be translated in this file. In `diffuse.pot`, look for the comment
`Translators: no need to translate after this comment`, and remove all the
added lines for this file.
_Note:_ why 84 characters, you ask? because the usage text has to be 80-char _Note:_ why 84 characters, you ask? because the usage text has to be 80-char
wide, plus the beginning and ending `"` and the final `\n` (which is two wide, plus the beginning and ending `"` and the final `\n` (which is two
characters). characters).