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/pohttps://github.com/amit9838/mousamAmit Chaudhary
+
+ Amit Chaudhary
+ pointingtouch
@@ -56,7 +59,7 @@
-
+
What's New
Dynamic background is back again, app background changes based on current weather condition.
@@ -78,7 +81,7 @@
-
+
Bug fixes
Bug fixes related to build
@@ -91,7 +94,7 @@
-
+
Bug fixes
Fix bug where some locations dosen't provide valid co-ordinates
@@ -100,7 +103,7 @@
-
+
What's New
Introducing a new design with an entirely new app experience.
@@ -124,7 +127,7 @@
-
+
Adds air-pollution info
Adds Snowfall summary
@@ -136,7 +139,7 @@
-
+
Adds sunset/sunrise info
Add and remove city more quickly
@@ -147,7 +150,7 @@
-
+
Adds 5 days forecast
Adds rain summary (rain quantity)
@@ -158,7 +161,7 @@
-
+
Show today and tomorrow forecasts
Option:Use Imerial, Metric systems
@@ -173,7 +176,7 @@
-
+
Use full country name.
Fix units.
@@ -183,7 +186,7 @@
-
+
What's New
Option:Use Custom api-key.
@@ -196,7 +199,7 @@
-
+
New features and updates
Use dynamic gradient backgrounds based on current weather.
Displays real-time temperature, humidity, wind speed, UV index, pressure and more
-
Utilizes graphical representations, such as temperature , precipitation graphs and wind-speed with
- direction to provide an hourly forecast for the next 24 hours