From 37c0abee74ea57de242a46361c37b4a696861db6 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Sat, 6 Jun 2020 16:12:42 +0200 Subject: [PATCH] Enable translation/prettification of media-source --- qml/pages/utils.js | 16 +++++++++++++++- translations/harbour-seaprint-de.ts | 20 ++++++++++++++++---- translations/harbour-seaprint-es.ts | 20 ++++++++++++++++---- translations/harbour-seaprint-fr.ts | 20 ++++++++++++++++---- translations/harbour-seaprint-zh_CN.ts | 20 ++++++++++++++++---- translations/harbour-seaprint.ts | 20 ++++++++++++++++---- 6 files changed, 95 insertions(+), 21 deletions(-) diff --git a/qml/pages/utils.js b/qml/pages/utils.js index eb0797b..0f7f3cb 100644 --- a/qml/pages/utils.js +++ b/qml/pages/utils.js @@ -99,7 +99,7 @@ function ippName(name, value) case "document-format": switch(value) { case "application/octet-stream": - return qsTr("Auto-sense"); + return qsTr("auto-sense"); case "application/pdf": return qsTr("PDF"); case "application/postscript": @@ -117,6 +117,20 @@ function ippName(name, value) default: return value; } + case "media-source": + if(value.indexOf("tray-")==0) + { + return qsTr("tray")+" "+value.split("-")[1]; + } + else if(value=="by-pass-tray") + { + return qsTr("by-pass tray"); + } + else if(value=="auto") + { + return qsTr("auto"); + } + return value; } return value; } diff --git a/translations/harbour-seaprint-de.ts b/translations/harbour-seaprint-de.ts index 60527e1..b55e1b4 100644 --- a/translations/harbour-seaprint-de.ts +++ b/translations/harbour-seaprint-de.ts @@ -370,10 +370,6 @@ dots/cm - - Auto-sense - - PDF @@ -402,5 +398,21 @@ GIF + + auto-sense + + + + by-pass tray + + + + auto + + + + tray + + diff --git a/translations/harbour-seaprint-es.ts b/translations/harbour-seaprint-es.ts index d9742b8..90b58ab 100644 --- a/translations/harbour-seaprint-es.ts +++ b/translations/harbour-seaprint-es.ts @@ -370,10 +370,6 @@ dots/cm ppp - - Auto-sense - - PDF @@ -402,5 +398,21 @@ GIF + + auto-sense + + + + by-pass tray + + + + auto + + + + tray + + diff --git a/translations/harbour-seaprint-fr.ts b/translations/harbour-seaprint-fr.ts index 2fc0390..6acdf78 100644 --- a/translations/harbour-seaprint-fr.ts +++ b/translations/harbour-seaprint-fr.ts @@ -370,10 +370,6 @@ dots/cm pts/cm - - Auto-sense - - PDF @@ -402,5 +398,21 @@ GIF + + auto-sense + + + + by-pass tray + + + + auto + + + + tray + + diff --git a/translations/harbour-seaprint-zh_CN.ts b/translations/harbour-seaprint-zh_CN.ts index 3ebedfa..039297b 100644 --- a/translations/harbour-seaprint-zh_CN.ts +++ b/translations/harbour-seaprint-zh_CN.ts @@ -370,10 +370,6 @@ dots/cm 点/厘米 - - Auto-sense - - PDF @@ -402,5 +398,21 @@ GIF + + auto-sense + + + + by-pass tray + + + + auto + + + + tray + + diff --git a/translations/harbour-seaprint.ts b/translations/harbour-seaprint.ts index a52e184..7e657c3 100644 --- a/translations/harbour-seaprint.ts +++ b/translations/harbour-seaprint.ts @@ -370,10 +370,6 @@ dots/cm - - Auto-sense - - PDF @@ -402,5 +398,21 @@ GIF + + auto-sense + + + + by-pass tray + + + + auto + + + + tray + +