summaryrefslogtreecommitdiff
path: root/src/gui/models/serverslistmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/models/serverslistmodel.h')
-rw-r--r--src/gui/models/serverslistmodel.h14
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;
}