Show more error messages
This commit is contained in:
parent
4e03601b5c
commit
ad14386b53
6 changed files with 25 additions and 22 deletions
|
@ -8,11 +8,14 @@ Page {
|
||||||
Connections {
|
Connections {
|
||||||
target: printer
|
target: printer
|
||||||
onJobFinished: {
|
onJobFinished: {
|
||||||
var msg = ""
|
var msg = qsTr("Unknown")
|
||||||
if (printer.jobAttrs.hasOwnProperty("job-state-message") && printer.jobAttrs["job-state-message"].value != "") {
|
if (printer.jobAttrs.hasOwnProperty("job-state-message") && printer.jobAttrs["job-state-message"].value != "") {
|
||||||
msg = 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)
|
msg = Utils.ippName("job-state", printer.jobAttrs["job-state"].value)
|
||||||
}
|
}
|
||||||
pageStack.pop()
|
pageStack.pop()
|
||||||
|
|
|
@ -71,10 +71,6 @@
|
||||||
<source>Optional dependencies</source>
|
<source>Optional dependencies</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>pdftoppm (from poppler-utils)</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Installed</source>
|
<source>Installed</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -117,6 +113,10 @@
|
||||||
<source>Print failed: </source>
|
<source>Print failed: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Unknown</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ConvertWorker</name>
|
<name>ConvertWorker</name>
|
||||||
|
|
|
@ -71,10 +71,6 @@
|
||||||
<source>Optional dependencies</source>
|
<source>Optional dependencies</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>pdftoppm (from poppler-utils)</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Installed</source>
|
<source>Installed</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -117,6 +113,10 @@
|
||||||
<source>Print failed: </source>
|
<source>Print failed: </source>
|
||||||
<translation type="unfinished">Impresión fallida: </translation>
|
<translation type="unfinished">Impresión fallida: </translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Unknown</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ConvertWorker</name>
|
<name>ConvertWorker</name>
|
||||||
|
|
|
@ -71,10 +71,6 @@
|
||||||
<source>Optional dependencies</source>
|
<source>Optional dependencies</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>pdftoppm (from poppler-utils)</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Installed</source>
|
<source>Installed</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -117,6 +113,10 @@
|
||||||
<source>Print failed: </source>
|
<source>Print failed: </source>
|
||||||
<translation type="unfinished">Échec de l'impression :</translation>
|
<translation type="unfinished">Échec de l'impression :</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Unknown</source>
|
||||||
|
<translation type="unfinished">Inconnu</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ConvertWorker</name>
|
<name>ConvertWorker</name>
|
||||||
|
|
|
@ -71,10 +71,6 @@
|
||||||
<source>Optional dependencies</source>
|
<source>Optional dependencies</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>pdftoppm (from poppler-utils)</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Installed</source>
|
<source>Installed</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -117,6 +113,10 @@
|
||||||
<source>Print failed: </source>
|
<source>Print failed: </source>
|
||||||
<translation type="unfinished">打印失败:</translation>
|
<translation type="unfinished">打印失败:</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Unknown</source>
|
||||||
|
<translation type="unfinished">未知</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ConvertWorker</name>
|
<name>ConvertWorker</name>
|
||||||
|
|
|
@ -71,10 +71,6 @@
|
||||||
<source>Optional dependencies</source>
|
<source>Optional dependencies</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>pdftoppm (from poppler-utils)</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Installed</source>
|
<source>Installed</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -117,6 +113,10 @@
|
||||||
<source>Print failed: </source>
|
<source>Print failed: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Unknown</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ConvertWorker</name>
|
<name>ConvertWorker</name>
|
||||||
|
|
Loading…
Reference in a new issue