From 8416d69f1e0b390b82c0c2dea7bd158e10eb7bed Mon Sep 17 00:00:00 2001 From: thez3ro Date: Tue, 24 Oct 2017 14:08:22 +0200 Subject: [PATCH] fix protected transalation --- src/gui/DetailsWidget.cpp | 8 ++++---- src/gui/entry/EditEntryWidget.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/DetailsWidget.cpp b/src/gui/DetailsWidget.cpp index 1ec891a60..51448a970 100644 --- a/src/gui/DetailsWidget.cpp +++ b/src/gui/DetailsWidget.cpp @@ -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 = "[PROTECTED]"; + value = "" + tr("[PROTECTED]") + ""; } attributesText.append(QString("%1: %2
").arg(key, value)); } @@ -161,7 +161,7 @@ void DetailsWidget::getSelectedEntry(Entry* selectedEntry) m_ui->autotypeTree->clear(); AutoTypeAssociations* autotypeAssociations = m_currentEntry->autoTypeAssociations(); - QList items; + QList 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; diff --git a/src/gui/entry/EditEntryWidget.cpp b/src/gui/entry/EditEntryWidget.cpp index 463096b32..2d17c3459 100644 --- a/src/gui/entry/EditEntryWidget.cpp +++ b/src/gui/entry/EditEntryWidget.cpp @@ -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);