[gnome-software: 2/4] gs-app-translation-dialog: Use the CONTRIBUTE link if available
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 2/4] gs-app-translation-dialog: Use the CONTRIBUTE link if available
- Date: Wed, 27 Apr 2022 10:39:21 +0000 (UTC)
commit 26e0b1019e8bcdc7077798723c0c0d3bf991201a
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Mar 31 10:44:05 2022 +0100
gs-app-translation-dialog: Use the CONTRIBUTE link if available
If a `TRANSLATE` link isn’t available, try the new `CONTRIBUTE` link
when pointing the user to information about contributing a new
translation to an app.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Helps: #1702
src/gs-app-translation-dialog.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/gs-app-translation-dialog.c b/src/gs-app-translation-dialog.c
index 81f278666..81a8a44ab 100644
--- a/src/gs-app-translation-dialog.c
+++ b/src/gs-app-translation-dialog.c
@@ -95,6 +95,10 @@ get_url_for_app (GsApp *app)
/* Try the translate URL, or a fallback */
url = gs_app_get_url (app, AS_URL_KIND_TRANSLATE);
+#if AS_CHECK_VERSION(0, 15, 3)
+ if (url == NULL)
+ url = gs_app_get_url (app, AS_URL_KIND_CONTRIBUTE);
+#endif
if (url == NULL)
url = gs_app_get_url (app, AS_URL_KIND_BUGTRACKER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]