From 34bda30cd92780ed0146c9ba639327b65e66d7ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 3 May 2020 18:24:09 +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/potracegui.desktop | 20 -------------------- 3 files changed, 6 insertions(+), 24 deletions(-) (limited to 'src') 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 -- cgit v1.2.1