qt: Do not translate file extensions

This commit is contained in:
Hennadii Stepanov 2021-02-23 17:17:24 +02:00
parent 84f6c695c6
commit 88df300f20
No known key found for this signature in database
GPG key ID: 410108112E7EA81F
6 changed files with 8 additions and 6 deletions

View file

@ -295,7 +295,7 @@ void AddressBookPage::on_exportButton_clicked()
// CSV is currently the only supported format // CSV is currently the only supported format
QString filename = GUIUtil::getSaveFileName(this, QString filename = GUIUtil::getSaveFileName(this,
tr("Export Address List"), QString(), tr("Export Address List"), QString(),
tr("Comma separated file (*.csv)"), nullptr); tr("Comma separated file", "Name of CSV file format") + QLatin1String(" (*.csv)"), nullptr);
if (filename.isNull()) if (filename.isNull())
return; return;

View file

@ -141,7 +141,7 @@ void PSBTOperationsDialog::saveTransaction() {
filename_suggestion.append(".psbt"); filename_suggestion.append(".psbt");
QString filename = GUIUtil::getSaveFileName(this, QString filename = GUIUtil::getSaveFileName(this,
tr("Save Transaction Data"), filename_suggestion, tr("Save Transaction Data"), filename_suggestion,
tr("Partially Signed Transaction (Binary) (*.psbt)"), &selected_filter); tr("Partially Signed Transaction (Binary)", "Name of binary PSBT file format") + QLatin1String(" (*.psbt)"), &selected_filter);
if (filename.isEmpty()) { if (filename.isEmpty()) {
return; return;
} }

View file

@ -120,7 +120,9 @@ void QRImageWidget::saveImage()
{ {
if (!GUIUtil::HasPixmap(this)) if (!GUIUtil::HasPixmap(this))
return; return;
QString fn = GUIUtil::getSaveFileName(this, tr("Save QR Code"), QString(), tr("PNG Image (*.png)"), nullptr); QString fn = GUIUtil::getSaveFileName(
this, tr("Save QR Code"), QString(),
tr("PNG Image", "Name of PNG file format") + QLatin1String(" (*.png)"), nullptr);
if (!fn.isEmpty()) if (!fn.isEmpty())
{ {
exportImage().save(fn); exportImage().save(fn);

View file

@ -430,7 +430,7 @@ void SendCoinsDialog::on_sendButton_clicked()
fileNameSuggestion.append(".psbt"); fileNameSuggestion.append(".psbt");
QString filename = GUIUtil::getSaveFileName(this, QString filename = GUIUtil::getSaveFileName(this,
tr("Save Transaction Data"), fileNameSuggestion, tr("Save Transaction Data"), fileNameSuggestion,
tr("Partially Signed Transaction (Binary) (*.psbt)"), &selectedFilter); tr("Partially Signed Transaction (Binary)", "Name of binary PSBT file format") + QLatin1String(" (*.psbt)"), &selectedFilter);
if (filename.isEmpty()) { if (filename.isEmpty()) {
return; return;
} }

View file

@ -354,7 +354,7 @@ void TransactionView::exportClicked()
// CSV is currently the only supported format // CSV is currently the only supported format
QString filename = GUIUtil::getSaveFileName(this, QString filename = GUIUtil::getSaveFileName(this,
tr("Export Transaction History"), QString(), tr("Export Transaction History"), QString(),
tr("Comma separated file (*.csv)"), nullptr); tr("Comma separated file", "Name of CSV file format") + QLatin1String(" (*.csv)"), nullptr);
if (filename.isNull()) if (filename.isNull())
return; return;

View file

@ -273,7 +273,7 @@ void WalletView::backupWallet()
{ {
QString filename = GUIUtil::getSaveFileName(this, QString filename = GUIUtil::getSaveFileName(this,
tr("Backup Wallet"), QString(), tr("Backup Wallet"), QString(),
tr("Wallet Data (*.dat)"), nullptr); tr("Wallet Data", "Name of wallet data file format") + QLatin1String(" (*.dat)"), nullptr);
if (filename.isEmpty()) if (filename.isEmpty())
return; return;