Enable more translations

This commit is contained in:
Anton Thomasson 2019-12-07 10:36:36 +01:00
parent 4e2dfccc55
commit a75e9bb946
4 changed files with 152 additions and 18 deletions

View file

@ -10,34 +10,34 @@ Setting {
case "print-quality": case "print-quality":
switch(value) { switch(value) {
case 3: case 3:
return "draft"; return qsTr("draft");
case 4: case 4:
return "normal"; return qsTr("normal");
case 5: case 5:
return "high"; return qsTr("high");
default: default:
return "unknown quality "+value return qsTr("unknown quality ")+value
} }
case "orientation-requested": case "orientation-requested":
switch(value) { switch(value) {
case 3: case 3:
return "portrait"; return qsTr("portrait");
case 4: case 4:
return "landscape"; return qsTr("landscape");
case 5: case 5:
return "reverse landscape"; return qsTr("reverse landscape");
case 6: case 6:
return "reverse portrait"; return qsTr("reverse portrait");
default: default:
return "unknown orientation "+value return qsTr("unknown orientation ")+value
} }
case "printer-resolution": case "printer-resolution":
var units = ""; var units = "";
if(value.units==3) { if(value.units==3) {
units="dpi"; units=qsTr("dpi");
} else if (units==4){ } else if (units==4){
units="dots/cm" units=qsTr("dots/cm")
} }
return ""+value.x+"x"+value.y+units; return ""+value.x+"x"+value.y+units;
} }

View file

@ -37,13 +37,13 @@ Page {
ListModel { ListModel {
id:mod id:mod
ListElement {name: "sides"; prettyName: "Sides"; tag: 0x23} ListElement {name: "sides"; prettyName: qsTr("Sides"); tag: 0x23}
ListElement {name: "copies"; prettyName: "Copies"; tag: 0x21} ListElement {name: "copies"; prettyName: qsTr("Copies"); tag: 0x21}
// ListElement {name: "page-ranges"; prettyName: "Page range"; tag: 0x33} // ListElement {name: "page-ranges"; prettyName: qsTr("Page range"); tag: 0x33}
ListElement {name: "print-color-mode"; prettyName: "Color mode"; tag: 0x23} ListElement {name: "print-color-mode"; prettyName: qsTr("Color mode"); tag: 0x23}
// ListElement {name: "orientation-requested"; prettyName: "Orientation"; tag: 0x23} // ListElement {name: "orientation-requested"; prettyName: qsTr("Orientation"); tag: 0x23}
ListElement {name: "print-quality"; prettyName: "Quality"; tag: 0x23} ListElement {name: "print-quality"; prettyName: qsTr("Quality"); tag: 0x23}
ListElement {name: "printer-resolution"; prettyName: "Resolution"; tag: 0x32} ListElement {name: "printer-resolution"; prettyName: qsTr("Resolution"); tag: 0x32}
} }
SilicaListView { SilicaListView {

View file

@ -20,6 +20,53 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </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> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -60,6 +107,26 @@
<source>Print</source> <source>Print</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </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>
<context> <context>
<name>SecondPage</name> <name>SecondPage</name>

View file

@ -20,6 +20,53 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </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> <context>
<name>CoverPage</name> <name>CoverPage</name>
<message> <message>
@ -60,6 +107,26 @@
<source>Print</source> <source>Print</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </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>
<context> <context>
<name>SecondPage</name> <name>SecondPage</name>