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": case "document-format":
switch(value) { switch(value) {
case "application/octet-stream": case "application/octet-stream":
return qsTr("Auto-sense"); return qsTr("auto-sense");
case "application/pdf": case "application/pdf":
return qsTr("PDF"); return qsTr("PDF");
case "application/postscript": case "application/postscript":
@ -117,6 +117,20 @@ function ippName(name, value)
default: default:
return value; 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; return value;
} }

View file

@ -370,10 +370,6 @@
<source>dots/cm</source> <source>dots/cm</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>PDF</source> <source>PDF</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -402,5 +398,21 @@
<source>GIF</source> <source>GIF</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </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> </context>
</TS> </TS>

View file

@ -370,10 +370,6 @@
<source>dots/cm</source> <source>dots/cm</source>
<translation>ppp</translation> <translation>ppp</translation>
</message> </message>
<message>
<source>Auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>PDF</source> <source>PDF</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -402,5 +398,21 @@
<source>GIF</source> <source>GIF</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </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> </context>
</TS> </TS>

View file

@ -370,10 +370,6 @@
<source>dots/cm</source> <source>dots/cm</source>
<translation>pts/cm</translation> <translation>pts/cm</translation>
</message> </message>
<message>
<source>Auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>PDF</source> <source>PDF</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -402,5 +398,21 @@
<source>GIF</source> <source>GIF</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </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> </context>
</TS> </TS>

View file

@ -370,10 +370,6 @@
<source>dots/cm</source> <source>dots/cm</source>
<translation>/</translation> <translation>/</translation>
</message> </message>
<message>
<source>Auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>PDF</source> <source>PDF</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -402,5 +398,21 @@
<source>GIF</source> <source>GIF</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </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> </context>
</TS> </TS>

View file

@ -370,10 +370,6 @@
<source>dots/cm</source> <source>dots/cm</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Auto-sense</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>PDF</source> <source>PDF</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -402,5 +398,21 @@
<source>GIF</source> <source>GIF</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </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> </context>
</TS> </TS>