Improve status notification fallback value
This commit is contained in:
parent
0816f071f8
commit
2b32999f6e
4 changed files with 1 additions and 13 deletions
|
@ -16,7 +16,7 @@ Page {
|
||||||
target: printer
|
target: printer
|
||||||
onJobAttrsFinished: {
|
onJobAttrsFinished: {
|
||||||
var msg = printer.jobAttrs["job-state-message"] && printer.jobAttrs["job-state-message"].value != ""
|
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) {
|
if(status == true) {
|
||||||
notifier.notify(qsTr("Print success: ") + msg)
|
notifier.notify(qsTr("Print success: ") + msg)
|
||||||
pageStack.pop() //or replace?
|
pageStack.pop() //or replace?
|
||||||
|
|
|
@ -190,10 +190,6 @@
|
||||||
<source>Resolution</source>
|
<source>Resolution</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Unknown</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Print success: </source>
|
<source>Print success: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
|
|
@ -190,10 +190,6 @@
|
||||||
<source>Resolution</source>
|
<source>Resolution</source>
|
||||||
<translation>Résolution</translation>
|
<translation>Résolution</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Unknown</source>
|
|
||||||
<translation>Inconnu</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Print success: </source>
|
<source>Print success: </source>
|
||||||
<translation>Impression réussie :</translation>
|
<translation>Impression réussie :</translation>
|
||||||
|
|
|
@ -190,10 +190,6 @@
|
||||||
<source>Resolution</source>
|
<source>Resolution</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Unknown</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Print success: </source>
|
<source>Print success: </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
|
Loading…
Reference in a new issue