diff options
author | Slávek Banko <[email protected]> | 2020-05-01 19:22:24 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-05-01 19:22:33 +0200 |
commit | 342c359f0d7ba5ee8d3ad3f9157060247c0602bd (patch) | |
tree | 8391614785a07d00ffe8ad3b94e1cddb34c4e9d9 /src | |
parent | f3ed47ff4862c053a76fd1a3724e65f9a5814c7b (diff) | |
download | knutclient-342c359f0d7ba5ee8d3ad3f9157060247c0602bd.tar.gz knutclient-342c359f0d7ba5ee8d3ad3f9157060247c0602bd.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 <[email protected]>
(cherry picked from commit 094a30578fcf24aa9c60fab93b924651d90ef299)
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeL10n.txt | 5 | ||||
-rw-r--r-- | src/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/knutclient.desktop | 5 |
3 files changed, 6 insertions, 9 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index 9002759..36edd9b 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## tde_l10n_create_template( "messages/knutclient" ) + +tde_l10n_create_template( + CATALOG "desktop_files/knutclient.desktop/" + SOURCES knutclient.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c2d88ab..17ff33e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -55,7 +55,4 @@ install( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} ) -install( - FILES ${PROJECT_NAME}.desktop - DESTINATION ${APPS_INSTALL_DIR}/Utilities -) +tde_create_translated_desktop( ${PROJECT_NAME}.desktop ) diff --git a/src/knutclient.desktop b/src/knutclient.desktop index f1d259d..c2c32af 100644 --- a/src/knutclient.desktop +++ b/src/knutclient.desktop @@ -7,13 +7,8 @@ Icon=knutclient MiniIcon=knutclient X-DocPath=knutclient/index.html Name=KNutClient -Name[de]=KNutClient -Name[cs]=KNutClient GenericName=Network UPS Client Comment=Client for NUT -Comment[de]= -Comment[cs]=Klient pro UPS syst� NUT -Comment[es]=Cliente TDE para NUT Terminal=0 X-TDE-StartupNotify=true Categories=Qt;TDE;System;Monitor; |