summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-06 15:48:39 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-06 15:48:39 +0200
commit00d390707434fe3ce743ea1d9cbc10e82ebd7487 (patch)
treef1c63716fe68ff07b78b35aec89894d704bd75e4 /src
parent2504ff7c8090118edcf11de710b5454f47306708 (diff)
downloadtdmtheme-00d390707434fe3ce743ea1d9cbc10e82ebd7487.tar.gz
tdmtheme-00d390707434fe3ce743ea1d9cbc10e82ebd7487.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')
-rw-r--r--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt5
-rw-r--r--src/tdmtheme.desktop14
3 files changed, 6 insertions, 18 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index 804b624..a217759 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/tdmtheme" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/tdmtheme.desktop/"
+ SOURCES tdmtheme.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9ac43d7..b77500c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -29,7 +29,4 @@ tde_add_kpart( kcm_tdmtheme AUTOMOC
##### other data
-install(
- FILES ${PROJECT_NAME}.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
diff --git a/src/tdmtheme.desktop b/src/tdmtheme.desktop
index 9d8eff2..c17e347 100644
--- a/src/tdmtheme.desktop
+++ b/src/tdmtheme.desktop
@@ -12,21 +12,7 @@ X-TDE-ParentApp=kcontrol
X-Keywords=tdmtheme;
Comment=tdmtheme - TDM Theme Manager
-Comment[es]=tdmtheme - Manejador del tema de TDM
-Comment[sv]=tdmtheme - Temahanterare för TDM
-Comment[id]=tdmtheme - Pengatur Tema TDM
-Comment[ms]=tdmtheme - Pengatur Tema TDM
-Comment[fr]=tdmtheme - Gestionnaire de thèmes TDM
-Comment[it]=tdmtheme - Gestore di temi TDM
-Comment[jp]=tdmtheme - TDM テーママネージャー
Name=TDM Theme Manager
-Name[es]=Manejador del tema de TDM
-Name[sv]=Temahanterare för TDM
-Name[id]=Pengatur Tema TDM
-Name[ms]=Pengatur Tema TDM
-Name[fr]=Gestionnaire de thèmes TDM
-Name[it]=Gestore di temi TDM
-Name[jp]=TDM テーママネージャー
Categories=Qt;TDE;X-TDE-settings-system;X-TDE-systemsettings-lookandfeel-appearance;
X-DocPath=tdmtheme/index.html