summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-03 15:33:48 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-03 15:33:48 +0200
commit025455d06cd3b97a48720539ef094b66ec3fd391 (patch)
tree1ecb6a8be10c07a81d0ac92e2f0fb8d66e1cdfde /src
parent9e50e74f0c0b299a2bb847a990821d5c8bf997d1 (diff)
downloadkvpnc-025455d06cd3b97a48720539ef094b66ec3fd391.tar.gz
kvpnc-025455d06cd3b97a48720539ef094b66ec3fd391.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.txt10
-rw-r--r--src/CMakeLists.txt11
-rw-r--r--src/eventsrc68
-rw-r--r--src/kvpnc.desktop11
4 files changed, 16 insertions, 84 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index d9f4b00..471a9cb 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,13 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/kvpnc" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kvpnc.desktop/"
+ SOURCES kvpnc.desktop
+)
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/eventsrc/"
+ SOURCES_DESKTOP eventsrc
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f1b99af..af60eb5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -99,7 +99,6 @@ install(
install(
FILES
- eventsrc
kvpncui.rc
newprofilewizard.png
newprofilewizard_final.png
@@ -108,12 +107,14 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
+tde_create_translated_desktop(
+ SOURCE eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
+)
+
install(
FILES pcf.protocol
DESTINATION ${SERVICES_INSTALL_DIR}
)
-install(
- FILES ${PROJECT_NAME}.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
diff --git a/src/eventsrc b/src/eventsrc
index 14c5b53..ca808d9 100644
--- a/src/eventsrc
+++ b/src/eventsrc
@@ -1,26 +1,11 @@
[!Global!]
Name=KVpnc
-Name[xx]=xxKVpncxx
IconName=kvpnc
Comment=KVpnc
-Comment[xx]=xxKVpncxx
[connection established]
Name=Connection established
-Name[da]=Forbindelse etableret
-Name[de]=Verbindung aufgebaut
-Name[es]=Conexión establecida
-Name[ga]=Nasc déanta
-Name[pt]=Ligação estabelecida
-Name[sv]=Anslutning upprättad
-Name[xx]=xxConnection establishedxx
Comment=The connection has now established
-Comment[da]=Forbindelsen er nu oprettet
-Comment[de]=Die Verbindung wurde aufgebaut
-Comment[es]=La conexión está establecida
-Comment[pt]=A ligação foi estabelecida
-Comment[sv]=Anslutningen har nu upprättats
-Comment[xx]=xxThe connection has now establishedxx
default_sound=
default_presentation=16
nopresentation=0
@@ -28,19 +13,7 @@ level=1
[connection finished]
Name=Connection finished
-Name[da]=Forbindelse afsluttet
-Name[de]=Verbindung beendet
-Name[es]=Conexión finalizada
-Name[pt]=Ligação terminada
-Name[sv]=Anslutning avslutad
-Name[xx]=xxConnection finishedxx
Comment=The connection has now finished
-Comment[da]=Forbindelsen er nu afsluttet
-Comment[de]=Die Verbindung wurde beendet
-Comment[es]=La conexión ha finalizado
-Comment[pt]=A ligação terminou
-Comment[sv]=Anslutningen har nu avslutats
-Comment[xx]=xxThe connection has now finishedxx
default_sound=
default_presentation=16
nopresentation=0
@@ -48,19 +21,7 @@ level=1
[connection lost]
Name=Connection lost
-Name[da]=Forbindelse gået tabt
-Name[de]=Verbindung verloren
-Name[es]=Conexión perdida
-Name[pt]=Ligação perdida
-Name[sv]=Anslutning förlorad
-Name[xx]=xxConnection lostxx
Comment=The connection has now lost
-Comment[da]=Forbindelsen er afsluttet
-Comment[de]=Die Verbindung wurde verloren
-Comment[es]=La conexión ha finalizado
-Comment[pt]=A ligação terminou de forma abrupta
-Comment[sv]=Anslutningen har nu avslutats
-Comment[xx]=xxThe connection has now finishedxx
default_sound=
default_presentation=16
nopresentation=0
@@ -68,11 +29,7 @@ level=1
[connect try canceled]
Name=Connection try canceled
-Name[de]=Verbindungsaufbau abgebrochen
-Name[xx]=xxConnection try canceledtxx
Comment=The connection try was canceled
-Comment[de]=Verbindungsaufbau wurde abgebrochen
-Comment[xx]=xxThe connection try was canceledxx
default_sound=
default_presentation=16
nopresentation=0
@@ -80,19 +37,7 @@ level=1
[ping success]
Name=Ping sucess
-Name[da]=Ping lykkedes
-Name[de]=Ping erfolgreich
-Name[es]=Ping correcto
-Name[pt]=Sucesso no 'ping'
-Name[sv]=Ping lyckades
-Name[xx]=xxPing sucessxx
Comment=Ping was successful
-Comment[da]=Ping lykkedes
-Comment[de]=Pingtest war erfolgreich
-Comment[es]=Ping correcto
-Comment[pt]=O 'ping' foi bem sucedido
-Comment[sv]=Ping lyckades
-Comment[xx]=xxPing was successfulxx
default_sound=
default_presentation=16
nopresentation=0
@@ -100,21 +45,8 @@ level=1
[ping failed]
Name=Ping failed
-Name[da]=Ping mislykkedes
-Name[de]=Ping fehlgeschlagen
-Name[es]=Falló el Ping
-Name[pt]=Erro no 'ping'
-Name[sv]=Ping misslyckades
-Name[xx]=xxPing failedxx
Comment=The ping was not sucessful
-Comment[da]=Ping lykkedes ikke
-Comment[de]=Pingtest ist fehlgeschlagen
-Comment[es]=El ping no tuvo éxito
-Comment[pt]=A operação de 'ping' não correu bem
-Comment[sv]=Ping lyckades inte
-Comment[xx]=xxThe ping was not sucessfulxx
default_sound=
default_presentation=16
nopresentation=0
level=1
-
diff --git a/src/kvpnc.desktop b/src/kvpnc.desktop
index 04edb05..860053c 100644
--- a/src/kvpnc.desktop
+++ b/src/kvpnc.desktop
@@ -1,21 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Comment=GUI for various VPN clients
-Comment[es]=Interfaces para varios clientes VPN
-Comment[de]=Oberfläche für VPN-Clients
-Comment[pt]=Interface para vários clientes de VPNs
-Comment[sv]=Grafiskt gränssnitt för diverse VPN-klienter
-Comment[xx]=xxGUI for various VPN clientsxx
Name=Kvpnc
-Name[xx]=xxKvpncxx
GenericName=VPN Client GUI
-GenericName[es]=Interfaz del cliente VPN
-GenericName[de]=VPN-Client-GUI
-GenericName[pt]=GUI de Cliente de VPN
-GenericName[sv]=Grafiskt gränssnitt för VPN-klienter
-GenericName[xx]=xxVPN Client GUIxx
Categories=Network;RemoteAccess;TDE;Qt
Exec=kvpnc