From 4e89d5d8053697cb882e659a88156eacec15dcfe Mon Sep 17 00:00:00 2001 From: Carmina16 Date: Sat, 6 Mar 2021 22:32:26 +0700 Subject: Implement interface translation --- src/trustedhostcollection.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/trustedhostcollection.cpp') diff --git a/src/trustedhostcollection.cpp b/src/trustedhostcollection.cpp index bbc7720..a3d6c1a 100644 --- a/src/trustedhostcollection.cpp +++ b/src/trustedhostcollection.cpp @@ -28,9 +28,9 @@ QVariant TrustedHostCollection::headerData(int section, Qt::Orientation orientat { switch(section) { - case 0: return "Host Name"; - case 1: return "First Seen"; - case 2: return "Key Type"; + case 0: return QObject::tr("Host Name"); + case 1: return QObject::tr("First Seen"); + case 2: return QObject::tr("Key Type"); } } return QVariant { }; @@ -71,8 +71,8 @@ QVariant TrustedHostCollection::data(const QModelIndex &index, int role) const case QSsl::Ec: return "EC"; // case QSsl::Dh: return "DH"; case QSsl::Dsa: return "DSA"; - case QSsl::Opaque: return "Opaque"; - default: return "Unforseen"; + case QSsl::Opaque: return QObject::tr("Opaque"); + default: return QObject::tr("Unforseen"); } } } -- cgit v1.2.3