mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-21 12:38:12 -04:00
fix protected transalation
This commit is contained in:
parent
71ae2a3458
commit
8416d69f1e
2 changed files with 5 additions and 5 deletions
|
@ -152,7 +152,7 @@ void DetailsWidget::getSelectedEntry(Entry* selectedEntry)
|
|||
for (const QString& key : customAttributes) {
|
||||
QString value = m_currentEntry->attributes()->value(key);
|
||||
if (m_currentEntry->attributes()->isProtected(key)) {
|
||||
value = "<i>[PROTECTED]</i>";
|
||||
value = "<i>" + tr("[PROTECTED]") + "</i>";
|
||||
}
|
||||
attributesText.append(QString("<b>%1</b>: %2<br/>").arg(key, value));
|
||||
}
|
||||
|
@ -273,7 +273,7 @@ QString DetailsWidget::shortUrl(QString url)
|
|||
QString newurl = "";
|
||||
if (url.length() > 60) {
|
||||
newurl.append(url.left(20));
|
||||
newurl.append("...");
|
||||
newurl.append("…");
|
||||
newurl.append(url.right(20));
|
||||
return newurl;
|
||||
}
|
||||
|
@ -285,7 +285,7 @@ QString DetailsWidget::shortPassword(QString password)
|
|||
QString newpassword = "";
|
||||
if (password.length() > 60) {
|
||||
newpassword.append(password.left(50));
|
||||
newpassword.append("...");
|
||||
newpassword.append("…");
|
||||
return newpassword;
|
||||
}
|
||||
return password;
|
||||
|
|
|
@ -632,7 +632,7 @@ void EditEntryWidget::displayAttribute(QModelIndex index, bool showProtected)
|
|||
if (index.isValid()) {
|
||||
QString key = m_attributesModel->keyByIndex(index);
|
||||
if (showProtected) {
|
||||
m_advancedUi->attributesEdit->setPlainText(tr("[PROTECTED] Press reveal to view or edit"));
|
||||
m_advancedUi->attributesEdit->setPlainText(tr("[PROTECTED]") + " " + tr("Press reveal to view or edit"));
|
||||
m_advancedUi->attributesEdit->setEnabled(false);
|
||||
m_advancedUi->revealAttributeButton->setEnabled(true);
|
||||
m_advancedUi->protectAttributeButton->setChecked(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue