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