Enable more translations
This commit is contained in:
parent
4e2dfccc55
commit
a75e9bb946
4 changed files with 152 additions and 18 deletions
|
@ -10,34 +10,34 @@ Setting {
|
|||
case "print-quality":
|
||||
switch(value) {
|
||||
case 3:
|
||||
return "draft";
|
||||
return qsTr("draft");
|
||||
case 4:
|
||||
return "normal";
|
||||
return qsTr("normal");
|
||||
case 5:
|
||||
return "high";
|
||||
return qsTr("high");
|
||||
default:
|
||||
return "unknown quality "+value
|
||||
return qsTr("unknown quality ")+value
|
||||
}
|
||||
case "orientation-requested":
|
||||
switch(value) {
|
||||
case 3:
|
||||
return "portrait";
|
||||
return qsTr("portrait");
|
||||
case 4:
|
||||
return "landscape";
|
||||
return qsTr("landscape");
|
||||
case 5:
|
||||
return "reverse landscape";
|
||||
return qsTr("reverse landscape");
|
||||
case 6:
|
||||
return "reverse portrait";
|
||||
return qsTr("reverse portrait");
|
||||
default:
|
||||
return "unknown orientation "+value
|
||||
return qsTr("unknown orientation ")+value
|
||||
}
|
||||
case "printer-resolution":
|
||||
|
||||
var units = "";
|
||||
if(value.units==3) {
|
||||
units="dpi";
|
||||
units=qsTr("dpi");
|
||||
} else if (units==4){
|
||||
units="dots/cm"
|
||||
units=qsTr("dots/cm")
|
||||
}
|
||||
return ""+value.x+"x"+value.y+units;
|
||||
}
|
||||
|
|
|
@ -37,13 +37,13 @@ Page {
|
|||
|
||||
ListModel {
|
||||
id:mod
|
||||
ListElement {name: "sides"; prettyName: "Sides"; tag: 0x23}
|
||||
ListElement {name: "copies"; prettyName: "Copies"; tag: 0x21}
|
||||
// ListElement {name: "page-ranges"; prettyName: "Page range"; tag: 0x33}
|
||||
ListElement {name: "print-color-mode"; prettyName: "Color mode"; tag: 0x23}
|
||||
// ListElement {name: "orientation-requested"; prettyName: "Orientation"; tag: 0x23}
|
||||
ListElement {name: "print-quality"; prettyName: "Quality"; tag: 0x23}
|
||||
ListElement {name: "printer-resolution"; prettyName: "Resolution"; tag: 0x32}
|
||||
ListElement {name: "sides"; prettyName: qsTr("Sides"); tag: 0x23}
|
||||
ListElement {name: "copies"; prettyName: qsTr("Copies"); tag: 0x21}
|
||||
// ListElement {name: "page-ranges"; prettyName: qsTr("Page range"); tag: 0x33}
|
||||
ListElement {name: "print-color-mode"; prettyName: qsTr("Color mode"); tag: 0x23}
|
||||
// ListElement {name: "orientation-requested"; prettyName: qsTr("Orientation"); tag: 0x23}
|
||||
ListElement {name: "print-quality"; prettyName: qsTr("Quality"); tag: 0x23}
|
||||
ListElement {name: "printer-resolution"; prettyName: qsTr("Resolution"); tag: 0x32}
|
||||
}
|
||||
|
||||
SilicaListView {
|
||||
|
|
|
@ -20,6 +20,53 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChoiceSetting</name>
|
||||
<message>
|
||||
<source>draft</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>normal</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>high</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown quality </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>portrait</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>landscape</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>reverse landscape</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>reverse portrait</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown orientation </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>dpi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>dots/cm</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>CoverPage</name>
|
||||
<message>
|
||||
|
@ -60,6 +107,26 @@
|
|||
<source>Print</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Sides</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Copies</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Color mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Quality</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Resolution</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SecondPage</name>
|
||||
|
|
|
@ -20,6 +20,53 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChoiceSetting</name>
|
||||
<message>
|
||||
<source>draft</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>normal</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>high</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown quality </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>portrait</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>landscape</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>reverse landscape</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>reverse portrait</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown orientation </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>dpi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>dots/cm</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>CoverPage</name>
|
||||
<message>
|
||||
|
@ -60,6 +107,26 @@
|
|||
<source>Print</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Sides</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Copies</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Color mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Quality</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Resolution</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SecondPage</name>
|
||||
|
|
Loading…
Reference in a new issue