Add CMakeL10n rules.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/8/head
Slávek Banko 6 years ago committed by TDE Gitea
parent 66285bb35a
commit ba6db0daa9

@ -0,0 +1,28 @@
#################################################
#
# (C) 2018 Slávek Banko
# slavek.banko (AT) axis.cz
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
cmake_minimum_required( VERSION 2.8 )
##### include our cmake modules #################
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEL10n )
##### set directory for POT files ###############
set( POT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../tde-i18n/template/messages/tdenetwork" )
##### create translation templates ##############
tde_l10n_auto_add_subdirectories()

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "dcoprss" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "tdefileshare" )

@ -0,0 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "kdict"
EXCLUDES "^applet/"
)
tde_l10n_auto_add_subdirectories( )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "kdictapplet" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "kget" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "knewsticker" )

@ -0,0 +1,29 @@
##### prepare styles XSL files ##################
file( GLOB_RECURSE _styles_xsl
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/styles/*.xsl
)
foreach( _style_xsl ${_styles_xsl} )
tde_l10n_prepare_xml(
SOURCE ${_style_xsl}
TAGS "kopete-i18n"
CONTEXT "Translators: The %FOO% placeholders are variables that are substituted in the code, please leave them untranslated"
)
list( REMOVE_ITEM _styles_xsl "${_style_xsl}" )
list( APPEND _styles_xsl "${_style_xsl}.tde_l10n" )
endforeach( )
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "kopete"
SOURCES "." ${_styles_xsl}
EXCLUDES
"^libkopete/compat/"
"^protocols/testbed/"
"^styles/.*\\\\.xsl$"
)
tde_l10n_auto_add_subdirectories( )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "tdeio_jabberdisco" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( "kpf" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "kpf" )

@ -0,0 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "kppp"
EXCLUDES "^logview/"
)
tde_l10n_auto_add_subdirectories( )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "kppplogview" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "krdc" )

@ -0,0 +1,10 @@
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "krfb"
EXCLUDES
"^kcm_krfb/"
"^kinetd/"
)
tde_l10n_auto_add_subdirectories( )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "kcm_krfb" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "kinetd" )

@ -0,0 +1,6 @@
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "ksirc"
EXCLUDES "^test/"
)

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "kcmktalkd" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "kcmlanbrowser" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "tdeio_lan" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "tdeio_zeroconf" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "tdefile_torrent" )

@ -0,0 +1,10 @@
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "kwifimanager"
EXCLUDES
"^kcmwifi/"
"^kwireless/"
)
tde_l10n_auto_add_subdirectories( )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "kcmwifi" )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "kwireless" )
Loading…
Cancel
Save