Add output-bin and more media-source values

This commit is contained in:
Anton Thomasson 2021-07-09 17:19:32 +02:00
parent b551fad9ee
commit 6d444c9aa6
9 changed files with 494 additions and 2 deletions

View file

@ -154,6 +154,12 @@ Page {
prettyName: qsTr("Media source") prettyName: qsTr("Media source")
mime_type: selectedFileType mime_type: selectedFileType
} }
ChoiceSetting {
tag: IppMsg.Keyword
name: "output-bin"
prettyName: qsTr("Output bin")
mime_type: selectedFileType
}
MediaColSetting { MediaColSetting {
tag: IppMsg.BeginCollection tag: IppMsg.BeginCollection
name: "media-col" name: "media-col"

View file

@ -228,19 +228,39 @@ function ippName(name, value)
{ {
return qsTr("tray")+" "+value.split("-")[1]; return qsTr("tray")+" "+value.split("-")[1];
} }
else if(value.indexOf("roll-")==0)
{
return qsTr("roll")+" "+value.split("-")[1];
}
else else
{ {
switch(value) { switch(value) {
case "by-pass-tray": case "alternate":
return qsTr("by-pass tray"); return qsTr("alternate");
case "alternate-roll":
return qsTr("alternate-roll");
case "auto": case "auto":
return qsTr("automatic"); return qsTr("automatic");
case "bottom": case "bottom":
return qsTr("bottom"); return qsTr("bottom");
case "by-pass-tray":
return qsTr("by-pass tray");
case "center": case "center":
return qsTr("center"); return qsTr("center");
case "disc":
return qsTr("disc");
case "envelope":
return qsTr("envelope");
case "hagaki":
return qsTr("hagaki");
case "large-capacity":
return qsTr("large capacity");
case "left":
return qsTr("left");
case "main": case "main":
return qsTr("main"); return qsTr("main");
case "main-roll":
return qsTr("main roll");
case "manual": case "manual":
return qsTr("manual"); return qsTr("manual");
case "middle": case "middle":
@ -259,6 +279,52 @@ function ippName(name, value)
return value; return value;
} }
} }
case "output-bin":
if(value.indexOf("tray-")==0)
{
return qsTr("tray")+" "+value.split("-")[1];
}
else if(value.indexOf("stacker-")==0)
{
return qsTr("stacker")+" "+value.split("-")[1];
}
else if(value.indexOf("mailbox-")==0)
{
return qsTr("mailbox")+" "+value.split("-")[1];
}
else
{
switch(value) {
case "auto":
return qsTr("automatic");
case "top":
return qsTr("top");
case "middle":
return qsTr("middle");
case "bottom":
return qsTr("bottom");
case "side":
return qsTr("side");
case "left":
return qsTr("left");
case "right":
return qsTr("right");
case "center":
return qsTr("center");
case "rear":
return qsTr("rear");
case "face-up":
return qsTr("face-up");
case "face-down":
return qsTr("face-down");
case "large-capacity":
return qsTr("large capacity");
case "my-mailbox":
return qsTr("my mailbox");
default:
return value;
}
}
} }
return value; return value;
} }

View file

@ -490,6 +490,10 @@
<source>(loaded)</source> <source>(loaded)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>
@ -804,5 +808,61 @@
<source>Unknown</source> <source>Unknown</source>
<translation type="unfinished">Unbekannt</translation> <translation type="unfinished">Unbekannt</translation>
</message> </message>
<message>
<source>roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate-roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>envelope</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>hagaki</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>large capacity</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>left</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>stacker</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>mailbox</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-up</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-down</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>my mailbox</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
</TS> </TS>

View file

@ -490,6 +490,10 @@
<source>(loaded)</source> <source>(loaded)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>
@ -804,5 +808,61 @@
<source>Unknown</source> <source>Unknown</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate-roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>envelope</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>hagaki</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>large capacity</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>left</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>stacker</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>mailbox</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-up</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-down</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>my mailbox</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
</TS> </TS>

View file

@ -490,6 +490,10 @@
<source>(loaded)</source> <source>(loaded)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>
@ -804,5 +808,61 @@
<source>Unknown</source> <source>Unknown</source>
<translation type="unfinished">Inconnu</translation> <translation type="unfinished">Inconnu</translation>
</message> </message>
<message>
<source>roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate-roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>envelope</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>hagaki</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>large capacity</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>left</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>stacker</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>mailbox</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-up</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-down</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>my mailbox</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
</TS> </TS>

View file

@ -490,6 +490,10 @@
<source>(loaded)</source> <source>(loaded)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>
@ -804,5 +808,61 @@
<source>Unknown</source> <source>Unknown</source>
<translation type="unfinished">Onbekend</translation> <translation type="unfinished">Onbekend</translation>
</message> </message>
<message>
<source>roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate-roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>envelope</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>hagaki</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>large capacity</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>left</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>stacker</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>mailbox</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-up</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-down</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>my mailbox</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
</TS> </TS>

View file

@ -490,6 +490,10 @@
<source>(loaded)</source> <source>(loaded)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>
@ -804,5 +808,61 @@
<source>Unknown</source> <source>Unknown</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate-roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>envelope</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>hagaki</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>large capacity</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>left</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>stacker</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>mailbox</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-up</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-down</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>my mailbox</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
</TS> </TS>

View file

@ -490,6 +490,10 @@
<source>(loaded)</source> <source>(loaded)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>
@ -804,5 +808,61 @@
<source>Unknown</source> <source>Unknown</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate-roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>envelope</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>hagaki</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>large capacity</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>left</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>stacker</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>mailbox</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-up</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-down</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>my mailbox</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
</TS> </TS>

View file

@ -490,6 +490,10 @@
<source>(loaded)</source> <source>(loaded)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>
@ -804,5 +808,61 @@
<source>Unknown</source> <source>Unknown</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>alternate-roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>envelope</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>hagaki</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>large capacity</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>left</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main roll</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>stacker</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>mailbox</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-up</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>face-down</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>my mailbox</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
</TS> </TS>