From 2b32999f6ed243ed4789614b143448f816e14926 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Fri, 3 Jan 2020 13:50:21 +0100 Subject: [PATCH] Improve status notification fallback value --- qml/pages/PrinterPage.qml | 2 +- translations/harbour-seaprint-de.ts | 4 ---- translations/harbour-seaprint-fr.ts | 4 ---- translations/harbour-seaprint.ts | 4 ---- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/qml/pages/PrinterPage.qml b/qml/pages/PrinterPage.qml index ccf4702..c3111f7 100644 --- a/qml/pages/PrinterPage.qml +++ b/qml/pages/PrinterPage.qml @@ -16,7 +16,7 @@ Page { target: printer onJobAttrsFinished: { var msg = printer.jobAttrs["job-state-message"] && printer.jobAttrs["job-state-message"].value != "" - ? printer.jobAttrs["job-state-message"].value : qsTr("Unknown") + ? printer.jobAttrs["job-state-message"].value : Utils.ippName("job-state", printer.jobAttrs["job-state"].value) if(status == true) { notifier.notify(qsTr("Print success: ") + msg) pageStack.pop() //or replace? diff --git a/translations/harbour-seaprint-de.ts b/translations/harbour-seaprint-de.ts index c0c073a..be5a5df 100644 --- a/translations/harbour-seaprint-de.ts +++ b/translations/harbour-seaprint-de.ts @@ -190,10 +190,6 @@ Resolution - - Unknown - - Print success: diff --git a/translations/harbour-seaprint-fr.ts b/translations/harbour-seaprint-fr.ts index 9589d0f..26199b5 100644 --- a/translations/harbour-seaprint-fr.ts +++ b/translations/harbour-seaprint-fr.ts @@ -190,10 +190,6 @@ Resolution Résolution - - Unknown - Inconnu - Print success: Impression réussie : diff --git a/translations/harbour-seaprint.ts b/translations/harbour-seaprint.ts index c0c073a..be5a5df 100644 --- a/translations/harbour-seaprint.ts +++ b/translations/harbour-seaprint.ts @@ -190,10 +190,6 @@ Resolution - - Unknown - - Print success: