From 96fa25303818e6107b72ba624659004751d45ad1 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Wed, 29 Jul 2020 22:43:34 +0200 Subject: Desktop file translations: + Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit fe44776673b28ca94338f23d8e7ac71593fa88ba) --- src/profiles/IDE/ScriptingLanguageIDE/CMakeLists.txt | 8 +++++--- src/profiles/IDE/ScriptingLanguageIDE/PHPIDE/CMakeLists.txt | 8 +++++--- src/profiles/IDE/ScriptingLanguageIDE/PerlIDE/CMakeLists.txt | 8 +++++--- src/profiles/IDE/ScriptingLanguageIDE/PythonIDE/CMakeLists.txt | 8 +++++--- src/profiles/IDE/ScriptingLanguageIDE/RubyIDE/CMakeLists.txt | 8 +++++--- src/profiles/IDE/ScriptingLanguageIDE/ShellIDE/CMakeLists.txt | 8 +++++--- 6 files changed, 30 insertions(+), 18 deletions(-) (limited to 'src/profiles/IDE/ScriptingLanguageIDE') diff --git a/src/profiles/IDE/ScriptingLanguageIDE/CMakeLists.txt b/src/profiles/IDE/ScriptingLanguageIDE/CMakeLists.txt index 9ef55326..bd79f289 100644 --- a/src/profiles/IDE/ScriptingLanguageIDE/CMakeLists.txt +++ b/src/profiles/IDE/ScriptingLanguageIDE/CMakeLists.txt @@ -15,6 +15,8 @@ add_subdirectory( PHPIDE ) add_subdirectory( PythonIDE ) add_subdirectory( ShellIDE ) -install( FILES - profile.config - DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE ) +tde_create_translated_desktop( + SOURCE profile.config + DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE + PO_DIR tdevelop-desktops +) diff --git a/src/profiles/IDE/ScriptingLanguageIDE/PHPIDE/CMakeLists.txt b/src/profiles/IDE/ScriptingLanguageIDE/PHPIDE/CMakeLists.txt index 98cf1375..cbddbf54 100644 --- a/src/profiles/IDE/ScriptingLanguageIDE/PHPIDE/CMakeLists.txt +++ b/src/profiles/IDE/ScriptingLanguageIDE/PHPIDE/CMakeLists.txt @@ -9,6 +9,8 @@ # ################################################# -install( FILES - profile.config - DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE/PHPIDE ) +tde_create_translated_desktop( + SOURCE profile.config + DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE/PHPIDE + PO_DIR tdevelop-desktops +) diff --git a/src/profiles/IDE/ScriptingLanguageIDE/PerlIDE/CMakeLists.txt b/src/profiles/IDE/ScriptingLanguageIDE/PerlIDE/CMakeLists.txt index 1b4e7733..1fa9a331 100644 --- a/src/profiles/IDE/ScriptingLanguageIDE/PerlIDE/CMakeLists.txt +++ b/src/profiles/IDE/ScriptingLanguageIDE/PerlIDE/CMakeLists.txt @@ -9,6 +9,8 @@ # ################################################# -install( FILES - profile.config - DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE/PerlIDE ) +tde_create_translated_desktop( + SOURCE profile.config + DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE/PerlIDE + PO_DIR tdevelop-desktops +) diff --git a/src/profiles/IDE/ScriptingLanguageIDE/PythonIDE/CMakeLists.txt b/src/profiles/IDE/ScriptingLanguageIDE/PythonIDE/CMakeLists.txt index 27930052..44b7d406 100644 --- a/src/profiles/IDE/ScriptingLanguageIDE/PythonIDE/CMakeLists.txt +++ b/src/profiles/IDE/ScriptingLanguageIDE/PythonIDE/CMakeLists.txt @@ -9,6 +9,8 @@ # ################################################# -install( FILES - profile.config - DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE/PythonIDE ) +tde_create_translated_desktop( + SOURCE profile.config + DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE/PythonIDE + PO_DIR tdevelop-desktops +) diff --git a/src/profiles/IDE/ScriptingLanguageIDE/RubyIDE/CMakeLists.txt b/src/profiles/IDE/ScriptingLanguageIDE/RubyIDE/CMakeLists.txt index 6bfeeeae..6c10d581 100644 --- a/src/profiles/IDE/ScriptingLanguageIDE/RubyIDE/CMakeLists.txt +++ b/src/profiles/IDE/ScriptingLanguageIDE/RubyIDE/CMakeLists.txt @@ -9,6 +9,8 @@ # ################################################# -install( FILES - profile.config - DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE/RubyIDE ) +tde_create_translated_desktop( + SOURCE profile.config + DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE/RubyIDE + PO_DIR tdevelop-desktops +) diff --git a/src/profiles/IDE/ScriptingLanguageIDE/ShellIDE/CMakeLists.txt b/src/profiles/IDE/ScriptingLanguageIDE/ShellIDE/CMakeLists.txt index ec21b7e9..93bdc951 100644 --- a/src/profiles/IDE/ScriptingLanguageIDE/ShellIDE/CMakeLists.txt +++ b/src/profiles/IDE/ScriptingLanguageIDE/ShellIDE/CMakeLists.txt @@ -9,6 +9,8 @@ # ################################################# -install( FILES - profile.config - DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE/ShellIDE ) +tde_create_translated_desktop( + SOURCE profile.config + DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/ScriptingLanguageIDE/ShellIDE + PO_DIR tdevelop-desktops +) -- cgit v1.2.3