mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 07:49:50 -05:00
fix protected transalation
This commit is contained in:
parent
71ae2a3458
commit
8416d69f1e
@ -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));
|
||||
}
|
||||
@ -161,7 +161,7 @@ void DetailsWidget::getSelectedEntry(Entry* selectedEntry)
|
||||
|
||||
m_ui->autotypeTree->clear();
|
||||
AutoTypeAssociations* autotypeAssociations = m_currentEntry->autoTypeAssociations();
|
||||
QList<QTreeWidgetItem *> items;
|
||||
QList<QTreeWidgetItem*> items;
|
||||
for (auto assoc : autotypeAssociations->getAll()) {
|
||||
QStringList association = QStringList() << assoc.window << assoc.sequence;
|
||||
if (association.at(1).isEmpty()) {
|
||||
@ -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…
Reference in New Issue
Block a user