Make progress strings translatable

This commit is contained in:
Anton Thomasson 2021-04-18 09:34:48 +02:00
parent 1b62c663c8
commit 946ead4698
8 changed files with 59 additions and 3 deletions

View file

@ -274,7 +274,7 @@ void IppPrinter::convertDone(QNetworkRequest request, QTemporaryFile* data)
connect(_print_nam, SIGNAL(finished(QNetworkReply*)), data, SLOT(deleteLater())); connect(_print_nam, SIGNAL(finished(QNetworkReply*)), data, SLOT(deleteLater()));
data->open(); data->open();
setBusyMessage("Transferring"); setBusyMessage(tr("Transferring"));
QNetworkReply* reply = _print_nam->post(request, data); QNetworkReply* reply = _print_nam->post(request, data);
@ -488,7 +488,7 @@ void IppPrinter::print(QJsonObject attrs, QString filename, bool alwaysUseMediaC
contents = contents.append(filedata); contents = contents.append(filedata);
file.close(); file.close();
setBusyMessage("Transferring"); setBusyMessage(tr("Transferring"));
QNetworkReply* reply = _print_nam->post(request, contents); QNetworkReply* reply = _print_nam->post(request, contents);
connect(reply, &QNetworkReply::uploadProgress, this, &IppPrinter::setProgress); connect(reply, &QNetworkReply::uploadProgress, this, &IppPrinter::setProgress);
} }
@ -524,7 +524,7 @@ void IppPrinter::print(QJsonObject attrs, QString filename, bool alwaysUseMediaC
Tumble = true; Tumble = true;
} }
setBusyMessage("Converting"); setBusyMessage(tr("Converting"));
if(mimeType == Mimer::PDF) if(mimeType == Mimer::PDF)
{ {

View file

@ -306,6 +306,14 @@
<source>Unknown document format dimensions</source> <source>Unknown document format dimensions</source>
<translation>Unbekannte Dokumentenformat Größe</translation> <translation>Unbekannte Dokumentenformat Größe</translation>
</message> </message>
<message>
<source>Transferring</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Converting</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>JobsPage</name> <name>JobsPage</name>

View file

@ -306,6 +306,14 @@
<source>Unknown document format dimensions</source> <source>Unknown document format dimensions</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Transferring</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Converting</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>JobsPage</name> <name>JobsPage</name>

View file

@ -306,6 +306,14 @@
<source>Unknown document format dimensions</source> <source>Unknown document format dimensions</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Transferring</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Converting</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>JobsPage</name> <name>JobsPage</name>

View file

@ -306,6 +306,14 @@
<source>Unknown document format dimensions</source> <source>Unknown document format dimensions</source>
<translation>Onbekende afmetingen van documentformaat</translation> <translation>Onbekende afmetingen van documentformaat</translation>
</message> </message>
<message>
<source>Transferring</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Converting</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>JobsPage</name> <name>JobsPage</name>

View file

@ -306,6 +306,14 @@
<source>Cannot convert this file format</source> <source>Cannot convert this file format</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Transferring</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Converting</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>JobsPage</name> <name>JobsPage</name>

View file

@ -306,6 +306,14 @@
<source>Unknown document format dimensions</source> <source>Unknown document format dimensions</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Transferring</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Converting</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>JobsPage</name> <name>JobsPage</name>

View file

@ -306,6 +306,14 @@
<source>Unknown document format dimensions</source> <source>Unknown document format dimensions</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Transferring</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Converting</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>JobsPage</name> <name>JobsPage</name>