diff options
| author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-10-12 20:49:57 +0200 |
|---|---|---|
| committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-10-12 20:49:57 +0200 |
| commit | 904e473fedbd3b18f925d984a04c9c03b55045a2 (patch) | |
| tree | f9c34839ae8555cc81913d3014badac9791382d9 /context.cpp | |
| parent | reviewed strings in settingsdialog (diff) | |
| download | gpg4usb-904e473fedbd3b18f925d984a04c9c03b55045a2.tar.gz gpg4usb-904e473fedbd3b18f925d984a04c9c03b55045a2.zip | |
corrected bug for statusbar icon (icon was shown, if attachment folder didn't exist)
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@384 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'context.cpp')
| -rw-r--r-- | context.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/context.cpp b/context.cpp index b2dfef9..323a18e 100644 --- a/context.cpp +++ b/context.cpp @@ -243,7 +243,7 @@ bool Context::encrypt(QStringList *uidList, const QByteArray &inBuffer, QByteArr outBuffer->resize(0); if (uidList->count() == 0) { - QMessageBox::critical(0, "No Key Selected", "No Key Selected"); + QMessageBox::critical(0, tr("No Key Selected"), tr("No Key Selected")); return false; } @@ -311,7 +311,7 @@ bool Context::decrypt(const QByteArray &inBuffer, QByteArray *outBuffer) if (!err) { result = gpgme_op_decrypt_result(mCtx); if (result->unsupported_algorithm) { - QMessageBox::critical(0, "Unsupported algorithm", result->unsupported_algorithm); + QMessageBox::critical(0, tr("Unsupported algorithm"), result->unsupported_algorithm); } else { err = readToBuffer(out, outBuffer); checkErr(err); @@ -321,7 +321,7 @@ bool Context::decrypt(const QByteArray &inBuffer, QByteArray *outBuffer) } } if (err != GPG_ERR_NO_ERROR && err != GPG_ERR_CANCELED) { - QMessageBox::critical(0, "Error decrypting:", gpgme_strerror(err)); + QMessageBox::critical(0, tr("Error decrypting:"), gpgme_strerror(err)); } //if (err != GPG_ERR_NO_ERROR) @@ -391,7 +391,7 @@ gpgme_error_t Context::passphrase(const char *uid_hint, bool result; if (last_was_bad) { - passwordDialogMessage += "<i>Wrong password.</i><br><br>\n\n"; + passwordDialogMessage += "<i>"+tr("Wrong password")+".</i><br><br>\n\n"; clearPasswordCache(); } @@ -403,7 +403,7 @@ gpgme_error_t Context::passphrase(const char *uid_hint, } if (mPasswordCache.isEmpty()) { - QString password = QInputDialog::getText(0, "Enter Password", + QString password = QInputDialog::getText(0, tr("Enter Password"), passwordDialogMessage, QLineEdit::Password, "", &result, Qt::Window); |
