Enable translation/prettification of media-source

This commit is contained in:
Anton Thomasson 2020-06-06 16:12:42 +02:00
parent bfd496138d
commit 37c0abee74
6 changed files with 95 additions and 21 deletions

View file

@ -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;
}

View file

@ -370,10 +370,6 @@
<source>dots/cm</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>PDF</source>
<translation type="unfinished"></translation>
@ -402,5 +398,21 @@
<source>GIF</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>by-pass tray</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>tray</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View file

@ -370,10 +370,6 @@
<source>dots/cm</source>
<translation>ppp</translation>
</message>
<message>
<source>Auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>PDF</source>
<translation type="unfinished"></translation>
@ -402,5 +398,21 @@
<source>GIF</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>by-pass tray</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>tray</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View file

@ -370,10 +370,6 @@
<source>dots/cm</source>
<translation>pts/cm</translation>
</message>
<message>
<source>Auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>PDF</source>
<translation type="unfinished"></translation>
@ -402,5 +398,21 @@
<source>GIF</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>by-pass tray</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>tray</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View file

@ -370,10 +370,6 @@
<source>dots/cm</source>
<translation>/</translation>
</message>
<message>
<source>Auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>PDF</source>
<translation type="unfinished"></translation>
@ -402,5 +398,21 @@
<source>GIF</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>by-pass tray</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>tray</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View file

@ -370,10 +370,6 @@
<source>dots/cm</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>PDF</source>
<translation type="unfinished"></translation>
@ -402,5 +398,21 @@
<source>GIF</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>by-pass tray</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>tray</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>