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



commit 98d5a670425c30f4ce9a76842f7ab7884531668a
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/ar.po       |    6 ++++++
 po/ca.po       |    6 ++++++
 po/cs.po       |    6 ++++++
 po/da.po       |    6 ++++++
 po/de.po       |    6 ++++++
 po/en_GB.po    |    6 ++++++
 po/eo.po       |    7 +++++++
 po/es.po       |    6 ++++++
 po/eu.po       |    6 ++++++
 po/fi.po       |    6 ++++++
 po/fr.po       |    6 ++++++
 po/fur.po      |    6 ++++++
 po/gd.po       |    6 ++++++
 po/gl.po       |    6 ++++++
 po/he.po       |    6 ++++++
 po/hu.po       |    6 ++++++
 po/it.po       |    7 +++++++
 po/kk.po       |    6 ++++++
 po/ko.po       |    6 ++++++
 po/lt.po       |    6 ++++++
 po/lv.po       |    7 +++++++
 po/nb.po       |    6 ++++++
 po/nl.po       |    6 ++++++
 po/pa.po       |    7 +++++++
 po/pt.po       |    6 ++++++
 po/pt_BR.po    |    6 ++++++
 po/sk.po       |    6 ++++++
 po/sr.po       |    6 ++++++
 po/sr latin po |    6 ++++++
 po/sv.po       |    6 ++++++
 po/tr.po       |    6 ++++++
 po/uk.po       |    7 +++++++
 po/zh_TW.po    |    6 ++++++
 src/gs-utils.c |   10 +++++++++-
 34 files changed, 212 insertions(+), 1 deletions(-)
---
diff --git a/po/ar.po b/po/ar.po
index d5ac8a8..31c6dcc 100644
--- a/po/ar.po
+++ b/po/ar.po
@@ -2060,3 +2060,9 @@ msgstr "_عنْ"
 #: ../src/menus.ui.h:3
 msgid "_Quit"
 msgstr "أ_نهِ"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "فشلت ترقية %s."
diff --git a/po/ca.po b/po/ca.po
index 227e7b7..be847a3 100644
--- a/po/ca.po
+++ b/po/ca.po
@@ -2923,3 +2923,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:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Ha fallat l'actualització de %s."
diff --git a/po/cs.po b/po/cs.po
index 0bbdc3b..28b3163 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -2882,3 +2882,9 @@ msgstr "Rozšíření Shellu"
 msgctxt "Menu subcategory of Add-ons"
 msgid "Localization"
 msgstr "Lokalizace"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Povýšení na %s selhalo."
diff --git a/po/da.po b/po/da.po
index 1b03a4c..8c2a7bc 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-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Opgradering til %s mislykkedes."
diff --git a/po/de.po b/po/de.po
index c529837..bb0e227 100644
--- a/po/de.po
+++ b/po/de.po
@@ -3042,3 +3042,9 @@ msgstr "Lokalisierung"
 
 #~ msgid "Getting software details…"
 #~ msgstr "Software-Details werden ermittelt …"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Aktualisierung auf %s ist fehlgeschlagen."
diff --git a/po/en_GB.po b/po/en_GB.po
index 12b4066..cc7cc34 100644
--- a/po/en_GB.po
+++ b/po/en_GB.po
@@ -899,3 +899,9 @@ msgstr "Language Packs"
 #: ../src/plugins/gs-plugin-packagekit-refine.c:347
 msgid "No update details were provided"
 msgstr "No update details were provided"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Upgrade to %s failed."
diff --git a/po/eo.po b/po/eo.po
index 7aca50e..e828c95 100644
--- a/po/eo.po
+++ b/po/eo.po
@@ -2375,3 +2375,10 @@ msgstr "Ĉ_esi"
 
 #~ msgid "Proprietary"
 #~ msgstr "Mallibere"
+
+#. 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 "Forigo de %s malsukcesis."
diff --git a/po/es.po b/po/es.po
index 05833a6..4325e76 100644
--- a/po/es.po
+++ b/po/es.po
@@ -3241,3 +3241,9 @@ msgstr "PIN"
 #: ../src/gs-auth-dialog.ui.h:9
 msgid "Continue"
 msgstr "Continuar"
