summaryrefslogtreecommitdiffstats
path: root/ksplashml/pics
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-26 11:36:35 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-28 00:41:12 +0200
commit2f706891f32258c2b070471905f983e4585296d2 (patch)
tree6c74e28fd7c74d26b1c36c371a9ed56295cc05ae /ksplashml/pics
parent98f2d732f33659ba749b70fb939e8eaa0c97edf8 (diff)
downloadtdebase-2f706891f32258c2b070471905f983e4585296d2.tar.gz
tdebase-2f706891f32258c2b070471905f983e4585296d2.zip
Desktop file translations:
+ Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ksplashml/pics')
-rw-r--r--ksplashml/pics/CMakeL10n.txt3
-rw-r--r--ksplashml/pics/themes/CMakeL10n.txt15
-rw-r--r--ksplashml/pics/themes/TDE-Classic/CMakeLists.txt14
-rw-r--r--ksplashml/pics/themes/TDE-Classic/locolor/CMakeLists.txt14
-rw-r--r--ksplashml/pics/themes/blue-bend/CMakeLists.txt14
-rw-r--r--ksplashml/pics/themes/default/CMakeLists.txt14
-rw-r--r--ksplashml/pics/themes/default/Theme.rc2
-rw-r--r--ksplashml/pics/themes/none/CMakeLists.txt8
-rw-r--r--ksplashml/pics/themes/simple/CMakeLists.txt13
-rw-r--r--ksplashml/pics/themes/unified/CMakeLists.txt8
10 files changed, 83 insertions, 22 deletions
diff --git a/ksplashml/pics/CMakeL10n.txt b/ksplashml/pics/CMakeL10n.txt
new file mode 100644
index 000000000..b585ce4af
--- /dev/null
+++ b/ksplashml/pics/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
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
+)