From 21a01e1e32dc492df1c0afa64d1a1161fc8c8a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 29 Apr 2020 23:03:23 +0200 Subject: Desktop file translations: + Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/CMakeL10n.txt | 5 +++++ src/CMakeLists.txt | 5 +---- src/knetstats.desktop | 22 ---------------------- 3 files changed, 6 insertions(+), 26 deletions(-) (limited to 'src') diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index 743b62d..b905352 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## tde_l10n_create_template( "messages/knetstats" ) + +tde_l10n_create_template( + CATALOG "desktop_files/knetstats.desktop/" + SOURCES knetstats.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2bbb335..ec97862 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -40,7 +40,4 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC ##### other data -install( - FILES ${PROJECT_NAME}.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} -) +tde_create_translated_desktop( ${PROJECT_NAME}.desktop ) diff --git a/src/knetstats.desktop b/src/knetstats.desktop index d77f9c2..fb5539e 100644 --- a/src/knetstats.desktop +++ b/src/knetstats.desktop @@ -1,28 +1,6 @@ [Desktop Entry] Name=KNetStats -Name[pa]=ਕੇ-ਨੈੱਟ-ਹਾਲਤ GenericName=Network Monitor -GenericName[bg]=Наблюдение на мрежа -GenericName[cs]=Síťový monitor -GenericName[da]=Netværksovervåger -GenericName[de]=Netzwerkmonitor -GenericName[el]=Επόπτης δικτύου -GenericName[es]=Monitor de red -GenericName[et]=Võrgumonitor -GenericName[fr]=Surveillance réseau -GenericName[ga]=Monatóir líonra -GenericName[gl]=Monitor da rede -GenericName[it]=Monitor di rete -GenericName[ja]=ネットワークモニター -GenericName[ka]=ქსელის მეთვალყურე -GenericName[nl]=Netwerkmonitor -GenericName[pa]=ਨੈੱਟਵਰਕ ਨਿਗਰਾਨ -GenericName[pt]=Monitor da rede -GenericName[pt_BR]=Monitor de rede -GenericName[sk]=Monitor siete -GenericName[sv]=Nätverksövervakare -GenericName[tr]=Ağ izleyici -GenericName[uk]=Монітор мережі Exec=knetstats Icon=knetstats Terminal=false -- cgit v1.2.1