+
+#. 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/eu.po b/po/eu.po
index fc1c320..7a9a148 100644
--- a/po/eu.po
+++ b/po/eu.po
@@ -2969,3 +2969,9 @@ msgstr "Lokalizazioa"
 #~ msgctxt "Menu subcategory of Addons"
 #~ msgid "Language Packs"
 #~ msgstr "Hizkuntza-paketeak"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Huts egin du '%s' bertsio-berritzean."
diff --git a/po/fi.po b/po/fi.po
index 2b0594f..59a8081 100644
--- a/po/fi.po
+++ b/po/fi.po
@@ -2938,3 +2938,9 @@ msgstr "Lokalisointi"
 
 #~ msgid "Picks"
 #~ msgstr "Valikoidut"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Päivitys versioon %s epäonnistui."
diff --git a/po/fr.po b/po/fr.po
index fb47704..eab561b 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -2898,3 +2898,9 @@ msgstr "Extensions Shell"
 msgctxt "Menu subcategory of Add-ons"
 msgid "Localization"
 msgstr "Régionalisation"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "La mise à niveau de %s a échoué."
diff --git a/po/fur.po b/po/fur.po
index a644d92..de372c7 100644
--- a/po/fur.po
+++ b/po/fur.po
@@ -2884,3 +2884,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 aa5d39a..60598cc 100644
--- a/po/gd.po
+++ b/po/gd.po
@@ -3030,3 +3030,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/gl.po b/po/gl.po
index 4b5dc9b..66e0ddc 100644
--- a/po/gl.po
+++ b/po/gl.po
@@ -3150,3 +3150,9 @@ msgstr "Localización"
 #~ "desktop file..."
 #~ msgstr ""
 #~ "O autor deste software non incluíu unha «Descrición» no ficheiro desktop…"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Fallou a actualización a %s."
diff --git a/po/he.po b/po/he.po
index 76cc4c1..e59f8c2 100644
--- a/po/he.po
+++ b/po/he.po
@@ -2460,3 +2460,9 @@ msgstr "י_ציאה"
 
 #~ msgid "Printing"
 #~ msgstr "הדפסה"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "שדרוג ל־%s נכשל."
diff --git a/po/hu.po b/po/hu.po
index 2592211..85bf69b 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -3104,3 +3104,9 @@ msgstr "Lokalizáció"
 
 #~ msgid "Requires restart"
 #~ msgstr "Újraindítást igényel"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Frissítés erre: %s sikertelen."
diff --git a/po/it.po b/po/it.po
index 4d59239..7cdb5b4 100644
--- a/po/it.po
+++ b/po/it.po
@@ -2848,3 +2848,10 @@ msgstr "Estensioni Shell"
 msgctxt "Menu subcategory of Add-ons"
 msgid "Localization"
 msgstr "Localizzazione"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+#| msgid "Unable to upgrade to %s as download failed"
+msgid "Upgrade to %s failed."
+msgstr "Avanzamento a %s non riuscito."
diff --git a/po/kk.po b/po/kk.po
index bb07bdf..1ad809e 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:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "%s дейін жаңартылу сәтсіз аяқталды."
diff --git a/po/ko.po b/po/ko.po
index 7e3bc5f..1f63655 100644
--- a/po/ko.po
+++ b/po/ko.po
@@ -2788,3 +2788,9 @@ msgstr "쉘 확장 기능"
 msgctxt "Menu subcategory of Add-ons"
 msgid "Localization"
 msgstr "지역화"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "%s 업그레이드에 실패했습니다."
diff --git a/po/lt.po b/po/lt.po
index 9dff5c4..84a7a52 100644
--- a/po/lt.po
+++ b/po/lt.po
@@ -2934,3 +2934,9 @@ 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-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Nepavyko atnaujinti %s."
diff --git a/po/lv.po b/po/lv.po
index b878d62..36be777 100644
--- a/po/lv.po
+++ b/po/lv.po
@@ -2831,3 +2831,10 @@ msgstr "Lokalizācija"
 
 #~ msgid "No AppStream data found"
 #~ msgstr "Nav atrastu AppStream datu"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+#| msgid "Removal of %s failed."
