diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-12 23:02:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-12 23:02:11 +0300 |
commit | 5546a30788216ca9bab885cc97744ef8240dc32f (patch) | |
tree | 5de39ec4aee068d53e12807d31199481971bb3ef /src/gui/models | |
parent | 6b0ade8b1ba9d9364b889d93c37486a52840031e (diff) | |
download | plus-5546a30788216ca9bab885cc97744ef8240dc32f.tar.gz plus-5546a30788216ca9bab885cc97744ef8240dc32f.tar.bz2 plus-5546a30788216ca9bab885cc97744ef8240dc32f.tar.xz plus-5546a30788216ca9bab885cc97744ef8240dc32f.zip |
Add comments for unknown licensed and non free servers.
For non free: (NON FREE)
for unknown: (UNKNOWN)
Diffstat (limited to 'src/gui/models')
-rw-r--r-- | src/gui/models/serverslistmodel.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/models/serverslistmodel.h b/src/gui/models/serverslistmodel.h index 935fd3422..206daa02a 100644 --- a/src/gui/models/serverslistmodel.h +++ b/src/gui/models/serverslistmodel.h @@ -31,6 +31,8 @@ #include "gui/models/listmodel.h" +#include "utils/gettext.h" + /** * Server and Port List Model */ @@ -68,6 +70,18 @@ class ServersListModel final : public ListModel MutexLocker lock = mParent->lock(); const ServerInfo &server = mServers->at(elementIndex); std::string myServer; + if (server.freeType == ServerFreeType::NonFree) + { + // TRANSLATORS: server license comment + myServer.append(_("(NON FREE)")); + myServer.append(" "); + } + else if (server.freeType == ServerFreeType::Unknown) + { + // TRANSLATORS: server license comment + myServer.append(_("(UNKNOWN)")); + myServer.append(" "); + } myServer.append(server.hostname); return myServer; } |