Fix i18n: extract messages

This commit is contained in:
Yuri Chornoivan 2019-12-21 16:16:33 +02:00
parent 88fd5eb63d
commit 7935cc15c8
4 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,5 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-indicator\")
set(indicator_SRCS set(indicator_SRCS
main.cpp main.cpp
deviceindicator.cpp deviceindicator.cpp

3
indicator/Messages.sh Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
$XGETTEXT `find . -name '*.cpp'` -o $podir/kdeconnect-indicator.pot

View file

@ -1,3 +1,5 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-interfaces\")
function(geninterface source_h output_h) function(geninterface source_h output_h)
set(xml_file ${CMAKE_CURRENT_BINARY_DIR}/${output_h}.xml) set(xml_file ${CMAKE_CURRENT_BINARY_DIR}/${output_h}.xml)
qt5_generate_dbus_interface( ${source_h} ${xml_file}) qt5_generate_dbus_interface( ${source_h} ${xml_file})

3
interfaces/Messages.sh Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
$XGETTEXT `find . -name '*.cpp' -o -name '*.h'` -o $podir/kdeconnect-interfaces.pot