From 2f706891f32258c2b070471905f983e4585296d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 26 Jun 2020 11:36:35 +0200 Subject: Desktop file translations: + Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- ksplashml/pics/themes/CMakeL10n.txt | 15 +++++++++++++++ ksplashml/pics/themes/TDE-Classic/CMakeLists.txt | 14 +++++++++++--- ksplashml/pics/themes/TDE-Classic/locolor/CMakeLists.txt | 14 +++++++++++--- ksplashml/pics/themes/blue-bend/CMakeLists.txt | 14 +++++++++++--- ksplashml/pics/themes/default/CMakeLists.txt | 14 +++++++++++--- ksplashml/pics/themes/default/Theme.rc | 2 +- ksplashml/pics/themes/none/CMakeLists.txt | 8 +++++--- ksplashml/pics/themes/simple/CMakeLists.txt | 13 ++++++++++--- ksplashml/pics/themes/unified/CMakeLists.txt | 8 +++++--- 9 files changed, 80 insertions(+), 22 deletions(-) create mode 100644 ksplashml/pics/themes/CMakeL10n.txt (limited to 'ksplashml/pics/themes') diff --git a/ksplashml/pics/themes/CMakeL10n.txt b/ksplashml/pics/themes/CMakeL10n.txt new file mode 100644 index 000000000..be21a4224 --- /dev/null +++ b/ksplashml/pics/themes/CMakeL10n.txt @@ -0,0 +1,15 @@ +##### create translation templates ############## + +file( + GLOB_RECURSE _themes + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/*Theme.rc +) +list( SORT _themes ) + +tde_l10n_create_template( + CATALOG "desktop_files/ksplash-themes/" + SOURCES_DESKTOP ${_themes} + KEYWORDS Message1 Message2 Message3 Message4 Message5 Message6 Message7 Message8 + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/ksplashml/pics/themes/TDE-Classic/CMakeLists.txt b/ksplashml/pics/themes/TDE-Classic/CMakeLists.txt index f2ed63cae..1d0c03357 100644 --- a/ksplashml/pics/themes/TDE-Classic/CMakeLists.txt +++ b/ksplashml/pics/themes/TDE-Classic/CMakeLists.txt @@ -11,7 +11,15 @@ add_subdirectory( locolor ) -install( FILES - Theme.rc Preview.png splash_active_bar.png splash_bottom.png +tde_create_translated_desktop( + SOURCE Theme.rc + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/TDE-Classic + PO_DIR ksplash-themes +) + +install( + FILES + Preview.png splash_active_bar.png splash_bottom.png splash_inactive_bar.png splash_top.png - DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/TDE-Classic ) + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/TDE-Classic +) diff --git a/ksplashml/pics/themes/TDE-Classic/locolor/CMakeLists.txt b/ksplashml/pics/themes/TDE-Classic/locolor/CMakeLists.txt index 15c610108..421186d7c 100644 --- a/ksplashml/pics/themes/TDE-Classic/locolor/CMakeLists.txt +++ b/ksplashml/pics/themes/TDE-Classic/locolor/CMakeLists.txt @@ -9,7 +9,15 @@ # ################################################# -install( FILES - Theme.rc splash_active_bar.png splash_bottom.png +tde_create_translated_desktop( + SOURCE Theme.rc + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/TDE-Classic/locolor + PO_DIR ksplash-themes +) + +install( + FILES + splash_active_bar.png splash_bottom.png splash_inactive_bar.png splash_top.png - DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/TDE-Classic/locolor ) + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/TDE-Classic/locolor +) diff --git a/ksplashml/pics/themes/blue-bend/CMakeLists.txt b/ksplashml/pics/themes/blue-bend/CMakeLists.txt index 76a069a83..33abeb758 100644 --- a/ksplashml/pics/themes/blue-bend/CMakeLists.txt +++ b/ksplashml/pics/themes/blue-bend/CMakeLists.txt @@ -9,7 +9,15 @@ # ################################################# -install( FILES - Theme.rc Preview.png splash_active_bar.png splash_bottom.png +tde_create_translated_desktop( + SOURCE Theme.rc + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/blue-bend + PO_DIR ksplash-themes +) + +install( + FILES + Preview.png splash_active_bar.png splash_bottom.png splash_inactive_bar.png splash_top.png - DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/blue-bend ) + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/blue-bend +) diff --git a/ksplashml/pics/themes/default/CMakeLists.txt b/ksplashml/pics/themes/default/CMakeLists.txt index 6157c39cd..fe70941bc 100644 --- a/ksplashml/pics/themes/default/CMakeLists.txt +++ b/ksplashml/pics/themes/default/CMakeLists.txt @@ -9,7 +9,15 @@ # ################################################# -install( FILES - Theme.rc Preview.png splash_active_bar.png splash_bottom.png +tde_create_translated_desktop( + SOURCE Theme.rc + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Default + PO_DIR ksplash-themes +) + +install( + FILES + Preview.png splash_active_bar.png splash_bottom.png splash_inactive_bar.png splash_top.png - DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Default ) + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Default +) diff --git a/ksplashml/pics/themes/default/Theme.rc b/ksplashml/pics/themes/default/Theme.rc index 00896eb33..b218149ec 100644 --- a/ksplashml/pics/themes/default/Theme.rc +++ b/ksplashml/pics/themes/default/Theme.rc @@ -16,4 +16,4 @@ Engine = Default Icons Flashing = true # Offset of each of the 7 icons, useful for adjusting flashing positon for different size icons -# Icon Offsets = 0, 0, 0, 0, 0, 0, 0 \ No newline at end of file +# Icon Offsets = 0, 0, 0, 0, 0, 0, 0 diff --git a/ksplashml/pics/themes/none/CMakeLists.txt b/ksplashml/pics/themes/none/CMakeLists.txt index fce8f9d00..91121384a 100644 --- a/ksplashml/pics/themes/none/CMakeLists.txt +++ b/ksplashml/pics/themes/none/CMakeLists.txt @@ -9,6 +9,8 @@ # ################################################# -install( FILES - Theme.rc - DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/None ) +tde_create_translated_desktop( + SOURCE Theme.rc + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/None + PO_DIR ksplash-themes +) diff --git a/ksplashml/pics/themes/simple/CMakeLists.txt b/ksplashml/pics/themes/simple/CMakeLists.txt index 901752d0b..16ca90dda 100644 --- a/ksplashml/pics/themes/simple/CMakeLists.txt +++ b/ksplashml/pics/themes/simple/CMakeLists.txt @@ -9,6 +9,13 @@ # ################################################# -install( FILES - Theme.rc Preview.png - DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Simple ) +tde_create_translated_desktop( + SOURCE Theme.rc + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Simple + PO_DIR ksplash-themes +) + +install( + FILES Preview.png + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Simple +) diff --git a/ksplashml/pics/themes/unified/CMakeLists.txt b/ksplashml/pics/themes/unified/CMakeLists.txt index 0c99ebb00..c716f8d59 100644 --- a/ksplashml/pics/themes/unified/CMakeLists.txt +++ b/ksplashml/pics/themes/unified/CMakeLists.txt @@ -9,6 +9,8 @@ # ################################################# -install( FILES - Theme.rc - DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Unified ) +tde_create_translated_desktop( + SOURCE Theme.rc + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Unified + PO_DIR ksplash-themes +) -- cgit v1.2.3