+msgid "Upgrade to %s failed."
+msgstr "Neizdevās %s uzlabošana."
diff --git a/po/nb.po b/po/nb.po
index 2ff42f8..d20f48a 100644
--- a/po/nb.po
+++ b/po/nb.po
@@ -2806,3 +2806,9 @@ msgstr "Utvidelser for skallet"
 msgctxt "Menu subcategory of Add-ons"
 msgid "Localization"
 msgstr "Lokalisering"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Oppgradering til %s feilet."
diff --git a/po/nl.po b/po/nl.po
index 22fbbb1..5f5c392 100644
--- a/po/nl.po
+++ b/po/nl.po
@@ -2846,3 +2846,9 @@ msgctxt "Menu subcategory of Add-ons"
 msgid "Localization"
 msgstr "Lokalisatie"
 
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Opwaarderen naar %s is mislukt."
diff --git a/po/pa.po b/po/pa.po
index 2b411da..d46bb02 100644
--- a/po/pa.po
+++ b/po/pa.po
@@ -2246,3 +2246,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 fd0532d..2433bbc 100644
--- a/po/pt.po
+++ b/po/pt.po
@@ -2879,3 +2879,9 @@ 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:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Falha ao atualizar %s."
diff --git a/po/pt_BR.po b/po/pt_BR.po
index f3244d1..3454abc 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -3142,3 +3142,9 @@ msgstr "Localização"
 
 #~ msgid "Printing"
 #~ msgstr "Impressão"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "A atualização para %s falhou."
diff --git a/po/sk.po b/po/sk.po
index 5980222..8bce116 100644
--- a/po/sk.po
+++ b/po/sk.po
@@ -3036,3 +3036,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/sr.po b/po/sr.po
index 0a38656..a36cbc4 100644
--- a/po/sr.po
+++ b/po/sr.po
@@ -3053,3 +3053,9 @@ msgstr "Превод"
 
 #~ msgid "_Updates (%d)"
 #~ msgstr "_Освежења (%d)"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Надоградња на „%s“ није успела."
diff --git a/po/sr latin po b/po/sr latin po
index 0791272..3e3a401 100644
--- a/po/sr latin po
+++ b/po/sr latin po
@@ -3053,3 +3053,9 @@ msgstr "Prevod"
 
 #~ msgid "_Updates (%d)"
 #~ msgstr "_Osveženja (%d)"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Nadogradnja na „%s“ nije uspela."
diff --git a/po/sv.po b/po/sv.po
index bb5e478..60bfb62 100644
--- a/po/sv.po
+++ b/po/sv.po
@@ -2958,3 +2958,9 @@ msgstr "Lokalisering"
 
 #~ msgid "Enable"
 #~ msgstr "Aktivera"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "Uppgradering till %s misslyckades."
diff --git a/po/tr.po b/po/tr.po
index 38dfe7e..8bebe8b 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -2961,3 +2961,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/uk.po b/po/uk.po
index ae766c0..53f6b2e 100644
--- a/po/uk.po
+++ b/po/uk.po
@@ -2969,3 +2969,10 @@ msgstr "Локалізація"
 
 #~ msgid "Last"
 #~ msgstr "Востаннє"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+#| msgid "Removal of %s failed."
+msgid "Upgrade to %s failed."
+msgstr "Не вдалось оновити до %s."
diff --git a/po/zh_TW.po b/po/zh_TW.po
index f6220ad..1c19351 100644
--- a/po/zh_TW.po
+++ b/po/zh_TW.po
@@ -2979,3 +2979,9 @@ msgstr "在地化"
 
 #~ msgid "_Updates (%d)"
 #~ msgstr "更新 (%d)(_U)"
+
+#. TRANSLATORS: this is when the upgrade download fails
+#: ../src/gs-common.c:182
+#, c-format
+msgid "Upgrade to %s failed."
+msgstr "%s 的升級失敗。"
diff --git a/src/gs-utils.c b/src/gs-utils.c
index 15702f6..a806ce8 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]