diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-05-03 10:31:46 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-05-03 10:31:46 +0200 |
commit | b262eedefe27f773fc0613e761820cd9880cd38f (patch) | |
tree | 2ac7f5c9a1ced2a8a91db8109b32c075f343c5e4 /src | |
parent | 8ff736789df503852579e2d56702b69aff13a25a (diff) | |
download | kvkbd-b262eedefe27f773fc0613e761820cd9880cd38f.tar.gz kvkbd-b262eedefe27f773fc0613e761820cd9880cd38f.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.txt | 5 | ||||
-rw-r--r-- | src/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/kvkbd.desktop | 1 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index e9e8cd3..f246462 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## tde_l10n_create_template( "messages/kvkbd" ) + +tde_l10n_create_template( + CATALOG "desktop_files/kvkbd.desktop/" + SOURCES kvkbd.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6df8e96..dd369e9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -47,7 +47,4 @@ install( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/pics ) -install( - FILES ${PROJECT_NAME}.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} -) +tde_create_translated_desktop( ${PROJECT_NAME}.desktop ) diff --git a/src/kvkbd.desktop b/src/kvkbd.desktop index fb03a02..dfcff05 100644 --- a/src/kvkbd.desktop +++ b/src/kvkbd.desktop @@ -1,7 +1,6 @@ [Desktop Entry] Encoding=UTF-8 Name=Kvkbd -Name[xx]=xxkvkbdxx GenericName=Virtual Keyboard Exec=kvkbd Icon=kvkbd |