Add SUSE2.kcsrc to CMakeL10n rules.

Update CMake rules for desktop files.
Delete files that are no longer needed.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2a466d21dd)
r14.0.x
Slávek Banko 3 years ago
parent 6c7ce24c47
commit f4fce9a1ae
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -4,5 +4,5 @@ tde_l10n_create_template("messages/twin-style-suse2")
tde_l10n_create_template(
CATALOG "desktop_files/twin-style-suse2-desktops"
SOURCES *.desktop
SOURCES *.desktop *.kcsrc
)

@ -24,7 +24,7 @@ tde_add_kpart( twin3_SUSE2 AUTOMOC
SUSE2.cpp
SUSE2client.cpp
SUSE2button.cpp
shadow.cpp
shadow.cpp
misc.cpp
LINK
tdecore-shared
@ -37,8 +37,8 @@ tde_add_kpart( twin3_SUSE2 AUTOMOC
##### other data
install(
FILES SUSE2.desktop
tde_create_translated_desktop(
SOURCE SUSE2.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
)
@ -47,7 +47,7 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/twin/pics/SUSE2
)
install(
FILES SUSE2.kcsrc
tde_create_translated_desktop(
SOURCE SUSE2.kcsrc
DESTINATION ${DATA_INSTALL_DIR}/tdedisplay/color-schemes
)

@ -1,4 +1,3 @@
[Desktop Entry]
Name=SUSE2
Name[xx]=xxSUSE2xx
X-TDE-Library=twin3_SUSE2

@ -1,6 +1,5 @@
[Color Scheme]
Name=SUSE2
Name[xx]=xxSUSE2xx
activeBackground=82,129,205
activeBlend=44,85,177
activeForeground=255,255,255

@ -1,2 +0,0 @@
po
src

@ -1 +0,0 @@
tde_auto_add_subdirectories( )

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-06-27 11:42+0300\n"
"POT-Creation-Date: 2021-06-29 09:47+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,6 +17,6 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
#. Name
#: SUSE2.desktop:2
#: SUSE2.desktop:2 SUSE2.kcsrc:2
msgid "SUSE2"
msgstr ""

@ -1,14 +0,0 @@
file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" )
foreach( _po ${po_files} )
get_filename_component( _lang ${_po} NAME_WE )
if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" )
if( "${_po}" MATCHES "^([^/]*)/.*" )
string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" )
else( )
set( _component "${PROJECT_NAME}" )
endif( )
tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} )
endif( )
endforeach( )
Loading…
Cancel
Save