diff options
author | Slávek Banko <[email protected]> | 2020-05-03 02:39:22 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-05-03 02:39:22 +0200 |
commit | 460b0273772f313ff533ba655ccaa11cf7acef5c (patch) | |
tree | 9ee16960767f394dd426921f86ae1a710301772d /src/themes | |
parent | 51efb685369b4126eeb67225b7a775f9bc2ad66d (diff) | |
download | ksplash-engine-moodin-460b0273772f313ff533ba655ccaa11cf7acef5c.tar.gz ksplash-engine-moodin-460b0273772f313ff533ba655ccaa11cf7acef5c.zip |
Add the ability to translate:
+ Catalog for strings in the plugin.
+ Desktop file translations.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/themes')
-rw-r--r-- | src/themes/Architecture/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/themes/CMakeL10n.txt | 9 | ||||
-rw-r--r-- | src/themes/FingerPrint/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/themes/MoodinKDE/CMakeLists.txt | 11 |
4 files changed, 37 insertions, 5 deletions
diff --git a/src/themes/Architecture/CMakeLists.txt b/src/themes/Architecture/CMakeLists.txt index 90bc1fb..5af4a21 100644 --- a/src/themes/Architecture/CMakeLists.txt +++ b/src/themes/Architecture/CMakeLists.txt @@ -1,6 +1,13 @@ -file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png ) +file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png *.jpg ) install( - FILES ${_pics} Background.jpg Theme.rc + FILES ${_pics} DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Architecture ) + +tde_create_translated_desktop( + SOURCE Theme.rc + KEYWORDS Label1 Label2 Label3 Label4 Label5 + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Architecture + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/themes +) diff --git a/src/themes/CMakeL10n.txt b/src/themes/CMakeL10n.txt new file mode 100644 index 0000000..66cd231 --- /dev/null +++ b/src/themes/CMakeL10n.txt @@ -0,0 +1,9 @@ +##### create translation templates ############## + +file( GLOB_RECURSE _themes RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} Theme.rc ) + +tde_l10n_create_template( + CATALOG "desktop_files/themes/" + SOURCES_DESKTOP ${_themes} + KEYWORDS Label1 Label2 Label3 Label4 Label5 +) diff --git a/src/themes/FingerPrint/CMakeLists.txt b/src/themes/FingerPrint/CMakeLists.txt index cfcad13..fa5afec 100644 --- a/src/themes/FingerPrint/CMakeLists.txt +++ b/src/themes/FingerPrint/CMakeLists.txt @@ -1,6 +1,13 @@ -file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png ) +file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png *.jpg ) install( - FILES ${_pics} Background.jpg Theme.rc + FILES ${_pics} DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/FingerPrint ) + +tde_create_translated_desktop( + SOURCE Theme.rc + KEYWORDS Label1 Label2 Label3 Label4 Label5 + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/FingerPrint + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/themes +) diff --git a/src/themes/MoodinKDE/CMakeLists.txt b/src/themes/MoodinKDE/CMakeLists.txt index d0fbb88..68afed2 100644 --- a/src/themes/MoodinKDE/CMakeLists.txt +++ b/src/themes/MoodinKDE/CMakeLists.txt @@ -1,4 +1,13 @@ +file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png *.jpg ) + install( - FILES Background.jpg Preview.png Theme.rc + FILES ${_pics} DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/MoodinKDE ) + +tde_create_translated_desktop( + SOURCE Theme.rc + KEYWORDS Label1 Label2 Label3 Label4 Label5 + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/MoodinKDE + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/themes +) |