diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-04-29 23:03:23 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-04-29 23:03:23 +0200 |
commit | 21a01e1e32dc492df1c0afa64d1a1161fc8c8a7d (patch) | |
tree | 2b35842411a5137b4e34222c9bf1d4cd35bdc46f /src | |
parent | ced70fe718950116ebf1b353e89936e120d4aa9a (diff) | |
download | knetstats-21a01e1e32dc492df1c0afa64d1a1161fc8c8a7d.tar.gz knetstats-21a01e1e32dc492df1c0afa64d1a1161fc8c8a7d.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/knetstats.desktop | 22 |
3 files changed, 6 insertions, 26 deletions
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 |