Conversion to CMake build system.

Copy translations to a new directory layout.
Added translation of .desktop files.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/3/head
Slávek Banko 2 years ago
parent a198c56607
commit a628345357
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -20,10 +20,15 @@ include( TDEL10n )
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "desktop-effects-tde"
CATALOG "messages/desktop-effects-tde"
SOURCES "*.py" "*.ui"
KEYWORDS
_ __tr __tr:1,2
translate translate:1,2
X-POT -
)
tde_l10n_create_template(
CATALOG "desktop_files/desktop-effects-tde-desktops"
SOURCES *.desktop
)

@ -0,0 +1,80 @@
############################################
# #
# Improvements and feedbacks are welcome #
# #
# This file is released under GPL >= 3 #
# #
############################################
cmake_minimum_required( VERSION 3.1 )
#### general package setup
project( desktop-effects-tde )
#### include essential cmake modules
include( FindPkgConfig )
#### include our cmake modules
include( TDEMacros )
##### set version number ########################
tde_set_project_version( )
##### setup install paths
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_XORG_SESSION_COMPIZ_WM "Install XOrg session configuration for Compiz as WM" ${WITH_ALL_OPTIONS} )
##### user requested modules
option( BUILD_ALL "Build all" ON )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks
include( ConfigureChecks.cmake )
##### directories
add_subdirectory( DesktopEffects )
add_subdirectory( data )
##### desktop-effect-tde (executable)
install(
PROGRAMS ${PROJECT_NAME}
DESTINATION ${BIN_INSTALL_DIR}
)
##### other data
tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
if( WITH_XORG_SESSION_COMPIZ_WM )
install(
FILES 25enable-compiz
DESTINATION /etc/X11/Xsession.d
)
endif()

@ -0,0 +1,23 @@
###########################################
# #
# Improvements and feedback are welcome #
# #
# This file is released under GPL >= 3 #
# #
###########################################
# required stuff
find_package( TQt )
find_package( TDE )
##### find tdepyuic executable
find_program( TDEPYUIC_EXECUTABLE
NAMES tdepyuic
PATHS ${TDE_PREFIX}/bin
)
if( NOT TDEPYUIC_EXECUTABLE )
tde_message_fatal( "tdepyuic is required, but was not found on your system" )
endif()

