summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kde4app
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/kde4app')
-rw-r--r--languages/cpp/app_templates/kde4app/CMakeLists.txt34
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4.desktop28
-rw-r--r--languages/cpp/app_templates/kde4app/kde4app.kdevtemplate72
3 files changed, 38 insertions, 96 deletions
diff --git a/languages/cpp/app_templates/kde4app/CMakeLists.txt b/languages/cpp/app_templates/kde4app/CMakeLists.txt
index 06b7c427..215f653d 100644
--- a/languages/cpp/app_templates/kde4app/CMakeLists.txt
+++ b/languages/cpp/app_templates/kde4app/CMakeLists.txt
@@ -9,14 +9,33 @@
#
#################################################
-add_custom_target( kde4app.tar.gz ALL
- COMMAND ${TAR} zcf kde4app.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+set( _tarball_desktops kapp4.desktop )
+set( _tarball_files
kapp4.cpp kapp4.h prefs_base.ui kapp4view.cpp
kapp4view.h kapp4view_base.ui main.cpp kde4appui.rc
- kde4app-CMakeLists.txt kapp4.desktop kapp4.kcfg
+ kde4app-CMakeLists.txt kapp4.kcfg
settings.kcfgc kde4app.png README kde4app.kdevelop
kde4app.kdevelop.filelist
)
+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 kde4app.tar.gz
+ SOURCEDIR ${CMAKE_CURRENT_BINARY_DIR}
+ FILES ${_tarball_content}
+)
install( FILES
@@ -24,6 +43,9 @@ install( FILES
DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
-install( FILES
- kde4app.kdevtemplate
- DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
+tde_create_translated_desktop(
+ SOURCE kde4app.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates
+ KEYWORDS Category
+ PO_DIR tdevelop-desktops
+)
diff --git a/languages/cpp/app_templates/kde4app/kapp4.desktop b/languages/cpp/app_templates/kde4app/kapp4.desktop
index 008fad44..37d66d29 100644
--- a/languages/cpp/app_templates/kde4app/kapp4.desktop
+++ b/languages/cpp/app_templates/kde4app/kapp4.desktop
@@ -1,30 +1,10 @@
[Desktop Entry]
Name=KApp4
-Name[nds]=KProg4
-Name[sv]=KDE 4-program
-Name[zh_TW]=KApp4 程式
+
+GenericName=A KDE4 Application
+
Exec=kapp4 %i -caption "%c"
Icon=kapp4
Type=Application
-X-DocPath=kapp4/kapp4.html
-GenericName=A KDE4 Application
-GenericName[ca]=Una aplicació del KDE4
-GenericName[da]=Et KDE4-program
-GenericName[de]=Eine KDE 4-Anwendung
-GenericName[el]=Μία εφαρμογή του KDE4
-GenericName[es]=Una aplicación para KDE4
-GenericName[et]=KDE4 rakendus
-GenericName[hu]=KDE4-alapú alkalmazás
-GenericName[it]=Applicazione KDE4
-GenericName[nds]=En KDE4-Programm
-GenericName[nl]=Een KDE4-programma
-GenericName[pl]=Program dla KDE4
-GenericName[pt]=Uma Aplicação do KDE4
-GenericName[pt_BR]=Uma Aplicação do KDE4
-GenericName[ru]=Приложение KDE 4
-GenericName[sk]=KDE4 aplikácia
-GenericName[sr]=KDE4 програм
-GenericName[sr@Latn]=KDE4 program
-GenericName[sv]=Ett KDE 4-program
-GenericName[zh_TW]=KDE4 應用程式
Terminal=false
+X-DocPath=kapp4/kapp4.html
diff --git a/languages/cpp/app_templates/kde4app/kde4app.kdevtemplate b/languages/cpp/app_templates/kde4app/kde4app.kdevtemplate
index 2a7269fd..e61148ed 100644
--- a/languages/cpp/app_templates/kde4app/kde4app.kdevtemplate
+++ b/languages/cpp/app_templates/kde4app/kde4app.kdevtemplate
@@ -1,47 +1,12 @@
-# KDE Config File
+# TDE Config File
[General]
Name=KDE4 Application framework
-Name[ca]=Entorn de treball d'aplicacions pel KDE4
-Name[da]=KDE4 program-framework
-Name[de]=KDE 4-Anwendungsgrundgerüst
-Name[el]=Πλαίσιο εφαρμογής του KDE4
-Name[es]=Infraestructura de aplicación para KDE4
-Name[et]=KDE4 rakenduse raamistik
-Name[hu]=Keretrendszer KDE4-alapú alkalmazáshoz
-Name[it]=Infrastruttura per applicazioni KDE4
-Name[nds]=KDE4-Programmrahmenwark
-Name[nl]=KDE4-programmaframewerk
-Name[pl]=Szablon programu dla KDE4
-Name[pt]=Plataforma de aplicações do KDE4
-Name[pt_BR]=Plataforma de aplicações do KDE4
-Name[ru]=Инструментарий для создания приложений KDE 4
-Name[sk]=KDE4 aplikačný framework
-Name[sr]=Радни оквир KDE4 програма
-Name[sr@Latn]=Radni okvir KDE4 programa
-Name[sv]=KDE 4-programramverk
-Name[zh_TW]=KDE4 應用程式框架
-Icon=kde4app.png
-Category=C++/KDE4
+
Comment=Generates a simple KDE4 application with one toplevel window, menus and toolbars.
-Comment[ca]=Genera una aplicació senzilla per al KDE4 amb una finestra principal, menús i barres d'eines.
-Comment[da]=Genererer et simpelt KDE4-program med et vindue på topniveau, menuer og værktøjslinjer.
-Comment[de]=Erstellt eine einfache KDE 4-Anwendung mit einem Toplevel-Fenster, Menüs und Werkzeugleisten.
-Comment[el]=Δημιουργεί μια απλή εφαρμογή του KDE4 με ένα ανώτερο παράθυρο, μενού, και γραμμές εργαλείων.
-Comment[es]=Genera una sencilla aplicación para KDE4 con una ventana principal, menús y barras de herramientas.
-Comment[et]=Lihtsa KDE4 rakenduse loomine ühe tipptaseme akna, menüüde ja tööriistaribadega.
-Comment[hu]=Létrehoz egy egyszerű KDE4-alkalmazást egy főablakkal, menükkel és eszköztárakkal.
-Comment[it]=Genera una semplice applicazione KDE4 con una finestra toplevel, menu e barre degli strumenti.
-Comment[nds]=Stellt en eenfach KDE4-Programm mit een böverst Finster, Menüs un Warktüüchbalkens op.
-Comment[nl]=Genereert een eenvoudig KDE4-programma met een topniveauvenster, menu's en werkbalken.
-Comment[pl]=Generuje prosty program dla KDE4 posiadający okno, menu i paski narzędzi.
-Comment[pt]=Gera uma aplicação para KDE4 simples, com uma janela de topo, menus e barras de ferramentas.
-Comment[pt_BR]=Gera uma aplicação para KDE4 simples, com uma janela de topo, menus e barras de ferramentas.
-Comment[ru]=Создание простого приложения KDE 4 с одним окном верхнего уровня, меню и панелями инструментов.
-Comment[sk]=Vygeneruje jednoduchú KDE4 aplikáciu s jedným oknom, menu a panelom nástrojov.
-Comment[sr]=Прави једноставан KDE4 програм са једним прозором највишег нивоа, менијима и тракама са алатом.
-Comment[sr@Latn]=Pravi jednostavan KDE4 program sa jednim prozorom najvišeg nivoa, menijima i trakama sa alatom.
-Comment[sv]=Skapar ett enkelt KDE 4-program med ett toppnivåfönster, menyer och verktygsrader.
-Comment[zh_TW]=產生一個簡單的 KDE4 應用程式,內含頂層視窗、選單與工具列。
+
+Category=C++/KDE4
+
+Icon=kde4app.png
FileTemplates=h,CStyle,cpp,CStyle
ShowFilesAfterGeneration=%{dest}/README
Archive=kde4app.tar.gz
@@ -71,25 +36,21 @@ Type=install
Source=%{src}/kapp4view.cpp
Dest=%{dest}/%{APPNAMELC}view.cpp
-
[FILE6]
Type=install
Source=%{src}/kapp4view.h
Dest=%{dest}/%{APPNAMELC}view.h
-
[FILE7]
Type=install
Source=%{src}/kde4appui.rc
Dest=%{dest}/%{APPNAMELC}ui.rc
-
[FILE8]
Type=install
Source=%{src}/kapp4view_base.ui
Dest=%{dest}/%{APPNAMELC}view_base.ui
-
[FILE9]
Type=install
Source=%{src}/kapp4.desktop
@@ -100,13 +61,11 @@ Type=install
Source=%{src}/kapp4.kcfg
Dest=%{dest}/%{APPNAMELC}.kcfg
-
[FILE11]
Type=install
Source=%{src}/prefs_base.ui
Dest=%{dest}/prefs_base.ui
-
[FILE12]
Type=install
Source=%{src}/settings.kcfgc
@@ -134,22 +93,3 @@ Dir=%{dest}/build
[MSG]
Type=message
Comment=A KDE4 Application was created at %{dest}
-Comment[ca]=S'ha creat una aplicació per al KDE4 a %{dest}
-Comment[da]=Et KDE4-program blev oprettet i %{dest}
-Comment[de]=Eine KDE 4-Anwendung wurde in %{dest} erstellt.
-Comment[el]=Μια εφαρμογή KDE4 δημιουργήθηκε στο %{dest}
-Comment[es]=Una aplicación para KDE4 ha sido creada en %{dest}
-Comment[et]=KDE4 rakendus loodi asukohta %{dest}
-Comment[hu]=Létrejött egy KDE4-alapú alkalmazás itt: %{dest}
-Comment[it]=È stata creata un'applicazione KDE4 in %{dest}
-Comment[nds]=In %{dest} wöör en KDE4-Programm opstellt
-Comment[nl]=Een KDE4-toepassing is aangemaakt in %{dest}
-Comment[pl]=Program dla KDE4 został utworzony w %{dest}
-Comment[pt]=Foi criada uma aplicação do KDE4 em %{dest}
-Comment[pt_BR]=Foi criada uma aplicação do KDE4 em %{dest}
-Comment[ru]=Приложение KDE 4 создано в %{dest}
-Comment[sk]=KDE4 aplikácia bola vytvorená v %{dest}
-Comment[sr]=KDE4 програм је направљен у %{dest}
-Comment[sr@Latn]=KDE4 program je napravljen u %{dest}
-Comment[sv]=Ett KDE 4-program skapades i %{dest}
-Comment[zh_TW]=一個 KDE4 應用程式已建立於 %{dest}