summaryrefslogtreecommitdiffstats
path: root/src/sessiontreeitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sessiontreeitem.cpp')
-rw-r--r--src/sessiontreeitem.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sessiontreeitem.cpp b/src/sessiontreeitem.cpp
index 65deae8..5f3c28e 100644
--- a/src/sessiontreeitem.cpp
+++ b/src/sessiontreeitem.cpp
@@ -1,15 +1,16 @@
#include "sessiontreeitem.h"
+#include <QCoreApplication>
QString SessionTreeItem::typeToName(const SectionType type) {
switch (type) {
case SECTION_FOR_LOCATION:
- return QObject::tr("Working environments for this room");
+ return QCoreApplication::instance()->translate("Dialog", "Working environments for this room");
case SECTION_TEMPLATES:
- return QObject::tr("Templates");
+ return QCoreApplication::instance()->translate("Dialog", "Templates");
case SECTION_GENERIC:
- return QObject::tr("Working environments");
+ return QCoreApplication::instance()->translate("Dialog", "Working environments");
case SECTION_XSESSION:
- return QObject::tr("X-Sessions");
+ return QCoreApplication::instance()->translate("Dialog", "X-Sessions");
case SECTION_NULL:
return "<null>";
default: