From 01d3bf64a5e3511ee8218bb0aab817b736d21e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= <161761531+yakushabb@users.noreply.github.com> Date: Mon, 1 Apr 2024 17:26:28 +0300 Subject: [PATCH 1/6] Translation related patches (#108) * 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: `https://github.com/ximion/appstream/issues/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: Add developer ID Flathub requires a developer tag and developer ID. > A developer tag with a name child tag must be present. Only one developer tag is allowed and the name tag also must be present only once in untranslated form. ``` Developer name ``` Source: https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines/#name-summary-and-developer-name * i18n: Use C_ alias for pgettext That way it's easy to catch a translatable string. --- data/io.github.amit9838.mousam.appdata.xml.in | 25 ++++++++++-------- src/frontendForecast.py | 2 +- src/frontendHourlyDetails.py | 6 ++--- src/mousam.py | 8 +++--- src/weatherData.py | 26 +++++++++---------- update-pot | 2 +- 6 files changed, 36 insertions(+), 33 deletions(-) diff --git a/data/io.github.amit9838.mousam.appdata.xml.in b/data/io.github.amit9838.mousam.appdata.xml.in index c13007a..9f08f07 100644 --- a/data/io.github.amit9838.mousam.appdata.xml.in +++ b/data/io.github.amit9838.mousam.appdata.xml.in @@ -43,6 +43,9 @@ https://github.com/amit9838/mousam/tree/master/po https://github.com/amit9838/mousam Amit Chaudhary + + Amit Chaudhary + pointing touch @@ -56,7 +59,7 @@ - +

What's New