[gnome-software/wip/gnome-3-20-fedora: 3/3] Show a better error message when downloading a distro upgrade fails



commit 319434b670af0f45c3a5e6507392a555f4baa67a
Author: Kalev Lember <klember redhat com>
Date:   Tue Jul 12 19:13:50 2016 +0200

    Show a better error message when downloading a distro upgrade fails
    
    This is a backport of commits e07c324 and 0c271ef together with
    translation updates.

 po/ca.po       |    6 ++++++
 po/da.po       |    6 ++++++
 po/es.po       |    6 ++++++
 po/fur.po      |    6 ++++++
 po/gd.po       |    6 ++++++
 po/hu.po       |    6 ++++++
 po/kk.po       |    6 ++++++
 po/lt.po       |    7 +++++++
 po/oc.po       |    6 ++++++
 po/pa.po       |    7 +++++++
 po/pt.po       |    7 +++++++
 po/pt_BR.po    |    7 +++++++
 po/sk.po       |    6 ++++++
 po/tr.po       |    6 ++++++
 po/zh_TW.po    |    6 ++++++
 src/gs-utils.c |   10 +++++++++-
 16 files changed, 103 insertions(+), 1 deletions(-)
---
diff --git a/po/ca.po b/po/ca.po
index 22c4d36..25b433d 100644
--- a/po/ca.po
+++ b/po/ca.po
@@ -2875,3 +2875,9 @@ msgstr "Extensions del Shell"
 #~ msgid_plural "%i applications and %i add-ons installed"
 #~ msgstr[0] "S'ha instal·lat %i aplicació i %i connector"
 #~ msgstr[1] "S'ha instal·lat %i aplicacions i %i connectors"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:185
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Ha fallat l'actualització de %s."
diff --git a/po/da.po b/po/da.po
index 1b03a4c..14c80ea 100644
--- a/po/da.po
+++ b/po/da.po
@@ -3002,3 +3002,9 @@ msgstr "Lokalisering"
 
 #~ msgid "Requires restart"
 #~ msgstr "Kræver genstart"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-utils.c:185
+#, fuzzy, c-format
+msgid "Upgrade to %s failed."
+msgstr "Fjernelse af %s mislykkedes."
diff --git a/po/es.po b/po/es.po
index eb6cf5a..47a210f 100644
--- a/po/es.po
+++ b/po/es.po
@@ -3192,3 +3192,9 @@ msgstr "Localización"
 
 #~ msgid "OS Update"
 #~ msgstr "Actualización del SO"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Falló la actualización a %s."
diff --git a/po/fur.po b/po/fur.po
index 859dc1e..df8134f 100644
--- a/po/fur.po
+++ b/po/fur.po
@@ -2836,3 +2836,9 @@ msgstr "Estensions di Shell"
 msgctxt "Menu subcategory of Add-ons"
 msgid "Localization"
 msgstr "Localizazion"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Avanzament a %s falît."
diff --git a/po/gd.po b/po/gd.po
index d85db66..ea18168 100644
--- a/po/gd.po
+++ b/po/gd.po
@@ -2973,3 +2973,9 @@ msgstr "Ionadaileadh"
 
 #~ msgid "Ubuntu Snappy Store"
 #~ msgstr "Bùth Ubuntu Snappy"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:185
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Cha deach leinn ùrachadh gu %s."
diff --git a/po/hu.po b/po/hu.po
index a8c5638..a9d49af 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -3055,3 +3055,9 @@ msgstr "Lokalizáció"
 
 #~ msgid "Requires restart"
 #~ msgstr "Újraindítást igényel"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-utils.c:186
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Frissítés erre: %s sikertelen."
diff --git a/po/kk.po b/po/kk.po
index bb07bdf..6a3e220 100644
--- a/po/kk.po
+++ b/po/kk.po
@@ -2843,3 +2843,9 @@ msgstr "Локализация"
 #~ msgid "%i application and %i add-ons installed"
 #~ msgid_plural "%i applications and %i add-ons installed"
 #~ msgstr[0] "%i қолданба және %i қосымша орнатылды"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:185
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "%s дейін жаңартылу сәтсіз аяқталды."
diff --git a/po/lt.po b/po/lt.po
index ea17387..78eb54e 100644
--- a/po/lt.po
+++ b/po/lt.po
@@ -2886,3 +2886,10 @@ msgstr "Lokalizacija"
 #~ msgstr[0] "Įdiegta %i programa(-os) ir %i priedas(-ai)"
 #~ msgstr[1] "Įdiegta %i programa(-os) ir %i priedas(-ai)"
 #~ msgstr[2] "Įdiegta %i programa(-os) ir %i priedas(-ai)"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-utils.c:186
