Skip to content

Commit eb01063

Browse files
yakushabbMightyCreak
authored andcommitted
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
1 parent fb5423b commit eb01063

File tree

2 files changed

+17
-21
lines changed

2 files changed

+17
-21
lines changed

data/io.github.mightycreak.Diffuse.appdata.xml.in

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@
1919
<project_license>GPL-2.0-or-later</project_license>
2020
<content_rating type="oars-1.1"/>
2121
<launchable type="desktop-id">io.github.mightycreak.Diffuse.desktop</launchable>
22+
<translation type="gettext">diffuse</translation>
2223
<url type="homepage">https://mightycreak.github.io/diffuse/</url>
2324
<url type="bugtracker">https://github.com/MightyCreak/diffuse/issues</url>
25+
<url type="vcs-browser">https://github.com/MightyCreak/diffuse</url>
26+
<url type="translate">https://github.com/MightyCreak/diffuse/blob/main/docs/translators.md</url>
2427

2528
<screenshots>
2629
<screenshot type="default">
@@ -33,13 +36,12 @@
3336
</screenshot>
3437
</screenshots>
3538

36-
<!-- Translators: no need to translate after this comment -->
37-
<developer_name>Romain Failliot</developer_name>
39+
<developer_name translatable="no">Romain Failliot</developer_name>
3840
<update_contact>[email protected]</update_contact>
3941

4042
<releases>
4143
<release version="0.8.2" date="2023-04-16">
42-
<description>
44+
<description translatable="no">
4345
<p>Use more modern, symbolic icons, add Dutch translation, and a couple of small fixes.</p>
4446
<p>Added:</p>
4547
<ul>
@@ -62,7 +64,7 @@
6264
</description>
6365
</release>
6466
<release version="0.8.1" date="2023-04-07">
65-
<description>
67+
<description translatable="no">
6668
<p>
6769
Fix for the shortcuts that weren't working anymore due to migration to Gtk.Application.
6870
</p>
@@ -82,7 +84,7 @@
8284
</description>
8385
</release>
8486
<release version="0.8.0" date="2023-04-03">
85-
<description>
87+
<description translatable="no">
8688
<p>
8789
Update to GNOME 44, improved GTK 3 support, initial support for Rust, added Turkish and
8890
Georgian translations, and a couple of fixes.
@@ -119,7 +121,7 @@
119121
</description>
120122
</release>
121123
<release version="0.7.7" date="2022-10-23">
122-
<description>
124+
<description translatable="no">
123125
<p>
124126
Update translations.
125127
</p>
@@ -132,7 +134,7 @@
132134
</description>
133135
</release>
134136
<release version="0.7.6" date="2022-10-23">
135-
<description>
137+
<description translatable="no">
136138
<p>
137139
Add port to Mac OS.
138140
</p>
@@ -153,7 +155,7 @@
153155
</description>
154156
</release>
155157
<release version="0.7.5" date="2022-04-15">
156-
<description>
158+
<description translatable="no">
157159
<p>
158160
Crashfix and French translation.
159161
</p>
@@ -170,7 +172,7 @@
170172
</description>
171173
</release>
172174
<release version="0.7.4" date="2022-04-03">
173-
<description>
175+
<description translatable="no">
174176
<p>
175177
Mainly a maintenance release. It does increase the GNOME SDK's version.
176178
</p>
@@ -204,7 +206,7 @@
204206
</description>
205207
</release>
206208
<release version="0.7.3" date="2021-11-22">
207-
<description>
209+
<description translatable="no">
208210
<p>
209211
Patch release that introduces linters (flake8 and mypy).
210212
</p>
@@ -229,7 +231,7 @@
229231
</description>
230232
</release>
231233
<release version="0.7.2" date="2021-11-18">
232-
<description>
234+
<description translatable="no">
233235
<p>
234236
Patch release that fixes an error about APP_NAME and the Brazilian translation.
235237
</p>
@@ -257,7 +259,7 @@
257259
</description>
258260
</release>
259261
<release version="0.7.1" date="2021-11-17">
260-
<description>
262+
<description translatable="no">
261263
<p>
262264
Patch release to fix a bug when using the Flatpak package.
263265
</p>
@@ -271,7 +273,7 @@
271273
</description>
272274
</release>
273275
<release version="0.7.0" date="2021-11-16">
274-
<description>
276+
<description translatable="no">
275277
<p>
276278
With this release, the main end-user change is the new icon. The rest
277279
is mainly maintenance improvements with a much more standard folder
@@ -310,7 +312,7 @@
310312
</description>
311313
</release>
312314
<release version="0.6.0" date="2020-11-29">
313-
<description>
315+
<description translatable="no">
314316
<p>
315317
Mainly under the hood changes in this release, so nothing really
316318
visible to the users in this version. That said, I figured it was a
@@ -335,7 +337,7 @@
335337
</description>
336338
</release>
337339
<release version="0.5.0" date="2020-07-18">
338-
<description>
340+
<description translatable="no">
339341
<p>
340342
Here is the v0.5.0. Unintentionally, this release happens exactly 6
341343
years after the previous v0.4.8 release!

docs/translators.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ repo root:
1717
xgettext -w 84 -o po/diffuse.pot -f po/POTFILES
1818
```
1919

20-
Regenerating the POT file will add a bunch of new lines coming from
21-
`data/io.github.mightycreak.Diffuse.appdata.xml.in`. Not all the lines need to
22-
be translated in this file. In `diffuse.pot`, look for the comment
23-
`Translators: no need to translate after this comment`, and remove all the
24-
added lines for this file.
25-
2620
_Note:_ why 84 characters, you ask? because the usage text has to be 80-char
2721
wide, plus the beginning and ending `"` and the final `\n` (which is two
2822
characters).

0 commit comments

Comments
 (0)