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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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