Add translations for the daemon as such.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3d7a0102b1)
r14.0.x
Slávek Banko 4 years ago
parent f724e418b8
commit bff2c03daf
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -45,6 +45,12 @@ option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} ) option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
##### user requested modules #####
option( BUILD_ALL "Build all" ON )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks ##### configure checks
include( ConfigureChecks.cmake ) include( ConfigureChecks.cmake )
@ -62,6 +68,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined"
##### directories ##### directories
add_subdirectory( src ) add_subdirectory( src )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations )
##### write configure files ##### write configure files

@ -1,5 +1,7 @@
##### create translation templates ############## ##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )
tde_l10n_create_template( tde_l10n_create_template(
CATALOG "desktop_files/kdbusnotification-autostart.desktop/" CATALOG "desktop_files/kdbusnotification-autostart.desktop/"
SOURCES kdbusnotification-autostart.desktop SOURCES kdbusnotification-autostart.desktop

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/notification-daemon-tde/daemon" )

@ -0,0 +1 @@
tde_auto_add_subdirectories()

@ -0,0 +1,14 @@
file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" )
foreach( _po ${po_files} )
get_filename_component( _lang ${_po} NAME_WE )
if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" )
if( "${_po}" MATCHES "^([^/]*)/.*" )
string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" )
else( )
set( _component "${PROJECT_NAME}" )
endif( )
tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} )
endif( )
endforeach( )

@ -0,0 +1,40 @@
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2020-06-21 10:55+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Instead of a literal translation, add your name to the end of the list (separated by a comma).
#, ignore-inconsistent
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr ""
#. Instead of a literal translation, add your email to the end of the list (separated by a comma).
#, ignore-inconsistent
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr ""
#: daemon.cpp:85
msgid "A DBUS notification to TDE interface."
msgstr ""
#: daemon.cpp:87
msgid "First release October 2011."
msgstr ""
#: daemon.cpp:294
msgid "TDE DBUS Notification Daemon"
msgstr ""
Loading…
Cancel
Save