@ -0,0 +1,24 @@
##### DesktopEffectsDialog.py (generated from DesktopEffectsDialog.ui)
add_custom_command( OUTPUT DesktopEffectsDialog.py
COMMAND ${TDEPYUIC_EXECUTABLE} ${CMAKE_SOURCE_DIR}/data/DesktopEffectsDialog.ui
COMMENT "Gerenate DesktopEffectsDialog.py"
)
add_custom_target( DesktopEffectsDialog-pyuic ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/DesktopEffectsDialog.py
)
##### other data
file( GLOB data_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
list( REMOVE_ITEM data_files "CMakeLists.txt" )
list( REMOVE_ITEM data_files "DesktopEffectsDialog.py" )
list( APPEND data_files ${CMAKE_CURRENT_BINARY_DIR}/DesktopEffectsDialog.py )
install(
FILES ${data_files}
DESTINATION ${SHARE_INSTALL_PREFIX}/pyshared/DesktopEffects
)

@ -0,0 +1,10 @@
##### other data
file( GLOB data_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
list( REMOVE_ITEM data_files "CMakeLists.txt" )
install(
FILES ${data_files}
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)

@ -1,10 +1,11 @@
[Desktop Entry]
Encoding=UTF-8
Name=Desktop Effects
Comment=Compiz Setup
Icon=kcmkwm
Type=Application
Exec=desktop-effects-tde
Icon=kcmkwm
Terminal=false
Type=Application
OnlyShowIn=TDE;
Categories=Compiz;Settings;DesktopSettings;
OnlyShowIn=TDE;

@ -0,0 +1,27 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-13 17:40+0100\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"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Name
#: desktop-effects-tde.desktop:2
msgid "Desktop Effects"
msgstr ""
#. Comment
#: desktop-effects-tde.desktop:4
msgid "Compiz Setup"
msgstr ""

@ -0,0 +1,128 @@
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2021-07-07 18:28+0000\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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Instead of a literal translation, add your name to the end of the list (separated by a comma).
#, ignore-inconsistent
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr ""
#. Instead of a literal translation, add your email to the end of the list (separated by a comma).
#, ignore-inconsistent
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr ""
#: DesktopEffects/DesktopEffectsCommon.py:73
#: DesktopEffects/DesktopEffectsTDE.py:96
msgid "&Remove Desktop Effects"
msgstr ""
#: DesktopEffects/DesktopEffectsCommon.py:76
#: DesktopEffects/DesktopEffectsTDE.py:100
msgid "The Compiz engine is installed in your system."
msgstr ""
#: DesktopEffects/DesktopEffectsCommon.py:80
#: DesktopEffects/DesktopEffectsDialog.py:2720
#: DesktopEffects/DesktopEffectsTDE.py:105 data/DesktopEffectsDialog.ui:52
#, no-c-format
msgid ""
"In order for Compiz Desktop Effects to work, the Compiz engine must be "
"installed on your system."
msgstr ""
#: DesktopEffects/DesktopEffectsCommon.py:82
#: DesktopEffects/DesktopEffectsTDE.py:107
msgid "&Install Desktop Effects"
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2719 data/DesktopEffectsDialog.ui:16
#, no-c-format
msgid "Desktop Effects"
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2721 data/DesktopEffectsDialog.ui:68
#, no-c-format
msgid "Install"
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2722 data/DesktopEffectsDialog.ui:105
#, no-c-format
msgid ""
"Desktop Effects are a great way to enjoy a modern desktop experience without "
"transitioning to KDE4"
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2723 data/DesktopEffectsDialog.ui:115
#, no-c-format
msgid "Effects Level"
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2724 data/DesktopEffectsDialog.ui:142
#, no-c-format
msgid "No Effects"
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2725 data/DesktopEffectsDialog.ui:150
#, no-c-format
msgid ""
"All effects are disabled and TDE Window manager is used.\n"
"This is the default behaviour."
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2727 data/DesktopEffectsDialog.ui:204
#, no-c-format
msgid "Standard Effects"
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2728 data/DesktopEffectsDialog.ui:212
#, no-c-format
msgid "A compromise between usability and efficiency."
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2729 data/DesktopEffectsDialog.ui:265
#, no-c-format
msgid "Extra Effects"
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2730 data/DesktopEffectsDialog.ui:273
#, no-c-format
msgid ""
"All effects are enabled. This setting may require a\n"
"newer graphic card."
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2732 data/DesktopEffectsDialog.ui:327
#, no-c-format
msgid "Custom Effects"
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2733 data/DesktopEffectsDialog.ui:335
#, no-c-format
msgid "Your custom Compiz settings."
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2734 data/DesktopEffectsDialog.ui:399
#, no-c-format
msgid "Apply"
msgstr ""
#: DesktopEffects/DesktopEffectsDialog.py:2735 data/DesktopEffectsDialog.ui:407
#, no-c-format
msgid "Cancel"
msgstr ""

@ -0,0 +1,135 @@
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2021-07-07 18:28+0000\n"
"PO-Revision-Date: 2019-07-30 15:08+0000\n"
"Last-Translator: Heimen Stoffels <vistausss@outlook.com>\n"
"Language-Team: Dutch <https://mirror.git.trinitydesktop.org/weblate/projects/"
"applications/desktop-effects-tde/nl/>\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.7.1\n"
#. Instead of a literal translation, add your name to the end of the list (separated by a comma).
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Heimen Stoffels"
#. Instead of a literal translation, add your email to the end of the list (separated by a comma).
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "vistausss@outlook.com"
#: DesktopEffects/DesktopEffectsCommon.py:73
#: DesktopEffects/DesktopEffectsTDE.py:96
msgid "&Remove Desktop Effects"
msgstr "Bureaubladeffecten ve&rwijderen"
#: DesktopEffects/DesktopEffectsCommon.py:76
#: DesktopEffects/DesktopEffectsTDE.py:100
msgid "The Compiz engine is installed in your system."
msgstr "Compiz is geïnstalleerd."
#: DesktopEffects/DesktopEffectsCommon.py:80
#: DesktopEffects/DesktopEffectsDialog.py:2720
#: DesktopEffects/DesktopEffectsTDE.py:105 data/DesktopEffectsDialog.ui:52
#, no-c-format
msgid ""
"In order for Compiz Desktop Effects to work, the Compiz engine must be "
"installed on your system."
msgstr "Compiz-bureaubladeffecten werken pas als je Compiz installeert."
#: DesktopEffects/DesktopEffectsCommon.py:82
#: DesktopEffects/DesktopEffectsTDE.py:107
msgid "&Install Desktop Effects"
msgstr "Bureaubladeffecten &installeren"
#: DesktopEffects/DesktopEffectsDialog.py:2719 data/DesktopEffectsDialog.ui:16
#, no-c-format
msgid "Desktop Effects"
msgstr "Bureaubladeffecten"
#: DesktopEffects/DesktopEffectsDialog.py:2721 data/DesktopEffectsDialog.ui:68
#, no-c-format
msgid "Install"
msgstr "Installeren"
#: DesktopEffects/DesktopEffectsDialog.py:2722 data/DesktopEffectsDialog.ui:105
#, no-c-format
msgid ""
"Desktop Effects are a great way to enjoy a modern desktop experience without "
"transitioning to KDE4"
msgstr ""
"Bureaubladeffecten zijn leuk en moderniseren je werkomgeving zonder dat je "
"hoeft over te stappen naar KDE4"
#: DesktopEffects/DesktopEffectsDialog.py:2723 data/DesktopEffectsDialog.ui:115
#, no-c-format
msgid "Effects Level"
msgstr "Niveau"
#: DesktopEffects/DesktopEffectsDialog.py:2724 data/DesktopEffectsDialog.ui:142
#, no-c-format
msgid "No Effects"
msgstr "Geen effecten"
#: DesktopEffects/DesktopEffectsDialog.py:2725 data/DesktopEffectsDialog.ui:150
#, no-c-format
msgid ""
"All effects are disabled and TDE Window manager is used.\n"
"This is the default behaviour."
msgstr ""
"Alle effecten uitschakelen en de TDE-vensterbeheerder gebruiken.\n"
"Dit is de standaardoptie."
#: DesktopEffects/DesktopEffectsDialog.py:2727 data/DesktopEffectsDialog.ui:204
#, no-c-format
msgid "Standard Effects"
msgstr "Standaardeffectien"
#: DesktopEffects/DesktopEffectsDialog.py:2728 data/DesktopEffectsDialog.ui:212
#, no-c-format
msgid "A compromise between usability and efficiency."
msgstr "Een goede balans tussen werk en plezier."
#: DesktopEffects/DesktopEffectsDialog.py:2729 data/DesktopEffectsDialog.ui:265
#, no-c-format
msgid "Extra Effects"
msgstr "Veel effecten"
#: DesktopEffects/DesktopEffectsDialog.py:2730 data/DesktopEffectsDialog.ui:273
#, no-c-format
msgid ""
"All effects are enabled. This setting may require a\n"
"newer graphic card."
msgstr ""
"Alle effecten inschakelen. Mogelijk heb je hiervoor een\n"
"nieuwere videokaart nodig."
#: DesktopEffects/DesktopEffectsDialog.py:2732 data/DesktopEffectsDialog.ui:327
#, no-c-format
msgid "Custom Effects"
msgstr "Aangepast"
#: DesktopEffects/DesktopEffectsDialog.py:2733 data/DesktopEffectsDialog.ui:335
#, no-c-format
msgid "Your custom Compiz settings."
msgstr "Je aangepaste Compiz-instellingen."
#: DesktopEffects/DesktopEffectsDialog.py:2734 data/DesktopEffectsDialog.ui:399
#, no-c-format
msgid "Apply"
msgstr "Toepassen"
#: DesktopEffects/DesktopEffectsDialog.py:2735 data/DesktopEffectsDialog.ui:407
#, no-c-format
msgid "Cancel"
msgstr "Annuleren"

@ -0,0 +1,136 @@
# SOME DESCRIPTIVE TITLE.
# Marek Mlynar <marek.inq.mlynar@gmail.com>, 2020.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2021-07-07 18:28+0000\n"
"PO-Revision-Date: 2020-05-27 20:46+0000\n"
"Last-Translator: Marek Mlynar <marek.inq.mlynar@gmail.com>\n"
"Language-Team: Slovak <https://mirror.git.trinitydesktop.org/weblate/"
"projects/applications/desktop-effects-tde/sk/>\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Weblate 4.0.4\n"
#. Instead of a literal translation, add your name to the end of the list (separated by a comma).
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Marek Mlynár"
#. Instead of a literal translation, add your email to the end of the list (separated by a comma).
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "marek.inq.mlynar@gmail.com"
#: DesktopEffects/DesktopEffectsCommon.py:73
#: DesktopEffects/DesktopEffectsTDE.py:96
msgid "&Remove Desktop Effects"
msgstr "&Odstrániť efekty plochy"
#: DesktopEffects/DesktopEffectsCommon.py:76
#: DesktopEffects/DesktopEffectsTDE.py:100
msgid "The Compiz engine is installed in your system."
msgstr "Compiz je nainštalovaný vo Vašom systéme."
#: DesktopEffects/DesktopEffectsCommon.py:80
#: DesktopEffects/DesktopEffectsDialog.py:2720
#: DesktopEffects/DesktopEffectsTDE.py:105 data/DesktopEffectsDialog.ui:52
#, no-c-format
msgid ""
"In order for Compiz Desktop Effects to work, the Compiz engine must be "
"installed on your system."
msgstr ""
"Ak chcete, aby efekty Compiz fungovali, musí byť vo Vašom systéme "
"nainštalovaný Compiz."
#: DesktopEffects/DesktopEffectsCommon.py:82
#: DesktopEffects/DesktopEffectsTDE.py:107
msgid "&Install Desktop Effects"
msgstr "&Inštalovať efekty plochy"
#: DesktopEffects/DesktopEffectsDialog.py:2719 data/DesktopEffectsDialog.ui:16
#, no-c-format
msgid "Desktop Effects"
msgstr "Efekty plochy"
#: DesktopEffects/DesktopEffectsDialog.py:2721 data/DesktopEffectsDialog.ui:68
#, no-c-format
msgid "Install"
msgstr "Inštalovať"
#: DesktopEffects/DesktopEffectsDialog.py:2722 data/DesktopEffectsDialog.ui:105
#, no-c-format
msgid ""
"Desktop Effects are a great way to enjoy a modern desktop experience without "
"transitioning to KDE4"
msgstr ""
"Efekty plochy sú skvelým spôsobom, ako si vychutnať moderné desktopové "
"prostredie bez prechodu na KDE4"
#: DesktopEffects/DesktopEffectsDialog.py:2723 data/DesktopEffectsDialog.ui:115
#, no-c-format
msgid "Effects Level"
msgstr "Úroveň efektov"
#: DesktopEffects/DesktopEffectsDialog.py:2724 data/DesktopEffectsDialog.ui:142
#, no-c-format
msgid "No Effects"
msgstr "Žiadne efekty"
#: DesktopEffects/DesktopEffectsDialog.py:2725 data/DesktopEffectsDialog.ui:150
#, no-c-format
msgid ""
"All effects are disabled and TDE Window manager is used.\n"
"This is the default behaviour."
msgstr ""
"Všetky efekty sú vypnuté a používa sa správca okien TDE.\n"
"Toto je predvolené správanie."
#: DesktopEffects/DesktopEffectsDialog.py:2727 data/DesktopEffectsDialog.ui:204
#, no-c-format
msgid "Standard Effects"
msgstr "Štandardné efekty"
#: DesktopEffects/DesktopEffectsDialog.py:2728 data/DesktopEffectsDialog.ui:212
#, no-c-format
msgid "A compromise between usability and efficiency."
msgstr "Kompromis medzi použiteľnosťou a efektívnosťou."
#: DesktopEffects/DesktopEffectsDialog.py:2729 data/DesktopEffectsDialog.ui:265
#, no-c-format
msgid "Extra Effects"
msgstr "Extra efekty"
#: DesktopEffects/DesktopEffectsDialog.py:2730 data/DesktopEffectsDialog.ui:273
#, no-c-format
msgid ""
"All effects are enabled. This setting may require a\n"
"newer graphic card."
msgstr ""
"Všetky efekty sú povolené. Toto nastavenie môže vyžadovať\n"
"novšiu grafickú kartu."
#: DesktopEffects/DesktopEffectsDialog.py:2732 data/DesktopEffectsDialog.ui:327
#, no-c-format
msgid "Custom Effects"
msgstr "Vlastné efekty"
#: DesktopEffects/DesktopEffectsDialog.py:2733 data/DesktopEffectsDialog.ui:335
#, no-c-format
msgid "Your custom Compiz settings."
msgstr "Vaše vlastné nastavenia Compiz."
#: DesktopEffects/DesktopEffectsDialog.py:2734 data/DesktopEffectsDialog.ui:399
#, no-c-format
msgid "Apply"
msgstr "Použiť"
#: DesktopEffects/DesktopEffectsDialog.py:2735 data/DesktopEffectsDialog.ui:407
#, no-c-format
msgid "Cancel"
msgstr "Zrušiť"
Loading…
Cancel
Save