Skip to content

Commit

Permalink
Merge pull request #2295 from barton2526/translate
Browse files Browse the repository at this point in the history
qt: Do not translate file extensions
  • Loading branch information
jamescowens committed Aug 24, 2021
2 parents 12f4012 + c8f2927 commit 9163cba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/qt/addressbookpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <QSortFilterProxyModel>
#include <QClipboard>
#include <QLatin1String>
#include <QMessageBox>
#include <QMenu>

Expand Down Expand Up @@ -326,7 +327,7 @@ void AddressBookPage::exportClicked()
QString filename = GUIUtil::getSaveFileName(
this,
tr("Export Address Book Data"), QString(),
tr("Comma separated file (*.csv)"));
tr("Comma separated file", "Name of CSV file format") + QLatin1String(" (*.csv)"), nullptr);

if (filename.isNull()) return;

Expand Down
5 changes: 4 additions & 1 deletion src/qt/qrcodedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "guiutil.h"
#include "optionsmodel.h"

#include <QLatin1String>
#include <QPixmap>
#include <QUrl>

Expand Down Expand Up @@ -147,7 +148,9 @@ void QRCodeDialog::on_messageEdit_textChanged()

void QRCodeDialog::on_saveAsButton_clicked()
{
QString fn = GUIUtil::getSaveFileName(this, tr("Save QR Code"), QString(), tr("PNG Images (*.png)"));
QString fn = GUIUtil::getSaveFileName(
this, tr("Save QR Code"), QString(),
tr("PNG Image", "Name of PNG file format") + QLatin1String(" (*.png)"), nullptr);
if (!fn.isEmpty())
myImage.scaled(EXPORT_IMAGE_SIZE, EXPORT_IMAGE_SIZE).save(fn);
}
Expand Down
3 changes: 2 additions & 1 deletion src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <QDoubleValidator>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLatin1String>
#include <QLineEdit>
#include <QTableView>
#include <QHeaderView>
Expand Down Expand Up @@ -284,7 +285,7 @@ void TransactionView::exportClicked()
QString filename = GUIUtil::getSaveFileName(
this,
tr("Export Transaction Data"), QString(),
tr("Comma separated file (*.csv)"));
tr("Comma separated file", "Name of CSV file format") + QLatin1String(" (*.csv)"), nullptr);

if (filename.isNull()) return;

Expand Down

0 comments on commit 9163cba

Please sign in to comment.