From b95b665c78a047fc540e2bc4a8c19be6db03b825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 9 Dec 2018 04:00:36 +0100 Subject: Add CMakeL10n rules. Update TIMEZONES list. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- konsole/CMakeL10n.txt | 3 +++ konsole/konsole/CMakeL10n.txt | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 konsole/CMakeL10n.txt create mode 100644 konsole/konsole/CMakeL10n.txt (limited to 'konsole') diff --git a/konsole/CMakeL10n.txt b/konsole/CMakeL10n.txt new file mode 100644 index 000000000..b585ce4af --- /dev/null +++ b/konsole/CMakeL10n.txt @@ -0,0 +1,3 @@ +##### create translation templates ############## + +tde_l10n_auto_add_subdirectories( ) diff --git a/konsole/konsole/CMakeL10n.txt b/konsole/konsole/CMakeL10n.txt new file mode 100644 index 000000000..e9ca20799 --- /dev/null +++ b/konsole/konsole/CMakeL10n.txt @@ -0,0 +1,36 @@ +##### prepare list of schemas ################### + +file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/schemas.tde_l10n "" ) +file( GLOB _konsole_schema_files + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../other/*.[Ss]chema +) +list( SORT _konsole_schema_files ) +foreach( _konsole_schema_file ${_konsole_schema_files} ) + file( STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/${_konsole_schema_file} _konsole_schema_title REGEX "^title " ) + if( _konsole_schema_title ) + string( REGEX REPLACE "^title +(.*) *" "\\1" _konsole_schema_title ${_konsole_schema_title} ) + file( APPEND ${CMAKE_CURRENT_SOURCE_DIR}/schemas.tde_l10n "i18n(\"${_konsole_schema_title}\");\n" ) + endif( ) +endforeach( ) + +file( GLOB _konsole_keytab_files + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../other/*.[Kk]eytab +) +list( SORT _konsole_keytab_files ) +foreach( _konsole_keytab_file ${_konsole_keytab_files} ) + file( STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/${_konsole_keytab_file} _konsole_keytab_title REGEX "^keyboard " ) + if( _konsole_keytab_title ) + string( REGEX REPLACE "^keyboard +\"(.*)\" *" "\\1" _konsole_keytab_title ${_konsole_keytab_title} ) + file( APPEND ${CMAKE_CURRENT_SOURCE_DIR}/schemas.tde_l10n "i18n(\"${_konsole_keytab_title}\");\n" ) + endif( ) +endforeach( ) + + +##### create translation templates ############## + +tde_l10n_create_template( + CATALOG "konsole" + SOURCES "." "schemas.tde_l10n" "../tips" +) -- cgit v1.2.3