diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2024-10-07 12:01:59 +0200 |
---|---|---|
committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2024-10-07 12:20:11 +0000 |
commit | 3332ee613bd7ad8cc5ae09acd0665596a7f9070a (patch) | |
tree | 82b7cd932fc8254b21b19e06f11ea2451152cc50 /malloryclient | |
parent | 941e15eea685127fc59b761a1f3acfb2a6ae9bba (diff) | |
download | twin-style-mallory-3332ee613bd7ad8cc5ae09acd0665596a7f9070a.tar.gz twin-style-mallory-3332ee613bd7ad8cc5ae09acd0665596a7f9070a.zip |
Fix CMakeL10n rules.
+ It is necessary to have separate directory for separate POT files.
+ The PO_DIR option is used to generate translated desktop files.
+ tde_create_translated_desktop allows to process multiple input files, so there is no need for a loop.
+ The rules in malloryclient/config referred to the identical POT file as in malloryclient.
+ For the POT file, subfolders are also processed, so it was possible to delete the rules in config.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'malloryclient')
-rw-r--r-- | malloryclient/CMakeL10n.txt | 4 | ||||
-rw-r--r-- | malloryclient/CMakeLists.txt | 3 | ||||
-rw-r--r-- | malloryclient/config/CMakeL10n.txt | 13 |
3 files changed, 4 insertions, 16 deletions
diff --git a/malloryclient/CMakeL10n.txt b/malloryclient/CMakeL10n.txt index 888d2b3..c519273 100644 --- a/malloryclient/CMakeL10n.txt +++ b/malloryclient/CMakeL10n.txt @@ -13,8 +13,8 @@ tde_l10n_create_template( ) tde_l10n_create_template( - CATALOG "desktop_files/twin-style-mallory-desktops" + CATALOG "desktop_files/twin-style-mallory-desktops/" SOURCES mallory.desktop ) -tde_l10n_auto_add_subdirectories()
\ No newline at end of file +tde_l10n_auto_add_subdirectories() diff --git a/malloryclient/CMakeLists.txt b/malloryclient/CMakeLists.txt index a09c747..afcbe90 100644 --- a/malloryclient/CMakeLists.txt +++ b/malloryclient/CMakeLists.txt @@ -35,4 +35,5 @@ tde_conditional_add_subdirectory(BUILD_TCC_MODULE config) tde_create_translated_desktop( SOURCE mallory.desktop DESTINATION ${DATA_INSTALL_DIR}/twin -)
\ No newline at end of file + PO_DIR twin-style-mallory-desktops +) diff --git a/malloryclient/config/CMakeL10n.txt b/malloryclient/config/CMakeL10n.txt deleted file mode 100644 index ae19c42..0000000 --- a/malloryclient/config/CMakeL10n.txt +++ /dev/null @@ -1,13 +0,0 @@ -################################################################################ -# twin-style-mallory # -# ------------------ # -# This file is licensed under the terms of GNU GPL v3 or later. # -# Improvements and feedback are welcome. # -################################################################################ - -### Translation templates ###################################################### -tde_l10n_create_template( - CATALOG "messages/twin-style-mallory" - SOURCES . - X-POT ${CMAKE_SOURCE_DIR}/../../../core/tde-i18n/template/messages/tdebase/twin_clients.pot -)
\ No newline at end of file |