summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/tdefileplugin
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-29 22:43:34 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-30 16:00:07 +0200
commitfe44776673b28ca94338f23d8e7ac71593fa88ba (patch)
treeb900146c853acbd44900bfb77a35a1af3c77aa5d /languages/cpp/app_templates/tdefileplugin
parentc0b663c4c873df495743600b8f703744420eddfa (diff)
downloadtdevelop-fe44776673b28ca94338f23d8e7ac71593fa88ba.tar.gz
tdevelop-fe44776673b28ca94338f23d8e7ac71593fa88ba.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 'languages/cpp/app_templates/tdefileplugin')
-rw-r--r--languages/cpp/app_templates/tdefileplugin/CMakeLists.txt34
-rw-r--r--languages/cpp/app_templates/tdefileplugin/tdefile_plugin.desktop31
-rw-r--r--languages/cpp/app_templates/tdefileplugin/tdefileplugin7
-rw-r--r--languages/cpp/app_templates/tdefileplugin/tdefileplugin.kdevtemplate62
4 files changed, 40 insertions, 94 deletions
diff --git a/languages/cpp/app_templates/tdefileplugin/CMakeLists.txt b/languages/cpp/app_templates/tdefileplugin/CMakeLists.txt
index c9b3bd16..4f305408 100644
--- a/languages/cpp/app_templates/tdefileplugin/CMakeLists.txt
+++ b/languages/cpp/app_templates/tdefileplugin/CMakeLists.txt
@@ -9,12 +9,31 @@
#
#################################################
-add_custom_target( tdefileplugin.tar.gz ALL
- COMMAND ${TAR} zcf tdefileplugin.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
- README.devel tdefile_plugin.cpp tdefile_plugin.desktop
+set( _tarball_desktops tdefile_plugin.desktop )
+set( _tarball_files
+ README.devel tdefile_plugin.cpp
tdefile_plugin.h plugin.kdevelop tdefileplugin tdefileplugin.png
src-Makefile.am subdirs
)
+set( _tarball_content ${_tarball_desktops} ${_tarball_files} )
+list( SORT _tarball_content )
+
+tde_create_translated_desktop(
+ SOURCE ${_tarball_desktops}
+ DESTINATION -
+ PO_DIR tdevelop-desktops
+)
+
+file(
+ COPY ${_tarball_files}
+ DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+tde_create_tarball(
+ TARGET tdefileplugin.tar.gz
+ SOURCEDIR ${CMAKE_CURRENT_BINARY_DIR}
+ FILES ${_tarball_content}
+)
install( FILES
@@ -22,6 +41,9 @@ install( FILES
DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
-install( FILES
- tdefileplugin.kdevtemplate
- DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
+tde_create_translated_desktop(
+ SOURCE tdefileplugin.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates
+ KEYWORDS Category
+ PO_DIR tdevelop-desktops
+)
diff --git a/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.desktop b/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.desktop
index 8c218bb7..19094e6b 100644
--- a/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.desktop
+++ b/languages/cpp/app_templates/tdefileplugin/tdefile_plugin.desktop
@@ -1,34 +1,7 @@
[Desktop Entry]
-Type=Service
Name=%{APPNAME} Info
-Name[br]=Titouriñ diwar-benn %{APPNAME}
-Name[ca]=Informació per a %{APPNAME}
-Name[da]=%{APPNAME} info
-Name[el]=Πληροφορίες %{APPNAME}
-Name[es]=Información de %{APPNAME}
-Name[et]=%{APPNAME} info
-Name[eu]=%{APPNAME} informazioa
-Name[fa]=اطلاعات %{APPNAME}
-Name[fr]=Informations sur %{APPNAME}
-Name[ga]=Eolas faoi %{APPNAME}
-Name[gl]=Información de %{APPNAME}
-Name[hu]=%{APPNAME} jellemzői
-Name[it]=Informazioni su %{APPNAME}
-Name[nds]=%{APPNAME}-Info
-Name[ne]=%{APPNAME} सूचना
-Name[pl]=Informacje dla %{APPNAME}
-Name[pt]=Informação do %{APPNAME}
-Name[pt_BR]=Informações de %{APPNAME}
-Name[ru]=Информация о %{APPNAME}
-Name[sk]=%{APPNAME} info
-Name[sl]=Informacije o %{APPNAME}
-Name[sr]=Информације за %{APPNAME}
-Name[sr@Latn]=Informacije za %{APPNAME}
-Name[sv]=%{APPNAME} information
-Name[ta]=%{APPNAME} தகவல்
-Name[tg]=Маълумот дар бораи %{APPNAME}
-Name[zh_CN]=%{APPNAME}的信息
-Name[zh_TW]=%{APPNAME} 資訊
+
+Type=Service
X-TDE-ServiceTypes=KFilePlugin
X-TDE-Library=tdefile_%{APPNAMELC}
# change MimeType here! (example: inode/directory)
diff --git a/languages/cpp/app_templates/tdefileplugin/tdefileplugin b/languages/cpp/app_templates/tdefileplugin/tdefileplugin
index b902179d..2ab40baf 100644
--- a/languages/cpp/app_templates/tdefileplugin/tdefileplugin
+++ b/languages/cpp/app_templates/tdefileplugin/tdefileplugin
@@ -1,8 +1,11 @@
# TDE Config File
[General]
Name=KFile plugin
-Icon=tdefileplugin.png
-Category=C++/TDE
+
Comment=Generates a KFile plugin for konqueror to display meta information.
+
+Category=C++/TDE
+
+Icon=tdefileplugin.png
FileTemplates=h,CStyle,cpp,CStyle
ShowFilesAfterGeneration=README.devel,src/tdefile_APPNAMELC.cpp
diff --git a/languages/cpp/app_templates/tdefileplugin/tdefileplugin.kdevtemplate b/languages/cpp/app_templates/tdefileplugin/tdefileplugin.kdevtemplate
index ee15dc0d..5284e7a4 100644
--- a/languages/cpp/app_templates/tdefileplugin/tdefileplugin.kdevtemplate
+++ b/languages/cpp/app_templates/tdefileplugin/tdefileplugin.kdevtemplate
@@ -1,64 +1,12 @@
# TDE Config File
[General]
Name=KFile plugin
-Name[br]=Lugent KFile
-Name[ca]=Connector KFile
-Name[de]=KFile-Modul
-Name[el]=Πρόσθετο KFile
-Name[es]=Complemento para KFile
-Name[et]=KFile'i plugin
-Name[eu]=KFile plugin-a
-Name[fa]=وصلۀ KFile
-Name[fr]=Module externe KFile
-Name[ga]=Breiseán KFile
-Name[gl]=Extensión para KFile
-Name[hu]=KFile-bővítőmodul
-Name[it]=Plugin KFile
-Name[ja]=KFile プラグイン
-Name[nds]=KFile-Moduul
-Name[ne]=केडीई फाइल प्लगइन
-Name[nl]=KFile-plugin
-Name[pl]=Wtyczka do KFile
-Name[pt]='Plugin' do KFile
-Name[pt_BR]='Plugin' do KFile
-Name[ru]=Модуль KFile
-Name[sk]=KFile modul
-Name[sl]=Vstavek za KFile
-Name[sr]=Прикључак за KFile
-Name[sr@Latn]=Priključak za KFile
-Name[sv]=KFile-insticksprogram
-Name[tr]=KFile Eklentisi
-Name[zh_CN]=KFile 插件
-Name[zh_TW]=KFile 外掛程式
-Icon=tdefileplugin.png
-Category=C++/TDE
+
Comment=Generates a KFile plugin for konqueror to display meta information.
-Comment[ca]=Genera un connector KFile per al konqueror per a mostrar meta informació.
-Comment[da]=Genererer et KFile-plugin for konqueror til at vise meta-information.
-Comment[de]=Erstellt ein KFile-Modul für Konqueror zur Anzeige von Meta-Daten.
-Comment[el]=Δημιουργεί ένα πρόσθετο KFile για την εμφάνιση μεταπληροφοριών στον konqueror.
-Comment[es]=Genera un complemento de KFile para Konqueror que muestra metainformación.
-Comment[et]=Konquerori KFile'i plugina loomine, mis näitab metainfot.
-Comment[eu]=Meta-informazioa bistaratzeko Konqueror-en KFile plugin bat sortzen du.
-Comment[fa]=یک وصلۀ KFile برای konqueror جهت نمایش فرااطلاعات تولید می‌کند.
-Comment[fr]=Génère un module externe KFile pour que Konqueror affiche des méta-informations.
-Comment[gl]=Xera unha extensión para KFile para permitir a konqueror mostrar metainformación.
-Comment[hu]=Létrehoz egy KFile-bővítőmodult, mellyel a Konquerorban dokumentumjellemzőket lehet megjeleníteni.
-Comment[it]=Genera un plugin KFile per Konqueror per mostrare meta informazioni.
-Comment[nds]=Stellt en KFile-Moduul för Konqueror op, dat Metadaten wiest.
-Comment[ne]=मेटा सूचना देखाउन कन्क्वेररका लागि केडीई फाइल प्लगइन उत्पन्न गर्दछ ।
-Comment[nl]=Genereert een KFile-plugin voor konqueror voor het weergeven van meta-informatie.
-Comment[pl]=Generuje wtyczkę KFile dla Konquerora do wyświetlania informacji meta.
-Comment[pt]=Gera um 'plugin' do KFile para o Konqueror poder mostrar meta-informações.
-Comment[pt_BR]=Gera um 'plugin' do KFile para o Konqueror poder mostrar meta-informações.
-Comment[ru]=Создание модуля KFile для показа метаданных в Konqueror.
-Comment[sk]=Vygeneruje KFile modul pre konqueror na zobrazenie meta informácií.
-Comment[sr]=Прави прикључак за KFile за приказ метаинформација у Konqueror-у.
-Comment[sr@Latn]=Pravi priključak za KFile za prikaz metainformacija u Konqueror-u.
-Comment[sv]=Skapar ett KFile-insticksprogram till Konqueror för att visa metainformation.
-Comment[tr]=Meta bilgisini göstermesi için Konqueror'a bir KFile eklentisi yaratır.
-Comment[zh_CN]=生成一个可显示元信息的 Konqueror KFile 插件。
-Comment[zh_TW]=產生一個 Konqueror 的 KFile 外掛程式,顯示中繼資訊
+
+Category=C++/TDE
+
+Icon=tdefileplugin.png
FileTemplates=h,CStyle,cpp,CStyle
ShowFilesAfterGeneration=${dest}/README.devel,%{dest}/src/tdefile_%{APPNAMELC}.cpp
Archive=tdefileplugin.tar.gz