+#, c-format
+#| msgid "Removal of %s failed."
+msgid "Upgrade to %s failed."
+msgstr "Nepavyko atnaujinti %s."
diff --git a/po/oc.po b/po/oc.po
index e5993ab..f79090c 100644
--- a/po/oc.po
+++ b/po/oc.po
@@ -2707,3 +2707,9 @@ msgstr "_Quitar"
 
 #~ msgid "Recent Software Updates"
 #~ msgstr "Mises à jour récentes d'applications"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "La mesa a jorn de %s a fracassat."
diff --git a/po/pa.po b/po/pa.po
index 76048a5..b4a0f9f 100644
--- a/po/pa.po
+++ b/po/pa.po
@@ -2198,3 +2198,10 @@ msgstr "ਬੰਦ ਕਰੋ(_Q)"
 
 #~ msgid "Requires restart"
 #~ msgstr "ਮੁੜ-ਚਾਲੂ ਕਰਨ ਦੀ ਲੋੜ"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, fuzzy, c-format
+#| msgid "Removal of %s failed."
+msgid "Upgrade to %s failed."
+msgstr "%s ਹਟਾਉਣ ਲਈ ਫੇਲ੍ਹ ਹੈ।"
diff --git a/po/pt.po b/po/pt.po
index 9eca86c..413fbdd 100644
--- a/po/pt.po
+++ b/po/pt.po
@@ -2831,3 +2831,10 @@ msgstr "Extensões da interface do GNOME"
 msgctxt "Menu subcategory of Add-ons"
 msgid "Localization"
 msgstr "Localização"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:185
+#, c-format
+#| msgid "Removal of %s failed."
+msgid "Upgrade to %s failed."
+msgstr "Falha ao atualizar %s."
diff --git a/po/pt_BR.po b/po/pt_BR.po
index d039838..b77b81f 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -3094,3 +3094,10 @@ msgstr "Localização"
 
 #~ msgid "Printing"
 #~ msgstr "Impressão"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-utils.c:186
+#, c-format
+#| msgid "Removal of %s failed."
+msgid "Upgrade to %s failed."
+msgstr "A atualização para %s falhou."
diff --git a/po/sk.po b/po/sk.po
index e9a33d6..aed4dbd 100644
--- a/po/sk.po
+++ b/po/sk.po
@@ -2988,3 +2988,9 @@ msgstr "Lokalizácia"
 
 #~ msgid "Enable"
 #~ msgstr "Povoliť"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Aktualizácia na %s zlyhala."
diff --git a/po/tr.po b/po/tr.po
index 635efae..db9ccf3 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -2913,3 +2913,9 @@ msgstr "Yerelleştirme"
 
 #~ msgid "Enable"
 #~ msgstr "Etkinleştir"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "%s'e yükseltme başarısız oldu."
diff --git a/po/zh_TW.po b/po/zh_TW.po
index dabb2ac..43aeb77 100644
--- a/po/zh_TW.po
+++ b/po/zh_TW.po
@@ -2931,3 +2931,9 @@ msgstr "在地化"
 
 #~ msgid "_Updates (%d)"
 #~ msgstr "更新 (%d)(_U)"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-utils.c:186
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "%s 的升級失敗。"
diff --git a/src/gs-utils.c b/src/gs-utils.c
index 3d4cbd6..5ac8da6 100644
--- a/src/gs-utils.c
+++ b/src/gs-utils.c
@@ -169,7 +169,6 @@ gs_app_notify_failed_modal (GsApp *app,
        msg = g_string_new ("");
        switch (action) {
        case GS_PLUGIN_LOADER_ACTION_INSTALL:
-       case GS_PLUGIN_LOADER_ACTION_UPGRADE_DOWNLOAD:
                /* TRANSLATORS: this is when the install fails */
                g_string_append_printf (msg, _("Installation of %s failed."),
                                        gs_app_get_name (app));
@@ -179,6 +178,15 @@ gs_app_notify_failed_modal (GsApp *app,
                g_string_append_printf (msg, _("Removal of %s failed."),
                                        gs_app_get_name (app));
                break;
+       case GS_PLUGIN_LOADER_ACTION_UPGRADE_DOWNLOAD:
+       {
+               g_autofree gchar *name_version = g_strdup_printf ("%s %s",
+                                                                 gs_app_get_name (app),
+                                                                 gs_app_get_version (app));
+               /* TRANSLATORS: this is when the upgrade download fails */
+               g_string_append_printf (msg, _("Upgrade to %s failed."), name_version);
+               break;
+       }
        default:
                g_assert_not_reached ();
                break;


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