Commit f1cfc191 authored by Karel Slaný's avatar Karel Slaný

Updated Czech localisation.

parent ad6e271b
This diff is collapsed.
This diff is collapsed.
...@@ -178,12 +178,12 @@ bool Accounts::createAccount(const QVariant &acntModelVariant, ...@@ -178,12 +178,12 @@ bool Accounts::createAccount(const QVariant &acntModelVariant,
} }
if (newUserName.isEmpty() || acntName.isEmpty() || pwd.isEmpty()) { if (newUserName.isEmpty() || acntName.isEmpty() || pwd.isEmpty()) {
errTxt = tr("User name, password or account name has not been specified. These fields must be filled in"); errTxt = tr("Username, password or account name has not been specified. These fields must be filled in.");
goto fail; goto fail;
} }
if (!usernameCorrectLength(newUserName)) { if (!usernameCorrectLength(newUserName)) {
errTxt = tr("User name '%1' has wrong length.").arg(newUserName); errTxt = tr("Username '%1' has wrong length.").arg(newUserName);
goto fail; goto fail;
} }
...@@ -197,7 +197,7 @@ bool Accounts::createAccount(const QVariant &acntModelVariant, ...@@ -197,7 +197,7 @@ bool Accounts::createAccount(const QVariant &acntModelVariant,
acntData.setCertPath(certPath); acntData.setCertPath(certPath);
if (accountModel->addAccount(acntData) == AccountListModel::AA_EXISTS) { if (accountModel->addAccount(acntData) == AccountListModel::AA_EXISTS) {
errTxt = tr("Account with user name '%1' already exists.").arg(newUserName); errTxt = tr("Account with username '%1' already exists.").arg(newUserName);
goto fail; goto fail;
} }
...@@ -440,7 +440,8 @@ bool Accounts::prepareChangeUserName(const QVariant &acntModelVariant, ...@@ -440,7 +440,8 @@ bool Accounts::prepareChangeUserName(const QVariant &acntModelVariant,
/* Show confirm dialogue about use name changing */ /* Show confirm dialogue about use name changing */
int msgResponse = Dialogues::message(Dialogues::QUESTION, int msgResponse = Dialogues::message(Dialogues::QUESTION,
tr("Change user name: %1").arg(oldUserName), tr("Change user name: %1").arg(oldUserName),
tr("Do you want to change user name from '%1' to '%2' of account '%3'?").arg(oldUserName).arg(newUserName).arg(acntName), tr("Do you want to change the username from '%1' to '%2' for the account '%3'?")
.arg(oldUserName).arg(newUserName).arg(acntName),
tr("Note: It will also change all related local database names and account information."), tr("Note: It will also change all related local database names and account information."),
Dialogues::NO | Dialogues::YES, Dialogues::NO); Dialogues::NO | Dialogues::YES, Dialogues::NO);
if (msgResponse == Dialogues::NO) { if (msgResponse == Dialogues::NO) {
...@@ -488,7 +489,7 @@ bool changeFileDbName(const QString &oldUserName, ...@@ -488,7 +489,7 @@ bool changeFileDbName(const QString &oldUserName,
FileDb *fDb = GlobInstcs::fileDbsPtr->accessFileDb( FileDb *fDb = GlobInstcs::fileDbsPtr->accessFileDb(
GlobInstcs::setPtr->dbsLocation, oldUserName, storeToDisk); GlobInstcs::setPtr->dbsLocation, oldUserName, storeToDisk);
if (Q_UNLIKELY(fDb == Q_NULLPTR)) { if (Q_UNLIKELY(fDb == Q_NULLPTR)) {
errTxt = Accounts::tr("Cannot access file database for the user name '%1'.") errTxt = Accounts::tr("Cannot access file database for the username '%1'.")
.arg(oldUserName); .arg(oldUserName);
return false; return false;
} }
...@@ -497,7 +498,7 @@ bool changeFileDbName(const QString &oldUserName, ...@@ -497,7 +498,7 @@ bool changeFileDbName(const QString &oldUserName,
QString currentDbFileName = fDb->fileName(); QString currentDbFileName = fDb->fileName();
currentDbFileName.replace(oldUserName, newUserName); currentDbFileName.replace(oldUserName, newUserName);
if (!fDb->moveDb(currentDbFileName)) { if (!fDb->moveDb(currentDbFileName)) {
errTxt = Accounts::tr("Cannot change file database on the user name '%1'.") errTxt = Accounts::tr("Cannot change file database to username '%1'.")
.arg(newUserName); .arg(newUserName);
return false; return false;
} }
...@@ -523,7 +524,7 @@ bool changeMessageDbName(const QString &oldUserName, ...@@ -523,7 +524,7 @@ bool changeMessageDbName(const QString &oldUserName,
MessageDb *msgDb = GlobInstcs::messageDbsPtr->accessMessageDb( MessageDb *msgDb = GlobInstcs::messageDbsPtr->accessMessageDb(
GlobInstcs::setPtr->dbsLocation, oldUserName, storeToDisk); GlobInstcs::setPtr->dbsLocation, oldUserName, storeToDisk);
if (Q_UNLIKELY(msgDb == Q_NULLPTR)) { if (Q_UNLIKELY(msgDb == Q_NULLPTR)) {
errTxt = Accounts::tr("Cannot access message database for user name '%1'.") errTxt = Accounts::tr("Cannot access message database for username '%1'.")
.arg(oldUserName); .arg(oldUserName);
return false; return false;
} }
...@@ -532,7 +533,7 @@ bool changeMessageDbName(const QString &oldUserName, ...@@ -532,7 +533,7 @@ bool changeMessageDbName(const QString &oldUserName,
QString currentDbFileName = msgDb->fileName(); QString currentDbFileName = msgDb->fileName();
currentDbFileName.replace(oldUserName, newUserName); currentDbFileName.replace(oldUserName, newUserName);
if (!msgDb->moveDb(currentDbFileName)) { if (!msgDb->moveDb(currentDbFileName)) {
errTxt = Accounts::tr("Cannot change message database on the user name '%1'.") errTxt = Accounts::tr("Cannot change message database to username '%1'.")
.arg(newUserName); .arg(newUserName);
return false; return false;
} }
...@@ -595,8 +596,8 @@ bool Accounts::changeAccountUserName(const QVariant &acntModelVariant, ...@@ -595,8 +596,8 @@ bool Accounts::changeAccountUserName(const QVariant &acntModelVariant,
newUserName.toUtf8().constData()); newUserName.toUtf8().constData());
Dialogues::errorMessage(Dialogues::INFORMATION, Dialogues::errorMessage(Dialogues::INFORMATION,
tr("Change user name: %1").arg(oldUserName), tr("Change username: %1").arg(oldUserName),
tr("A new user name '%1' for the account '%2' has been set.") tr("A new username '%1' for the account '%2' has been set.")
.arg(newUserName).arg(acntName), .arg(newUserName).arg(acntName),
tr("Account will use the new settings.")); tr("Account will use the new settings."));
...@@ -621,8 +622,8 @@ rollbackAccountChanges: ...@@ -621,8 +622,8 @@ rollbackAccountChanges:
fail: fail:
/* Show error dialogue with message what happened */ /* Show error dialogue with message what happened */
Dialogues::errorMessage(Dialogues::CRITICAL, Dialogues::errorMessage(Dialogues::CRITICAL,
tr("User name problem: %1").arg(oldUserName), tr("Username problem: %1").arg(oldUserName),
tr("The new user name '%1' for account '%2' has not been set!") tr("The new username '%1' for account '%2' has not been set!")
.arg(newUserName).arg(acntName), .arg(newUserName).arg(acntName),
errTxt + QStringLiteral(" ") + errTxt + QStringLiteral(" ") +
tr("Account will use the original settings.")); tr("Account will use the original settings."));
......
...@@ -1163,7 +1163,7 @@ void IsdsWrapper::doLoginAction(const QString &isdsAction, ...@@ -1163,7 +1163,7 @@ void IsdsWrapper::doLoginAction(const QString &isdsAction,
} else if (isdsAction == "changeUserName") { } else if (isdsAction == "changeUserName") {
Dialogues::errorMessage(Dialogues::CRITICAL, Dialogues::errorMessage(Dialogues::CRITICAL,
tr("Username change: %1").arg(userName), tr("Username change: %1").arg(userName),
tr("Username could not be changed because an error occurred while trying to log in with new user name '%1'.") tr("Username could not be changed because an error occurred while trying to log in with the new username '%1'.")
.arg(userName), .arg(userName),
tr("ISDS returns:") + " " + m_isdsSession.isdsCtxMap[userName].last_isds_msg + "\n\n" + tr("ISDS returns:") + " " + m_isdsSession.isdsCtxMap[userName].last_isds_msg + "\n\n" +
tr("Check your login data and try again.")); tr("Check your login data and try again."));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment