From 5546a30788216ca9bab885cc97744ef8240dc32f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Jun 2017 23:02:11 +0300 Subject: Add comments for unknown licensed and non free servers. For non free: (NON FREE) for unknown: (UNKNOWN) --- src/gui/models/serverslistmodel.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gui/models') 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; } -- cgit v1.2.3-70-g09d2