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>
pull/3/head
Slávek Banko 2 weeks ago committed by TDE Gitea
parent 941e15eea6
commit 3332ee613b

@ -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
)
)

@ -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
)

@ -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()
tde_l10n_auto_add_subdirectories()

@ -35,4 +35,5 @@ tde_conditional_add_subdirectory(BUILD_TCC_MODULE config)
tde_create_translated_desktop(
SOURCE mallory.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
)
PO_DIR twin-style-mallory-desktops
)

@ -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
)

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -26,3 +26,122 @@ msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr ""
#: malloryclient.cpp:82
msgid "<center><b>Mallory</b></center>"
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 ""

Loading…
Cancel
Save