summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-04-30 17:49:31 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-30 17:49:31 +0200
commit193377c524f58f2ae93489afb23b74c418e26fad (patch)
tree2a3a94d7f48a20932d9a3157acfa0c4211819860 /src
parente65f4accce0f660916a1e3ab937692378ec0049b (diff)
downloadknmap-193377c524f58f2ae93489afb23b74c418e26fad.tar.gz
knmap-193377c524f58f2ae93489afb23b74c418e26fad.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/knmap.desktop33
3 files changed, 6 insertions, 37 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index 2ded689..9fa6aeb 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/knmap" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/knmap.desktop/"
+ SOURCES knmap.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index bf1ca8a..c9681f5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -62,7 +62,4 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
-install(
- FILES ${PROJECT_NAME}.desktop
- DESTINATION ${APPS_INSTALL_DIR}/Internet
-)
+tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
diff --git a/src/knmap.desktop b/src/knmap.desktop
index 4cd71e0..c1a83e4 100644
--- a/src/knmap.desktop
+++ b/src/knmap.desktop
@@ -1,43 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Name=KNmap
-Name[xx]=xxknmapxx
Exec=knmap
Icon=knmap
Type=Application
Comment=A simple TDE Application
-Comment[br]=Ur meziant eeun evit TDE
-Comment[ca]=Una aplicació TDE simple
-Comment[da]=Et simpelt TDE program
-Comment[de]=Eine einfache TDE-Anwendung
-Comment[el]=Μια απλή εφαρμογή του TDE
-Comment[es]=Una aplicación de TDE sencilla
-Comment[et]=Lihtne TDE rakendus
-Comment[eu]=TDE aplikazio simple bat
-Comment[fr]=Une application simple pour TDE
-Comment[ga]=Feidhmchlár Simplí TDE
-Comment[hi]=एक सादा केडीई अनुप्रयोग
-Comment[hu]=Egyszerű TDE-alkalmazás
-Comment[is]=Einfalt TDE forrit
-Comment[it]=Una semplice applicazione TDE
-Comment[ja]=シンプルな TDE アプリケーション
-Comment[nb]=Et enkelt TDE-program
-Comment[nl]=Een eenvoudige TDE-toepassing
-Comment[pl]=Prosty program TDE
-Comment[pt]=Uma aplicação simples do TDE
-Comment[pt_BR]=Um simples Aplicativo do TDE
-Comment[ru]=Простое приложение TDE
-Comment[sl]=Preprost program za TDE
-Comment[sr]=Једноставан TDE програм
-Comment[sr@Latn]=Jednostavan TDE program
-Comment[sv]=Ett enkelt TDE-program
-Comment[ta]=ஒரு சாதாரண கெடிஇ பயன்பாடு
-Comment[tg]=Гузориши оддиTDE
-Comment[tr]=Basit bir TDE Uygulaması
-Comment[uk]=Проста програма TDE
-Comment[xx]=xxA simple TDE Applicationxx
-Comment[zh_CN]=一个简单的 TDE 应用程序
GenericName=Nmap Graphical User Interface
-GenericName[fr]=Interface Graphique pour nmap
Categories=Qt;TDE;Network;
X-DocPath=knmap/index.html