Strings for translation

This commit is contained in:
Aditya Kulkarni
2018-11-27 14:14:39 -08:00
parent 68b138e5b3
commit e1f1741384
7 changed files with 25 additions and 24 deletions

View File

@@ -124,7 +124,7 @@ void AddressBook::open(MainWindow* parent, QLineEdit* target) {
if (!addr.isEmpty() && !ab.label->text().isEmpty()) {
// Test if address is valid.
if (!Settings::isValidAddress(addr)) {
QMessageBox::critical(parent, "Address Format Error", addr + " doesn't seem to be a valid Zcash address.", QMessageBox::Ok);
QMessageBox::critical(parent, QObject::tr("Address Format Error"), addr + QObject::tr(" doesn't seem to be a valid Zcash address."), QMessageBox::Ok);
} else {
model.addNewLabel(ab.label->text(), ab.addr->text());
}
@@ -168,12 +168,12 @@ void AddressBook::open(MainWindow* parent, QLineEdit* target) {
});
}
menu.addAction("Copy address", [&] () {
menu.addAction(QObject::tr("Copy address"), [&] () {
QGuiApplication::clipboard()->setText(addr);
parent->ui->statusBar->showMessage("Copied to clipboard", 3 * 1000);
parent->ui->statusBar->showMessage(QObject::tr("Copied to clipboard"), 3 * 1000);
});
menu.addAction("Delete label", [&] () {
menu.addAction(QObject::tr("Delete label"), [&] () {
model.removeItemAt(index.row());
});