summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-03 18:24:09 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-03 18:24:09 +0200
commit34bda30cd92780ed0146c9ba639327b65e66d7ca (patch)
tree156e8a6f3a9a5d4a604b39f542a1ec02244eeda1 /src
parentcdbd14a658fb50f6f16a3dca80598e0c75a7f131 (diff)
downloadpotracegui-34bda30cd92780ed0146c9ba639327b65e66d7ca.tar.gz
potracegui-34bda30cd92780ed0146c9ba639327b65e66d7ca.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/potracegui.desktop20
3 files changed, 6 insertions, 24 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index d9db4bd..1ed0a7c 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/potracegui" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/potracegui.desktop/"
+ SOURCES potracegui.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0589218..8998775 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -44,7 +44,4 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
-install(
- FILES ${PROJECT_NAME}.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
diff --git a/src/potracegui.desktop b/src/potracegui.desktop
index a700f9f..4990b1f 100644
--- a/src/potracegui.desktop
+++ b/src/potracegui.desktop
@@ -1,30 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Name=Potracegui
-Name[xx]=xxpotraceguixx
GenericName=Bitmap Tracing
Exec=potracegui
Icon=potracegui
Type=Application
Comment=A simple TDE Application
-Comment[ca]=Una simple aplicació TDE
-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[fr]=Une application simple pour TDE.
-Comment[hu]=Egyszerű TDE-alkalmazás
-Comment[it]=Una semplice applicazione TDE
-Comment[nl]=Een eenvoudige TDE-toepassing
-Comment[pt]=Uma aplicação TDE simples
-Comment[pt_BR]=Um simples Aplicativo do TDE
-Comment[ru]=Простое приложение TDE
-Comment[sl]=Preprost program za TDE
-Comment[sr]=Једноставан TDE програм
-Comment[sv]=Ett enkelt TDE-program
-Comment[ta]=ஒரு சாஅதரன கெடி பயன்பாடு
-Comment[xx]=xxA simple TDE Applicationxx
-Comment[zh_CN]=一个简单的TDE应用程序
Categories=Qt;TDE;Graphics;
X-DocPath=potracegui/index.html