Enable more translations

This commit is contained in:
Anton Thomasson 2020-06-07 17:58:47 +02:00
parent f42dbf4484
commit 6c1b33e96d
6 changed files with 471 additions and 17 deletions

View file

@ -101,6 +101,38 @@ function ippName(name, value)
{ {
return value; return value;
} }
case "sides":
switch(value) {
case "one-sided":
return qsTr("one-sided");
case "two-sided-long-edge":
return qsTr("two-sided");
case "two-sided-short-edge":
return qsTr("two-sided flipped");
default:
return value
}
case "print-color-mode":
switch(value) {
case "auto":
return qsTr("automatic");
case "auto-monochrome":
return qsTr("auto monochrome");
case "bi-level":
return qsTr("bi-level");
case "color":
return qsTr("color");
case "highlight":
return qsTr("highlight");
case "monochrome":
return qsTr("monochrome");
case "process-bi-level":
return qsTr("process bi-level");
case "process-monochrome":
return qsTr("process monochrome");
default:
return value
}
case "document-format": case "document-format":
switch(value) { switch(value) {
case "application/octet-stream": case "application/octet-stream":
@ -127,15 +159,37 @@ function ippName(name, value)
{ {
return qsTr("tray")+" "+value.split("-")[1]; return qsTr("tray")+" "+value.split("-")[1];
} }
else if(value=="by-pass-tray") else
{ {
return qsTr("by-pass tray"); switch(value) {
case "by-pass-tray":
return qsTr("by-pass tray");
case "auto":
return qsTr("automatic");
case "bottom":
return qsTr("bottom");
case "center":
return qsTr("center");
case "main":
return qsTr("main");
case "manual":
return qsTr("manual");
case "middle":
return qsTr("middle");
case "photo":
return qsTr("photo");
case "rear":
return qsTr("rear");
case "right":
return qsTr("right");
case "side":
return qsTr("side");
case "top":
return qsTr("top");
default:
return value;
}
} }
else if(value=="auto")
{
return qsTr("auto");
}
return value;
} }
return value; return value;
} }

View file

@ -485,11 +485,91 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>auto</source> <source>tray</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>tray</source> <source>bottom</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>center</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>manual</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>middle</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>photo</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>rear</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>right</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>side</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>top</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>automatic</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>bi-level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>color</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>highlight</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>process bi-level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>process monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>one-sided</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>two-sided</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>two-sided flipped</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>

View file

@ -485,11 +485,91 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>auto</source> <source>tray</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>tray</source> <source>bottom</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>center</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>manual</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>middle</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>photo</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>rear</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>right</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>side</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>top</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>automatic</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>bi-level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>color</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>highlight</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>process bi-level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>process monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>one-sided</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>two-sided</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>two-sided flipped</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>

View file

@ -485,11 +485,91 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>auto</source> <source>tray</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>tray</source> <source>bottom</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>center</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>manual</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>middle</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>photo</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>rear</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>right</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>side</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>top</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>automatic</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>bi-level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>color</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>highlight</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>process bi-level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>process monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>one-sided</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>two-sided</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>two-sided flipped</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>

View file

@ -485,11 +485,91 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>auto</source> <source>tray</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>tray</source> <source>bottom</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>center</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>manual</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>middle</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>photo</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>rear</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>right</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>side</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>top</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>automatic</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>bi-level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>color</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>highlight</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>process bi-level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>process monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>one-sided</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>two-sided</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>two-sided flipped</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>

View file

@ -485,11 +485,91 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>auto</source> <source>tray</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>tray</source> <source>bottom</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>center</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>main</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>manual</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>middle</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>photo</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>rear</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>right</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>side</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>top</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>automatic</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>auto monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>bi-level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>color</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>highlight</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>process bi-level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>process monochrome</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>one-sided</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>two-sided</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>two-sided flipped</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>