From 3332ee613bd7ad8cc5ae09acd0665596a7f9070a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 7 Oct 2024 12:01:59 +0200 Subject: [PATCH] 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- colorscheme/CMakeL10n.txt | 4 +- colorscheme/CMakeLists.txt | 11 +- malloryclient/CMakeL10n.txt | 4 +- malloryclient/CMakeLists.txt | 3 +- malloryclient/config/CMakeL10n.txt | 13 -- .../twin-style-mallory-colors.pot | 10 +- .../twin-style-mallory-desktops.pot | 0 translations/messages/twin-style-mallory.pot | 121 +++++++++++++++++- 8 files changed, 136 insertions(+), 30 deletions(-) delete mode 100644 malloryclient/config/CMakeL10n.txt rename translations/desktop_files/{ => twin-style-mallory-colors}/twin-style-mallory-colors.pot (89%) rename translations/desktop_files/{ => twin-style-mallory-desktops}/twin-style-mallory-desktops.pot (100%) diff --git a/colorscheme/CMakeL10n.txt b/colorscheme/CMakeL10n.txt index 27a14e7..73d2787 100644 --- a/colorscheme/CMakeL10n.txt +++ b/colorscheme/CMakeL10n.txt @@ -7,6 +7,6 @@ ### Translation templates ###################################################### tde_l10n_create_template( - CATALOG "desktop_files/twin-style-mallory-colors" + CATALOG "desktop_files/twin-style-mallory-colors/" SOURCES *.kcsrc -) \ No newline at end of file +) diff --git a/colorscheme/CMakeLists.txt b/colorscheme/CMakeLists.txt index 3cbaf46..b41cb59 100644 --- a/colorscheme/CMakeLists.txt +++ b/colorscheme/CMakeLists.txt @@ -7,10 +7,9 @@ ### Data ####################################################################### file(GLOB COLOR_SCHEMES *.kcsrc) -foreach(COLOR_SCHEME ${COLOR_SCHEMES}) - tde_create_translated_desktop( - SOURCE "${COLOR_SCHEME}" - DESTINATION ${DATA_INSTALL_DIR}/tdedisplay/color-schemes - ) -endforeach() +tde_create_translated_desktop( + SOURCE ${COLOR_SCHEMES} + DESTINATION ${DATA_INSTALL_DIR}/tdedisplay/color-schemes + PO_DIR twin-style-mallory-colors +) 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 diff --git a/translations/desktop_files/twin-style-mallory-colors.pot b/translations/desktop_files/twin-style-mallory-colors/twin-style-mallory-colors.pot similarity index 89% rename from translations/desktop_files/twin-style-mallory-colors.pot rename to translations/desktop_files/twin-style-mallory-colors/twin-style-mallory-colors.pot index 9296cd6..72595c9 100644 --- a/translations/desktop_files/twin-style-mallory-colors.pot +++ b/translations/desktop_files/twin-style-mallory-colors/twin-style-mallory-colors.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-10-03 21:12+0300\n" +"POT-Creation-Date: 2024-10-07 10:51+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,22 +17,22 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" #. Name -#: Mallory Bluemoon (dark).kcsrc:2 +#: Mallory Dark Bluemoon.kcsrc:2 msgid "Mallory Bluemoon (dark)" msgstr "" #. Name -#: Mallory Firetruck (dark).kcsrc:2 +#: Mallory Dark Firetruck.kcsrc:2 msgid "Mallory Firetruck (dark)" msgstr "" #. Name -#: Mallory Jungle Dreams (dark).kcsrc:2 +#: Mallory Dark Jungle Dreams.kcsrc:2 msgid "Mallory Jungle Dreams (dark)" msgstr "" #. Name -#: Mallory Nightshift (dark).kcsrc:2 +#: Mallory Dark Nightshift.kcsrc:2 msgid "Mallory Nightshift (dark)" msgstr "" diff --git a/translations/desktop_files/twin-style-mallory-desktops.pot b/translations/desktop_files/twin-style-mallory-desktops/twin-style-mallory-desktops.pot similarity index 100% rename from translations/desktop_files/twin-style-mallory-desktops.pot rename to translations/desktop_files/twin-style-mallory-desktops/twin-style-mallory-desktops.pot diff --git a/translations/messages/twin-style-mallory.pot b/translations/messages/twin-style-mallory.pot index f10aa91..d8de091 100644 --- a/translations/messages/twin-style-mallory.pot +++ b/translations/messages/twin-style-mallory.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2024-10-03 21:11+0300\n" +"POT-Creation-Date: 2024-10-07 11:54+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,3 +26,122 @@ msgid "" "_: EMAIL OF TRANSLATORS\n" "Your emails" msgstr "" + +#: malloryclient.cpp:82 +msgid "
Mallory
" +msgstr "" + +#: malloryclient.cpp:191 malloryclient.cpp:618 +msgid "Not On All Desktops" +msgstr "" + +#: malloryclient.cpp:191 malloryclient.cpp:618 +msgid "On All Desktops" +msgstr "" + +#: config/configdialog.ui:51 +#, no-c-format +msgid "&Titlebar size:" +msgstr "" + +#: config/configdialog.ui:57 +#, no-c-format +msgid "Alt+T" +msgstr "" + +#: config/configdialog.ui:101 +#, no-c-format +msgid "&Button size:" +msgstr "" + +#: config/configdialog.ui:107 +#, no-c-format +msgid "Alt+B" +msgstr "" + +#: config/configdialog.ui:151 +#, no-c-format +msgid "B&order size:" +msgstr "" + +#: config/configdialog.ui:157 +#, no-c-format +msgid "Alt+O" +msgstr "" + +#: config/configdialog.ui:183 +#, no-c-format +msgid "Here you can change the size of the borders to fit your taste." +msgstr "" + +#: config/configdialog.ui:201 +#, no-c-format +msgid "Less rou&nded corners" +msgstr "" + +#: config/configdialog.ui:204 +#, no-c-format +msgid "Alt+N" +msgstr "" + +#: config/configdialog.ui:229 +#, no-c-format +msgid "Buttons st&yle:" +msgstr "" + +#: config/configdialog.ui:235 +#, no-c-format +msgid "Alt+U" +msgstr "" + +#: config/configdialog.ui:241 +#, no-c-format +msgid "Round" +msgstr "" + +#: config/configdialog.ui:246 +#, no-c-format +msgid "Square" +msgstr "" + +#: config/configdialog.ui:289 +#, no-c-format +msgid "Paint resize &handles" +msgstr "" + +#: config/configdialog.ui:292 +#, no-c-format +msgid "Alt+H" +msgstr "" + +#: config/configdialog.ui:300 +#, no-c-format +msgid "Supersi&ze handles" +msgstr "" + +#: config/configdialog.ui:303 +#, no-c-format +msgid "Alt+Z" +msgstr "" + +#: config/configdialog.ui:321 +#, no-c-format +msgid "Paint titlebar &shadow" +msgstr "" + +#: config/configdialog.ui:324 +#, no-c-format +msgid "Alt+S" +msgstr "" + +#: config/configdialog.ui:327 +#, no-c-format +msgid "" +"Check this option if you want the buttons and title to have a 3D look with a " +"shadow behind them." +msgstr "" + +#: config/configdialog.ui:351 +#, no-c-format +msgid "Shadow &distance:" +msgstr ""