[gnome-software/881-eos-updater-plugin-allow-other-os-names] Apply 2 suggestion(s) to 1 file(s)
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/881-eos-updater-plugin-allow-other-os-names] Apply 2 suggestion(s) to 1 file(s)
- Date: Mon, 14 Mar 2022 12:57:16 +0000 (UTC)
commit 2657a4fca78a8ffa07f238e60e9eab3671139050
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon Mar 14 12:57:15 2022 +0000
Apply 2 suggestion(s) to 1 file(s)
plugins/eos-updater/gs-plugin-eos-updater.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/plugins/eos-updater/gs-plugin-eos-updater.c b/plugins/eos-updater/gs-plugin-eos-updater.c
index e323247f3..c41b04262 100644
--- a/plugins/eos-updater/gs-plugin-eos-updater.c
+++ b/plugins/eos-updater/gs-plugin-eos-updater.c
@@ -605,6 +605,7 @@ proxy_new_cb (GObject *source_object,
g_warning ("Failed to get OS release information: %s", local_error->message);
/* Just a fallback, do not localize */
os_name = "Endless OS";
+ g_clear_error (&local_error);
} else {
os_name = gs_os_release_get_name (os_release);
}
@@ -624,7 +625,7 @@ proxy_new_cb (GObject *source_object,
if (summary == NULL || *summary == '\0') {
g_clear_pointer (&summary, g_free);
/* Translators: The '%s' is replaced with the OS name, like "Endless OS" */
- summary = g_strdup_printf ("%s update with new features and fixes.", os_name);
+ summary = g_strdup_printf (_("%s update with new features and fixes."), os_name);
}
/* create the OS upgrade */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]