From 7935cc15c8ca456cacc43dcf61ab7bec1ea1aab2 Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan Date: Sat, 21 Dec 2019 16:16:33 +0200 Subject: [PATCH] Fix i18n: extract messages --- indicator/CMakeLists.txt | 2 ++ indicator/Messages.sh | 3 +++ interfaces/CMakeLists.txt | 2 ++ interfaces/Messages.sh | 3 +++ 4 files changed, 10 insertions(+) create mode 100644 indicator/Messages.sh create mode 100644 interfaces/Messages.sh diff --git a/indicator/CMakeLists.txt b/indicator/CMakeLists.txt index d10686a82..11175a347 100644 --- a/indicator/CMakeLists.txt +++ b/indicator/CMakeLists.txt @@ -1,3 +1,5 @@ +add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-indicator\") + set(indicator_SRCS main.cpp deviceindicator.cpp diff --git a/indicator/Messages.sh b/indicator/Messages.sh new file mode 100644 index 000000000..7706919b5 --- /dev/null +++ b/indicator/Messages.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +$XGETTEXT `find . -name '*.cpp'` -o $podir/kdeconnect-indicator.pot diff --git a/interfaces/CMakeLists.txt b/interfaces/CMakeLists.txt index f0c000ee7..22adafeaf 100644 --- a/interfaces/CMakeLists.txt +++ b/interfaces/CMakeLists.txt @@ -1,3 +1,5 @@ +add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-interfaces\") + function(geninterface source_h output_h) set(xml_file ${CMAKE_CURRENT_BINARY_DIR}/${output_h}.xml) qt5_generate_dbus_interface( ${source_h} ${xml_file}) diff --git a/interfaces/Messages.sh b/interfaces/Messages.sh new file mode 100644 index 000000000..f35eb33fe --- /dev/null +++ b/interfaces/Messages.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +$XGETTEXT `find . -name '*.cpp' -o -name '*.h'` -o $podir/kdeconnect-interfaces.pot