From a75e9bb946a28413e58ea8a9df3e2508bd3358f8 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Sat, 7 Dec 2019 10:36:36 +0100 Subject: [PATCH] Enable more translations --- qml/pages/ChoiceSetting.qml | 22 +++++----- qml/pages/PrinterPage.qml | 14 +++--- translations/harbour-seaprint-de.ts | 67 +++++++++++++++++++++++++++++ translations/harbour-seaprint.ts | 67 +++++++++++++++++++++++++++++ 4 files changed, 152 insertions(+), 18 deletions(-) diff --git a/qml/pages/ChoiceSetting.qml b/qml/pages/ChoiceSetting.qml index 1a7e01c..2a82256 100644 --- a/qml/pages/ChoiceSetting.qml +++ b/qml/pages/ChoiceSetting.qml @@ -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; } diff --git a/qml/pages/PrinterPage.qml b/qml/pages/PrinterPage.qml index 2aaa32d..ca25f3d 100644 --- a/qml/pages/PrinterPage.qml +++ b/qml/pages/PrinterPage.qml @@ -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 { diff --git a/translations/harbour-seaprint-de.ts b/translations/harbour-seaprint-de.ts index 79f81e3..d04b99f 100644 --- a/translations/harbour-seaprint-de.ts +++ b/translations/harbour-seaprint-de.ts @@ -20,6 +20,53 @@ + + ChoiceSetting + + draft + + + + normal + + + + high + + + + unknown quality + + + + portrait + + + + landscape + + + + reverse landscape + + + + reverse portrait + + + + unknown orientation + + + + dpi + + + + dots/cm + + + CoverPage @@ -60,6 +107,26 @@ Print + + Sides + + + + Copies + + + + Color mode + + + + Quality + + + + Resolution + + SecondPage diff --git a/translations/harbour-seaprint.ts b/translations/harbour-seaprint.ts index a9e48c7..a08e9f9 100644 --- a/translations/harbour-seaprint.ts +++ b/translations/harbour-seaprint.ts @@ -20,6 +20,53 @@ + + ChoiceSetting + + draft + + + + normal + + + + high + + + + unknown quality + + + + portrait + + + + landscape + + + + reverse landscape + + + + reverse portrait + + + + unknown orientation + + + + dpi + + + + dots/cm + + + CoverPage @@ -60,6 +107,26 @@ Print + + Sides + + + + Copies + + + + Color mode + + + + Quality + + + + Resolution + + SecondPage