Add CMakeL10n rules.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/7/head
Slávek Banko 6 years ago
parent 44d731b5ac
commit 4fe6ee9e7f
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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/tdeutils" )
##### create translation templates ##############
tde_l10n_auto_add_subdirectories()

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

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

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

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

@ -0,0 +1,6 @@
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "kdf"
EXCLUDES "tdeconftest.cpp"
)

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

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

@ -0,0 +1,6 @@
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "kgpg"
SOURCES "." "tips"
)

@ -0,0 +1,5 @@
##### create translation templates ##############
tde_l10n_create_template( "khexedit" )
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( "khexedit2part" )

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

@ -0,0 +1,30 @@
##### create translation templates ##############
set( KCMLAPTOP_SOURCES
acpi.cpp
apm.cpp
battery.cpp
buttons.cpp
main.cpp
pcmcia.cpp
power.cpp
profile.cpp
sony.cpp
warning.cpp
)
unset( KLAPTOPDAEMON_EXCLUDES )
foreach( _src ${KCMLAPTOP_SOURCES} )
list( APPEND KLAPTOPDAEMON_EXCLUDES "^${_src}\\\$" )
endforeach( )
tde_l10n_create_template(
CATALOG "kcmlaptop"
SOURCES ${KCMLAPTOP_SOURCES}
)
tde_l10n_create_template(
CATALOG "klaptopdaemon"
SOURCES "."
EXCLUDES ${KLAPTOPDAEMON_EXCLUDES}
)

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

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

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

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

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

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

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

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

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

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

@ -0,0 +1,24 @@
##### prepare predefined regexps ################
file( GLOB_RECURSE _regexp_files
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/*.regexp
)
list( SORT _regexp_files )
unset( _regexp_l10n )
foreach( _regexp_file ${_regexp_files} )
tde_l10n_prepare_xml(
SOURCE ${_regexp_file}
TAGS "Title" "Description"
C_FORMAT
)
list( APPEND _regexp_l10n "${_regexp_file}.tde_l10n" )
endforeach( )
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "kregexpeditor"
SOURCES "." ${_regexp_l10n}
)

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

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

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

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

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

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

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

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

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

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

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