summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/tdeioslave
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-07-29 22:43:34 +0200
committerSlávek Banko <[email protected]>2020-07-30 16:00:07 +0200
commitfe44776673b28ca94338f23d8e7ac71593fa88ba (patch)
treeb900146c853acbd44900bfb77a35a1af3c77aa5d /languages/cpp/app_templates/tdeioslave
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 <[email protected]>
Diffstat (limited to 'languages/cpp/app_templates/tdeioslave')
-rw-r--r--languages/cpp/app_templates/tdeioslave/CMakeLists.txt34
-rw-r--r--languages/cpp/app_templates/tdeioslave/slave.protocol31
-rw-r--r--languages/cpp/app_templates/tdeioslave/tdeioslave.kdevtemplate81
3 files changed, 34 insertions, 112 deletions
diff --git a/languages/cpp/app_templates/tdeioslave/CMakeLists.txt b/languages/cpp/app_templates/tdeioslave/CMakeLists.txt
index 4e1725bd..f3d910c8 100644
--- a/languages/cpp/app_templates/tdeioslave/CMakeLists.txt
+++ b/languages/cpp/app_templates/tdeioslave/CMakeLists.txt
@@ -9,11 +9,30 @@
#
#################################################
-add_custom_target( tdeioslave.tar.gz ALL
- COMMAND ${TAR} zcf tdeioslave.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
- slave.cpp slave.h slave.protocol slave.kdevelop
+set( _tarball_desktops slave.protocol )
+set( _tarball_files
+ slave.cpp slave.h slave.kdevelop
src-Makefile.am tdeioslave.png 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 tdeioslave.tar.gz
+ SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}
+ FILES ${_tarball_content}
+)
install( FILES
@@ -21,6 +40,9 @@ install( FILES
DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
-install( FILES
- tdeioslave.kdevtemplate
- DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
+tde_create_translated_desktop(
+ SOURCE tdeioslave.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates
+ KEYWORDS Category
+ PO_DIR tdevelop-desktops
+)
diff --git a/languages/cpp/app_templates/tdeioslave/slave.protocol b/languages/cpp/app_templates/tdeioslave/slave.protocol
index c0ba2fe9..78b253e8 100644
--- a/languages/cpp/app_templates/tdeioslave/slave.protocol
+++ b/languages/cpp/app_templates/tdeioslave/slave.protocol
@@ -6,34 +6,5 @@ output=stream
reading=true
defaultMimetype=text/plain
Icon=remote
+
Description=A tdeioslave for %{APPNAMELC}
-Description[br]=Ur c'hioslave evit %{APPNAMELC}
-Description[ca]=Un tdeioslave per a %{APPNAMELC}
-Description[da]=En tdeioslave til %{APPNAMELC}
-Description[de]=Ein Ein-/Ausgabemodul für %{APPNAMELC}
-Description[el]=Ένα υπηρέτης tdeio για %{APPNAMELC}
-Description[es]=Un tdeioslave para %{APPNAMELC}
-Description[et]=%{APPNAMELC} IO-moodul
-Description[eu]=tdeioslave bat honentzat: %{APPNAMELC}
-Description[fa]=یک tdeioslave برای %{APPNAMELC}
-Description[fr]=Un esclave d'E/S (tdeioslave) pour %{APPNAMELC}
-Description[ga]=tdeioslave le haghaidh %{APPNAMELC}
-Description[gl]=Un tdeioslave para %{APPNAMELC}
-Description[hu]=%{APPNAMELC}-támogató KIOslave
-Description[it]=Un tdeioslave per %{APPNAMELC}
-Description[ja]=%{APPNAMELC} のための tdeioslave
-Description[nds]=En In-/Utgaavmoduul för %{APPNAMELC}
-Description[ne]= %{APPNAMELC} का लागि किवस्लेभ
-Description[nl]=Kioslave voor %{APPNAMELC}
-Description[pl]=tdeioslave dla %{APPNAMELC}
-Description[pt]=Um 'tdeioslave' para %{APPNAMELC}
-Description[pt_BR]=Um tdeioslave para %{APPNAMELC}
-Description[ru]=Канал tdeioslave для %{APPNAMELC}
-Description[sk]=tdeioslave pre %{APPNAMELC}
-Description[sl]=tdeioslave za %{APPNAMELC}
-Description[sr]=KIOSlave за %{APPNAMELC}
-Description[sr@Latn]=KIOSlave za %{APPNAMELC}
-Description[sv]=En I/O-slav för %{APPNAMELC}
-Description[tr]=%{APPNAMELC} için bir tdeioslave
-Description[zh_CN]=%{APPNAMELC} 的 tdeioslave
-Description[zh_TW]=%{APPNAMELC} 的 tdeioslave
diff --git a/languages/cpp/app_templates/tdeioslave/tdeioslave.kdevtemplate b/languages/cpp/app_templates/tdeioslave/tdeioslave.kdevtemplate
index 48389232..4af9d2b4 100644
--- a/languages/cpp/app_templates/tdeioslave/tdeioslave.kdevtemplate
+++ b/languages/cpp/app_templates/tdeioslave/tdeioslave.kdevtemplate
@@ -1,55 +1,12 @@
# TDE Config File
[General]
Name=TDEIO slave
-Name[br]=Sklav TDEIO
-Name[ca]=Esclau TDEIO
-Name[da]=TDEIO-slave
-Name[de]=Ein-/Ausgabemodul
-Name[el]=Υπηρέτης TDEIO
-Name[es]=Esclavo TDEIO
-Name[et]=TDEIO-moodul
-Name[eu]=TDEIO morroia
-Name[fr]=Esclave TDEIO
-Name[ga]=Sclábhaí TDEIO
-Name[gl]=Escravo TDEIO
-Name[hu]=TDE-protokoll (KIOslave)
-Name[it]=Slave TDEIO
-Name[nds]=In-/Utgaavmoduul
-Name[ne]=TDEIO स्लेभ
-Name[nl]=TDEIO-slave
-Name[pt]=TDEIO Slave
-Name[sk]=TDEIO otrok
-Name[sv]=I/O-slav
-Icon=tdeioslave.png
-Category=C++/TDE
+
Comment=Generates a framework for an IO slave
-Comment[ca]=Genera una infraestructura per a un esclau IO
-Comment[da]=Genererer et skelet for en IO-slave
-Comment[de]=Erstellt das Grundgerüst für ein Ein-/Ausgabemodul.
-Comment[el]=Δημιουργεί ένα πλαίσιο για έναν υπηρέτη IO
-Comment[es]=Genera una infraestructura para un esclavo de E/S
-Comment[et]=IO-mooduli raamistiku loomine
-Comment[eu]=IO morroi baterako lan-marko bat sortzen du
-Comment[fa]=چارچوبی برای یک IO slave تولید می‌کند
-Comment[fr]=Génère une infrastructure pour un esclave d'entrée / sortie
-Comment[ga]=Cruthaíonn sé seo creatlach le haghaidh sclábhaí IO
-Comment[gl]=Xera un contorno de traballo para un escravo IO
-Comment[hu]=Létrehoz egy kiindulási keretprogramot KIOslave készítéséhez
-Comment[it]=Genera l'infrastruttura per uno slave di I/O
-Comment[ja]=IO slave のフレームワークを作成します
-Comment[nds]=Stellt dat Rahmenwark för en In-/Utgaavmoduul op
-Comment[ne]=IO स्लेभका लागि फ्रेमवर्क उत्पन्न गर्दछ
-Comment[nl]=Genereert een framework voor een IO-slave
-Comment[pl]=Generuje szablon dla IO slave
-Comment[pt]=Gera a plataforma para um 'IO slave'
-Comment[pt_BR]=Gera a plataforma para um 'IO slave'
-Comment[ru]=Создание канала IO slave для TDE
-Comment[sk]=Vygeneruje framework pre IO otroka
-Comment[sr]=Прави радни оквир за IO slave
-Comment[sr@Latn]=Pravi radni okvir za IO slave
-Comment[sv]=Skapar ett ramverk för en I/O-slav
-Comment[zh_CN]=生成一个 IO slave 的框架
-Comment[zh_TW]=產生一個 IO slave 的框架
+
+Category=C++/TDE
+
+Icon=tdeioslave.png
FileTemplates=h,CStyle,cpp,CStyle
ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.cpp
Archive=tdeioslave.tar.gz
@@ -148,31 +105,3 @@ Dest=%{dest}/src/%{APPNAMELC}.protocol
[MSG]
Type=message
Comment=A TDEIO slave was created in %{dest}
-Comment[ca]=Un esclau TDEIO ha estat creat en %{dest}
-Comment[da]=En TDEIO-slave blev oprettet i %{dest}
-Comment[de]=Ein Ein-/Ausgabemodul wurde in %{dest} erstellt.
-Comment[el]=Ένας υπηρέτης TDEIO δημιουργήθηκε στο %{dest}
-Comment[es]=Un esclavo TDEIO ha sido creado en %{dest}
-Comment[et]=TDEIO-moodul loodi asukohta %{dest}
-Comment[eu]=TDEIO morroi bat sortu da hemen: %{dest}
-Comment[fa]=یک TDEIO slave در %{dest} ایجاد شد
-Comment[fr]=Un esclave d'entrée / sortie a été créé dans %{dest}
-Comment[ga]=Cruthaíodh sclábhaí TDEIO i %{dest}
-Comment[gl]=Creouse un escravo TDEIO en %{dest}
-Comment[hu]=Létrejött egy KIOslave itt: %{dest}
-Comment[it]=È stato generato un slave TDEIO in %{dest}
-Comment[ja]=TDEIO slave を %{dest} に作成しました。
-Comment[nds]=In %{dest} wöör en In-/Utgaavmoduul opstellt
-Comment[ne]=TDEIO स्लेभ %{dest} मा सिर्जना गरियो
-Comment[nl]=Een TDEIO-slave is aangemaakt in %{dest}
-Comment[pl]=TDEIO slave został utworzony w %{dest}
-Comment[pt]=Foi criado um 'TDEIO slave' em %{dest}
-Comment[pt_BR]=Foi criado um 'TDEIO slave' em %{dest}
-Comment[ru]=Канал TDEIO slave создан в %{dest}
-Comment[sk]=TDEIO otrok bol vytvorený v %{dest}
-Comment[sr]=TDEIO slave је направљен у %{dest}
-Comment[sr@Latn]=TDEIO slave je napravljen u %{dest}
-Comment[sv]=En I/O-slav skapades i %{dest}
-Comment[tr]=Bir TDEIO slave'i %{dest} içinde yaratıldı.
-Comment[zh_CN]=在 %{dest} 中创建了一个 TDEIO slave
-Comment[zh_TW]=一個 TDEIO slave 已建立於 %{dest}