summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/cppsdlhello
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-07-29 22:43:34 +0200
committerMichele Calgaro <[email protected]>2020-08-01 17:56:29 +0900
commit96fa25303818e6107b72ba624659004751d45ad1 (patch)
tree89a7233f17e403e6b635d2ce7155d5f77a98d3d8 /languages/cpp/app_templates/cppsdlhello
parent3248c8c2f99f71bb2ca5972828754fdabacd7c90 (diff)
downloadtdevelop-96fa25303818e6107b72ba624659004751d45ad1.tar.gz
tdevelop-96fa25303818e6107b72ba624659004751d45ad1.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]> (cherry picked from commit fe44776673b28ca94338f23d8e7ac71593fa88ba)
Diffstat (limited to 'languages/cpp/app_templates/cppsdlhello')
-rw-r--r--languages/cpp/app_templates/cppsdlhello/CMakeLists.txt9
-rw-r--r--languages/cpp/app_templates/cppsdlhello/cppsdlhello9
-rw-r--r--languages/cpp/app_templates/cppsdlhello/cppsdlhello.kdevtemplate95
3 files changed, 16 insertions, 97 deletions
diff --git a/languages/cpp/app_templates/cppsdlhello/CMakeLists.txt b/languages/cpp/app_templates/cppsdlhello/CMakeLists.txt
index 48f8d2b7..2c07142d 100644
--- a/languages/cpp/app_templates/cppsdlhello/CMakeLists.txt
+++ b/languages/cpp/app_templates/cppsdlhello/CMakeLists.txt
@@ -21,6 +21,9 @@ install( FILES
DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
-install( FILES
- cppsdlhello.kdevtemplate
- DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
+tde_create_translated_desktop(
+ SOURCE cppsdlhello.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates
+ KEYWORDS Category
+ PO_DIR tdevelop-desktops
+)
diff --git a/languages/cpp/app_templates/cppsdlhello/cppsdlhello b/languages/cpp/app_templates/cppsdlhello/cppsdlhello
index c3548127..b0ee50b1 100644
--- a/languages/cpp/app_templates/cppsdlhello/cppsdlhello
+++ b/languages/cpp/app_templates/cppsdlhello/cppsdlhello
@@ -1,10 +1,11 @@
# TDE Config File
[General]
Name=Simple SDL program
-Name[fr]=Un simple programme avec SDL
-Icon=cppsdl.png
-Category=C++
+
Comment=Generates a simple SDL program in C++
-Comment[fr]=G�n�re un simple programme de test avec la biblioth�que SDL dans le language C++.
+
+Category=C++
+
+Icon=cppsdl.png
FileTemplates=h,CStyle,cpp,CStyle
ShowFilesAfterGeneration=src/APPNAMELC.cpp
diff --git a/languages/cpp/app_templates/cppsdlhello/cppsdlhello.kdevtemplate b/languages/cpp/app_templates/cppsdlhello/cppsdlhello.kdevtemplate
index 975b93f5..44c6b451 100644
--- a/languages/cpp/app_templates/cppsdlhello/cppsdlhello.kdevtemplate
+++ b/languages/cpp/app_templates/cppsdlhello/cppsdlhello.kdevtemplate
@@ -1,68 +1,12 @@
# TDE Config File
[General]
Name=Simple SDL program
-Name[ca]=Simple programa per a SDL
-Name[da]=Simpelt SDL-program
-Name[de]=Einfaches SDL-Programm
-Name[el]=Απλό πρόγραμμα SDL
-Name[es]=Programa SDL sencillo
-Name[et]=Lihtne SDL programm
-Name[eu]=SDL programa sinplea
-Name[fa]=برنامۀ سادۀ SDL
-Name[fr]=Programme SDL simple
-Name[ga]=Ríomhchlár simplí SDL
-Name[gl]=Programa sinxelo SDL
-Name[hu]=Egyszerű SDL-alkalmazás
-Name[it]=Semplice programma SDL
-Name[ja]=簡単な SDL プログラム
-Name[nds]=Eenfach SDL-Programm
-Name[ne]=साधारण SDL कार्यक्रम
-Name[nl]=Eenvoudig SDL-programma
-Name[pl]=Prosty program używający SDL
-Name[pt]=Programa simples do SDL
-Name[pt_BR]=Programa simples do SDL
-Name[ru]=Простое приложение SDL
-Name[sk]=Jednoduchý SDL program
-Name[sl]=Preprost program SDL
-Name[sr]=Једноставан SDL програм
-Name[sr@Latn]=Jednostavan SDL program
-Name[sv]=Enkelt SDL-program
-Name[tg]=Барноманависии SDL
-Name[tr]=Basit bir SDL Programı
-Name[zh_CN]=简单的 SDL 程序
-Name[zh_TW]=簡單的 SDL 程式
-Icon=cppsdl.png
-Category=C++
+
Comment=Generates a simple SDL program in C++
-Comment[ca]=Genera un simple programa en SDL en C++
-Comment[da]=Genererer et simpelt SDL program i C++
-Comment[de]=Erstellt ein einfaches SDL-Programm in C++
-Comment[el]=Δημιουργεί ένα απλό πρόγραμμα SDL σε C++
-Comment[es]=Genera un sencillo programa SDL en C++
-Comment[et]=Lihtsa SDL programmi loomise C++-s
-Comment[eu]=SDL programa sinple bat sortzen du C++ lengoaian
-Comment[fa]=یک برنامۀ سادۀ SDL در C++ تولید می‌کند
-Comment[fr]=Génère un programme SDL simple en C++
-Comment[ga]=Cruthaíonn sé seo ríomhchlár simplí SDL i C++
-Comment[gl]=Xera un programa sinxelo SDL en C++
-Comment[hu]=Létrehoz egy egyszerű SDL-alkalmazást C++-ban
-Comment[it]=Genera un semplice programma SDL in C++
-Comment[ja]=簡単な SDL プログラムを C++ で作成します
-Comment[nds]=Stellt en eenfach SDL-Programm in C++ op
-Comment[ne]= C++ मा साधारण SDL कार्यक्रम उत्पन्न गर्दछ
-Comment[nl]=Genereert een eenvoudig SDL-programma in C++
-Comment[pl]=Generuje prosty program używający SDL w C++
-Comment[pt]=Gera um programa simples de SDL em C++
-Comment[pt_BR]=Gera um programa simples de SDL em C++
-Comment[ru]=Создание простого приложения SDL на C++
-Comment[sk]=Vygeneruje jednoduchý SDL program v C++
-Comment[sl]=Ustvari preprost program SDL v C++
-Comment[sr]=Прави једноставан SDL програм у C++-у
-Comment[sr@Latn]=Pravi jednostavan SDL program u C++-u
-Comment[sv]=Skapar ett enkelt SDL-program i C++
-Comment[tr]=C++'da basit bir SDL programı yaratır
-Comment[zh_CN]=生成 C++ 的简单 SDL 程序
-Comment[zh_TW]=產生一個簡單的 C++ SDL 程式
+
+Category=C++
+
+Icon=cppsdl.png
FileTemplates=h,CStyle,cpp,CStyle
ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.cpp
Archive=cppsdlhello.tar.gz
@@ -119,32 +63,3 @@ Dest=%{dest}/src/%{APPNAMELC}.cpp
[MSG]
Type=message
Comment=A simple SDL program was created in %{dest}
-Comment[ca]=Un simple programa en SDL ha estat creat en %{dest}
-Comment[da]=Et simpelt SDL-program blev oprettet i %{dest}
-Comment[de]=Ein einfaches SDL-Programm wurde in %{dest} erstellt.
-Comment[el]=Ένα απλό πρόγραμμα SDL δημιουργήθηκε στο %{dest}
-Comment[es]=Un sencillo programa SDL ha sido creado en %{dest}
-Comment[et]=Lihtne SDL programm loodi asukohta %{dest}
-Comment[eu]=SDL programa sinple bat soru da hemen: %{dest}
-Comment[fa]=یک برنامۀ سادۀ SDL در %{dest} ایجاد شد
-Comment[fr]=Un programme SDL simple a été créé dans %{dest}
-Comment[ga]=Cruthaíodh ríomhchlár simplí SDL i %{dest}
-Comment[gl]=Creouse un programa sinxelo SDL en %{dest}
-Comment[hu]=Létrejött egy egyszerű SDL-alkalmazás itt: %{dest}
-Comment[it]=È stato creato un semplice programma SDL in %{dest}
-Comment[ja]=簡単な SDL プログラムを %{dest} に作成しました
-Comment[nds]=In %{dest} wöör en eenfach SDL-Programm opstellt
-Comment[ne]=एउटा साधारण SDL कार्यक्रम %{dest} मा सिर्जना गरियो
-Comment[nl]=Een eenvoudig SDL-programma is aangemaakt in %{dest}
-Comment[pl]=Prosty program używający SDL został utworzony w %{dest}
-Comment[pt]=Foi criada uma aplicação simples em SDL em %{dest}
-Comment[pt_BR]=Foi criada uma aplicação simples em SDL em %{dest}
-Comment[ru]=Простое приложение SDL создано в %{dest}
-Comment[sk]=Jednoduchý SDL program bol vytvorený v %{dest}
-Comment[sl]=Preprost program SDL je bil ustvarjen v %{dest}
-Comment[sr]=Једноставан SDL програм направљен је у %{dest}
-Comment[sr@Latn]=Jednostavan SDL program napravljen je u %{dest}
-Comment[sv]=Ett enkelt SDL-program skapades i %{dest}
-Comment[tr]=Basit bir SDL programı %{dest} içinde yaratılmıştır.
-Comment[zh_CN]=在 %{dest} 中创建了简单的 SDL 程序
-Comment[zh_TW]=一個簡單的 SDL 程式已建立於 %{dest}