Commit 9a5f5cf8 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Add translation stuff

parent 4924a9b9
add_definitions(-DTRANSLATION_DOMAIN=\"gmenu_dbusmenu_proxy\")
add_definitions(-DQT_NO_CAST_TO_ASCII
-DQT_NO_CAST_FROM_ASCII
-DQT_NO_URL_CAST_FROM_STRING
......@@ -34,6 +36,7 @@ target_link_libraries(gmenudbusmenuproxy
Qt5::DBus
KF5::ConfigCore
KF5::WindowSystem
KF5::I18n
XCB::XCB
)
......
#! /bin/sh
$XGETTEXT *.cpp -o $podir/gmenu_dbusmenu_proxy.pot
......@@ -30,6 +30,8 @@
#include <QMutableListIterator>
#include <QVariantList>
#include <KLocalizedString>
#include <algorithm>
#include "dbusmenuadaptor.h"
......@@ -828,8 +830,8 @@ uint Menu::GetLayout(int parentId, int recursionDepth, const QStringList &proper
}
dbusItem.id = parentId; // TODO
// TODO use gMenuToDBusMenuProperties?
dbusItem.properties = {
{QStringLiteral("label"), i18n("Menu")}, // TODO use application name?
{QStringLiteral("children-display"), QStringLiteral("submenu")}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment