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 {
|
||||
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()
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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'impression :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unknown</source>
|
||||
<translation type="unfinished">Inconnu</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConvertWorker</name>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue