Show more error messages

This commit is contained in:
Anton Thomasson 2020-05-17 12:30:54 +02:00
parent 4e03601b5c
commit ad14386b53
6 changed files with 25 additions and 22 deletions

View file

@ -8,11 +8,14 @@ Page {
Connections {
target: printer
onJobFinished: {
var msg = ""
var msg = qsTr("Unknown")
if (printer.jobAttrs.hasOwnProperty("job-state-message") && printer.jobAttrs["job-state-message"].value != "") {
msg = printer.jobAttrs["job-state-message"].value
}
else if (printer.jobAttrs.hasOwnProperty("job-state")) {
else if (printer.jobAttrs.hasOwnProperty("status-message") && printer.jobAttrs["status-message"].value != "") {
msg = printer.jobAttrs["status-message"].value
}
else if (printer.jobAttrs.hasOwnProperty("job-state") && printer.jobAttrs["job-state"].value != "") {
msg = Utils.ippName("job-state", printer.jobAttrs["job-state"].value)
}
pageStack.pop()

View file

@ -71,10 +71,6 @@
<source>Optional dependencies</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>pdftoppm (from poppler-utils)</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Installed</source>
<translation type="unfinished"></translation>
@ -117,6 +113,10 @@
<source>Print failed: </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unknown</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ConvertWorker</name>

View file

@ -71,10 +71,6 @@
<source>Optional dependencies</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>pdftoppm (from poppler-utils)</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Installed</source>
<translation type="unfinished"></translation>
@ -117,6 +113,10 @@
<source>Print failed: </source>
<translation type="unfinished">Impresión fallida: </translation>
</message>
<message>
<source>Unknown</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ConvertWorker</name>

View file

@ -71,10 +71,6 @@
<source>Optional dependencies</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>pdftoppm (from poppler-utils)</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Installed</source>
<translation type="unfinished"></translation>
@ -117,6 +113,10 @@
<source>Print failed: </source>
<translation type="unfinished">Échec de l&apos;impression :</translation>
</message>
<message>
<source>Unknown</source>
<translation type="unfinished">Inconnu</translation>
</message>
</context>
<context>
<name>ConvertWorker</name>

View file

@ -71,10 +71,6 @@
<source>Optional dependencies</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>pdftoppm (from poppler-utils)</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Installed</source>
<translation type="unfinished"></translation>
@ -117,6 +113,10 @@
<source>Print failed: </source>
<translation type="unfinished">:</translation>
</message>
<message>
<source>Unknown</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ConvertWorker</name>

View file

@ -71,10 +71,6 @@
<source>Optional dependencies</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>pdftoppm (from poppler-utils)</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Installed</source>
<translation type="unfinished"></translation>
@ -117,6 +113,10 @@
<source>Print failed: </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unknown</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ConvertWorker</name>