[gnome-software] shell: Add details for a system upgrade error



commit edf672b3b4f3989be755bb155df33be07996c152
Author: Kalev Lember <klember redhat com>
Date:   Tue Jan 15 23:49:50 2019 +0100

    shell: Add details for a system upgrade error
    
    Make the "internet access was required" error look the same as the rest
    of the system upgrade errors, showing which distro version we were
    trying to upgrade to.

 src/gs-shell.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 1110b1bc..e1e2b8c4 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -1471,10 +1471,12 @@ gs_shell_show_event_upgrade (GsShell *shell, GsPluginEvent *event)
                }
                break;
        case GS_PLUGIN_ERROR_NO_NETWORK:
-               /* TRANSLATORS: failure text for the in-app notification */
-               g_string_append (str, _("Unable to upgrade: "
-                                       "internet access was required but "
-                                       "wasn’t available"));
+               /* TRANSLATORS: failure text for the in-app notification,
+                * where the %s is the distro name (e.g. "Fedora 25") */
+               g_string_append_printf (str, _("Unable to upgrade to %s: "
+                                              "internet access was required but "
+                                              "wasn’t available"),
+                                       str_app);
                buttons |= GS_SHELL_EVENT_BUTTON_NETWORK_SETTINGS;
                break;
        case GS_PLUGIN_ERROR_NO_SPACE:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]