Skip to content

Commit

Permalink
Make progress strings translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
attah committed Apr 18, 2021
1 parent 1b62c66 commit 946ead4
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ippprinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -524,7 +524,7 @@ void IppPrinter::print(QJsonObject attrs, QString filename, bool alwaysUseMediaC
Tumble = true;
}

setBusyMessage("Converting");
setBusyMessage(tr("Converting"));

if(mimeType == Mimer::PDF)
{
Expand Down
8 changes: 8 additions & 0 deletions translations/harbour-seaprint-de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
8 changes: 8 additions & 0 deletions translations/harbour-seaprint-es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
8 changes: 8 additions & 0 deletions translations/harbour-seaprint-fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
8 changes: 8 additions & 0 deletions translations/harbour-seaprint-nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
8 changes: 8 additions & 0 deletions translations/harbour-seaprint-pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
8 changes: 8 additions & 0 deletions translations/harbour-seaprint-zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
8 changes: 8 additions & 0 deletions translations/harbour-seaprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 946ead4

Please sign in to comment.