summaryrefslogtreecommitdiffstats
path: root/src/profiles
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-29 22:43:34 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-30 16:00:07 +0200
commitfe44776673b28ca94338f23d8e7ac71593fa88ba (patch)
treeb900146c853acbd44900bfb77a35a1af3c77aa5d /src/profiles
parentc0b663c4c873df495743600b8f703744420eddfa (diff)
downloadtdevelop-fe44776673b28ca94338f23d8e7ac71593fa88ba.tar.gz
tdevelop-fe44776673b28ca94338f23d8e7ac71593fa88ba.zip
Desktop file translations:
+ Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/profiles')
-rw-r--r--src/profiles/CMakeLists.txt6
-rw-r--r--src/profiles/IDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/CompiledLanguageIDE/AdaIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/CompiledLanguageIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/CompiledLanguageIDE/FortranIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/CompiledLanguageIDE/HaskellIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/CompiledLanguageIDE/JavaIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/CompiledLanguageIDE/PascalIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/DatabaseIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/ScriptingLanguageIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/ScriptingLanguageIDE/PHPIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/ScriptingLanguageIDE/PerlIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/ScriptingLanguageIDE/PythonIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/ScriptingLanguageIDE/RubyIDE/CMakeLists.txt8
-rw-r--r--src/profiles/IDE/ScriptingLanguageIDE/ShellIDE/CMakeLists.txt8
-rw-r--r--src/profiles/KDevAssistant/CMakeLists.txt8
-rw-r--r--src/profiles/profile.config2
21 files changed, 101 insertions, 59 deletions
diff --git a/src/profiles/CMakeLists.txt b/src/profiles/CMakeLists.txt
index 5d886c88..7b30a7ff 100644
--- a/src/profiles/CMakeLists.txt
+++ b/src/profiles/CMakeLists.txt
@@ -12,4 +12,8 @@
add_subdirectory( IDE )
add_subdirectory( KDevAssistant )
-install( FILES profile.config DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/CMakeLists.txt b/src/profiles/IDE/CMakeLists.txt
index e98b3133..a3ceb026 100644
--- a/src/profiles/IDE/CMakeLists.txt
+++ b/src/profiles/IDE/CMakeLists.txt
@@ -13,6 +13,8 @@ add_subdirectory( CompiledLanguageIDE )
add_subdirectory( ScriptingLanguageIDE )
add_subdirectory( DatabaseIDE )
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/CompiledLanguageIDE/AdaIDE/CMakeLists.txt b/src/profiles/IDE/CompiledLanguageIDE/AdaIDE/CMakeLists.txt
index d7c38929..01e77a32 100644
--- a/src/profiles/IDE/CompiledLanguageIDE/AdaIDE/CMakeLists.txt
+++ b/src/profiles/IDE/CompiledLanguageIDE/AdaIDE/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/AdaIDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/AdaIDE
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/CompiledLanguageIDE/CMakeLists.txt b/src/profiles/IDE/CompiledLanguageIDE/CMakeLists.txt
index e681daaf..cfbe15fa 100644
--- a/src/profiles/IDE/CompiledLanguageIDE/CMakeLists.txt
+++ b/src/profiles/IDE/CompiledLanguageIDE/CMakeLists.txt
@@ -16,6 +16,8 @@ add_subdirectory( FortranIDE )
add_subdirectory( HaskellIDE )
add_subdirectory( PascalIDE )
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CIDE/CMakeLists.txt b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CIDE/CMakeLists.txt
index 9fedc767..4186dee7 100644
--- a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CIDE/CMakeLists.txt
+++ b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CIDE/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CIDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CIDE
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CMakeLists.txt b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CMakeLists.txt
index 21eee3b2..62a1afb6 100644
--- a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CMakeLists.txt
+++ b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CMakeLists.txt
@@ -12,6 +12,8 @@
add_subdirectory( CIDE )
add_subdirectory( CppIDE )
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/CMakeLists.txt b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/CMakeLists.txt
index 20e256e4..1b415dd6 100644
--- a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/CMakeLists.txt
+++ b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/CMakeLists.txt
@@ -11,6 +11,8 @@
add_subdirectory( KDECppIDE )
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/CMakeLists.txt b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/CMakeLists.txt
index c87e4747..9aa7d82b 100644
--- a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/CMakeLists.txt
+++ b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/CompiledLanguageIDE/FortranIDE/CMakeLists.txt b/src/profiles/IDE/CompiledLanguageIDE/FortranIDE/CMakeLists.txt
index a3a56986..f059d070 100644
--- a/src/profiles/IDE/CompiledLanguageIDE/FortranIDE/CMakeLists.txt
+++ b/src/profiles/IDE/CompiledLanguageIDE/FortranIDE/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/FortranIDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/FortranIDE
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/CompiledLanguageIDE/HaskellIDE/CMakeLists.txt b/src/profiles/IDE/CompiledLanguageIDE/HaskellIDE/CMakeLists.txt
index e9b3e62e..12ab4d50 100644
--- a/src/profiles/IDE/CompiledLanguageIDE/HaskellIDE/CMakeLists.txt
+++ b/src/profiles/IDE/CompiledLanguageIDE/HaskellIDE/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/HaskellIDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/HaskellIDE
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/CompiledLanguageIDE/JavaIDE/CMakeLists.txt b/src/profiles/IDE/CompiledLanguageIDE/JavaIDE/CMakeLists.txt
index 726990ec..b8a2e403 100644
--- a/src/profiles/IDE/CompiledLanguageIDE/JavaIDE/CMakeLists.txt
+++ b/src/profiles/IDE/CompiledLanguageIDE/JavaIDE/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/JavaIDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/JavaIDE
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/CompiledLanguageIDE/PascalIDE/CMakeLists.txt b/src/profiles/IDE/CompiledLanguageIDE/PascalIDE/CMakeLists.txt
index 5b3a61c0..8f8c9dfb 100644
--- a/src/profiles/IDE/CompiledLanguageIDE/PascalIDE/CMakeLists.txt
+++ b/src/profiles/IDE/CompiledLanguageIDE/PascalIDE/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/PascalIDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/PascalIDE
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/IDE/DatabaseIDE/CMakeLists.txt b/src/profiles/IDE/DatabaseIDE/CMakeLists.txt
index 2acb3950..b5199e38 100644
--- a/src/profiles/IDE/DatabaseIDE/CMakeLists.txt
+++ b/src/profiles/IDE/DatabaseIDE/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/DatabaseIDE )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/DatabaseIDE
+ PO_DIR tdevelop-desktops
+)
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
+)
diff --git a/src/profiles/KDevAssistant/CMakeLists.txt b/src/profiles/KDevAssistant/CMakeLists.txt
index 1f22e2e7..9f52aa04 100644
--- a/src/profiles/KDevAssistant/CMakeLists.txt
+++ b/src/profiles/KDevAssistant/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
-install( FILES
- profile.config
- DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/KDevAssistant )
+tde_create_translated_desktop(
+ SOURCE profile.config
+ DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/KDevAssistant
+ PO_DIR tdevelop-desktops
+)
diff --git a/src/profiles/profile.config b/src/profiles/profile.config
index 00654b45..f71aae03 100644
--- a/src/profiles/profile.config
+++ b/src/profiles/profile.config
@@ -1,3 +1,3 @@
[Information]
-GenericName=TDevelop
Description=Default TDevelop profile
+GenericName=TDevelop