diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-07-29 22:43:34 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-07-30 16:00:07 +0200 |
commit | fe44776673b28ca94338f23d8e7ac71593fa88ba (patch) | |
tree | b900146c853acbd44900bfb77a35a1af3c77aa5d /languages/cpp/app_templates/qtopia4app | |
parent | c0b663c4c873df495743600b8f703744420eddfa (diff) | |
download | tdevelop-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/qtopia4app')
3 files changed, 37 insertions, 150 deletions
diff --git a/languages/cpp/app_templates/qtopia4app/CMakeLists.txt b/languages/cpp/app_templates/qtopia4app/CMakeLists.txt index 5a72d0c0..2d708608 100644 --- a/languages/cpp/app_templates/qtopia4app/CMakeLists.txt +++ b/languages/cpp/app_templates/qtopia4app/CMakeLists.txt @@ -9,12 +9,31 @@ # ################################################# -add_custom_target( qtopia4app.tar.gz ALL - COMMAND ${TAR} zcf qtopia4app.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} - Example.png app.kdevelop example.desktop example.html +set( _tarball_desktops example.desktop ) +set( _tarball_files + Example.png app.kdevelop example.html main.cpp Makefile.am app.pro example.cpp example.h examplebase.ui ) +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 qtopia4app.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 - qtopia4app.kdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) +tde_create_translated_desktop( + SOURCE qtopia4app.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates + KEYWORDS Category + PO_DIR tdevelop-desktops +) diff --git a/languages/cpp/app_templates/qtopia4app/example.desktop b/languages/cpp/app_templates/qtopia4app/example.desktop index f6f04194..813ef2ec 100644 --- a/languages/cpp/app_templates/qtopia4app/example.desktop +++ b/languages/cpp/app_templates/qtopia4app/example.desktop @@ -1,37 +1,8 @@ [Desktop Entry] +Name=%{APPNAME} + Comment=An %{APPNAME} Program -Comment[ca]=Un programa per a %{APPNAME} -Comment[da]=Et %{APPNAME} program -Comment[de]=Ein %{APPNAME}-Program -Comment[el]=Ένα πρόγραμμα %{APPNAME} -Comment[es]=Un programa %{APPNAME} -Comment[et]=%{APPNAME} programm -Comment[eu]=%{APPNAME} programa bat -Comment[fa]=برنامۀ %{APPNAME} -Comment[fr]=Un programme %{APPNAME} -Comment[ga]=Clár %{APPNAME} -Comment[gl]=Un programa %{APPNAME} -Comment[hu]=%{APPNAME} program -Comment[it]=Un programma per %{APPNAME} -Comment[ja]=%{APPNAME} プログラム -Comment[nds]=En %{APPNAME}-Programm -Comment[ne]= %{APPNAME} कार्यक्रम -Comment[nl]=Een %{APPNAME} programma -Comment[pl]=Program %{APPNAME} -Comment[pt]=Um Programa %{APPNAME} -Comment[pt_BR]=Um Programa %{APPNAME} -Comment[ru]=Программа %{APPNAME} -Comment[sk]=%{APPNAME} program -Comment[sl]=Program %{APPNAME} -Comment[sr]=%{APPNAME} програм -Comment[sr@Latn]=%{APPNAME} program -Comment[sv]=Ett %{APPNAME}-program -Comment[ta]=ஒரு %{APPNAME} நிரல் -Comment[tg]=Барномаи %{APPNAME} -Comment[tr]=Bir %{APPNAME} Programı -Comment[zh_CN]=一个 %{APPNAME} 程序 -Comment[zh_TW]=一個 %{APPNAME} 程式 + Exec=%{APPNAMELC} Icon=%{APPNAME} Type=Application -Name=%{APPNAME} diff --git a/languages/cpp/app_templates/qtopia4app/qtopia4app.kdevtemplate b/languages/cpp/app_templates/qtopia4app/qtopia4app.kdevtemplate index 72a961c0..6f4fbf08 100644 --- a/languages/cpp/app_templates/qtopia4app/qtopia4app.kdevtemplate +++ b/languages/cpp/app_templates/qtopia4app/qtopia4app.kdevtemplate @@ -1,47 +1,12 @@ # TDE Config File [General] Name=Qtopia 4 Application -Name[ca]=Aplicació per a Qtopia 4 -Name[da]=Qtopia4-program -Name[de]=Qtopia 4-Anwendung -Name[el]=Εφαρμογή Qtopia 4 -Name[es]=Aplicación para Qtopia 4 -Name[et]=Qtopia 4 rakendus -Name[hu]=Qtopia 4-alapú alkalmazás -Name[it]=Applicazione Qtopia 4 -Name[nds]=Qtopia 4-Programm -Name[nl]=Qtopia4-programma -Name[pl]=Program wykorzystujący Qtopię 4 -Name[pt]=Aplicação do Qtopia 4 -Name[pt_BR]=Aplicação do Qtopia 4 -Name[ru]=Приложение Qtopia 4 -Name[sk]=Qtopia 4 aplikácia -Name[sr]=Qtopia 4 програм -Name[sr@Latn]=Qtopia 4 program -Name[sv]=Qtopia 4-program -Name[zh_TW]=Qtopia 4 應用程式 -Icon=qmakeapp4.png -Category=C++/Embedded + Comment=Generate a Qmake/Qt based application for Qtopia 4.x -Comment[ca]=Genera una aplicació basada en Qmake/Qt per a Qtopia 4.x -Comment[da]=Genererer et QMake-/Qt-baseret program til Qtopia 4.x -Comment[de]=Erstellt eine auf QMake/Qt basierende Anwendung für Qtopia 4.x -Comment[el]=Δημιουργία μιας εφαρμογής βασισμένης στο Qmake/Qt για το Qtopia 4.x -Comment[es]=Genera una aplicación basada en Qmake/Qt para Qtopia 4.x -Comment[et]=Qtopia 4.x rakenduse loomine QMake'i/Qt põhjal -Comment[hu]=Létrehoz egy QMake/Qt-alapú alkalmazást a Qtopia 4.x rendszerhez -Comment[it]=Genera un'applicazione basata su QMake/Qt per Qtopia 4.x -Comment[nds]=Stellt en op QMake/Qt opbuut Programm för Qtopia 4.x op -Comment[nl]=Genereer een Qmake/Qt-gebaseerd programma voor Qtopia 4.x -Comment[pl]=Generuje program wykorzystujący QMake/Qt dla Qtopii 4.x -Comment[pt]=Gera uma aplicação, baseada no QMake/Qt, para o Qtopia 4.x -Comment[pt_BR]=Gera uma aplicação, baseada no QMake/Qt, para o Qtopia 4.x -Comment[ru]=Создание приложения Qt, использующего QMake, для Qtopia 4.x -Comment[sk]=Vygeneruje aplikáciu založenú na QMake/Qt pre Qtopia 4.x -Comment[sr]=Прави програм за Qtopia-у 4.x на основу QMake-а/Qt-а -Comment[sr@Latn]=Pravi program za Qtopia-u 4.x na osnovu QMake-a/Qt-a -Comment[sv]=Skapa ett Qmake/Qt-baserat program för Qtopia 4.x -Comment[zh_TW]=產生一個以 Qmake/Qt 為基礎的 Qtopia 4.x 應用程式 + +Category=C++/Embedded + +Icon=qmakeapp4.png FileTemplates=h,CStyle,cpp,CStyle ShowFilesAfterGeneration=%{dest}/%{APPNAMELC}.cpp Archive=qtopia4app.tar.gz @@ -106,88 +71,17 @@ Dest=%{dest}/main.cpp [MSG] Type=message Comment=A Qtopia application was created in %{dest} -Comment[ca]=Una aplicació basada en Qtopia ha estat creada en %{dest} -Comment[da]=Et Qtopia program blev oprettet i %{dest} -Comment[de]=Eine Qtopia-Anwendung wurde in %{dest} erstellt. -Comment[el]=Μια εφαρμογή Qtopia δημιουργήθηκε στο %{dest} -Comment[es]=Una aplicación para Qtopia ha sido creada en %{dest} -Comment[et]=Qtopia rakendus loodi asukohta %{dest} -Comment[eu]=Qtopia aplikazio bat sortu da hemen: %{dest} -Comment[fa]=یک کاربرد Qtopia در %{dest} ایجاد شد -Comment[fr]=Une application Qtopia a été créée dans %{dest} -Comment[ga]=Cruthaíodh feidhmchlár Qtopia i %{dest} -Comment[gl]=Creouse unha aplicación Qtopia en %{dest} -Comment[hu]=Létrejött egy Qtopia-alkalmazás itt: %{dest} -Comment[it]=È stata creata un'applicazione Qtopia in %{dest} -Comment[ja]=Qtopia アプリケーションを %{dest} に作成しました -Comment[nds]=In %{dest} wöör en Qtopia-Programm opstellt -Comment[ne]=Qtopia अनुप्रयोग %{dest} मा सिर्जना गरियो -Comment[nl]=Een Qtopia-toepassing is aangemaakt in %{dest} -Comment[pl]=Program wykorzystujący Qtopię został utworzony w %{dest} -Comment[pt]=Foi criada uma aplicação do Qtopia em %{dest} -Comment[pt_BR]=Foi criada uma aplicação do Qtopia em %{dest} -Comment[ru]=Приложение Qtopia создано в %{dest} -Comment[sk]=Qtopia aplikácia bola vytvorená v %{dest} -Comment[sr]=Qtopia програм је направљен у %{dest} -Comment[sr@Latn]=Qtopia program je napravljen u %{dest} -Comment[sv]=Ett Qtopia-program skapades i %{dest} -Comment[tr]=Bir Qtopia uygulaması %{dest} içinde yaratıldı. -Comment[zh_CN]=在 %{dest} 创建了 Qtopia 应用程序 -Comment[zh_TW]=一個 Qtopia 應用程式已建立於 %{dest} [QMAKE] Type=value ValueType=QString Value=QMAKE Comment=Absolute Path for QMake (Qt4). -Comment[ca]=Ruta absoluta per a QMake (Qt4). -Comment[da]=Absolut søgesti til QMake (Qt4). -Comment[de]=Absoluter Pfad für QMake (Qt4). -Comment[el]=Απόλυτη διαδρομή για το QMake (Qt4). -Comment[es]=Ruta completa para QMake (Qt4). -Comment[et]=QMake (Qt4) absoluutne asukoht. -Comment[fr]=Chemin absolu pour QMake (Qt4). -Comment[hu]=A QMake (Qt4) teljes elérési útja. -Comment[it]=Percorso assoluto per QMake (Qt4). -Comment[ja]=QMake (Qt4) の絶対パス -Comment[nds]=Afsluut Padd för QMake (Qt4) -Comment[nl]=Absoluut pad naar QMake (Qt4). -Comment[pl]=Ścieżka bezwzględna do QMake (Qt4). -Comment[pt]=Localização Absoluta do QMake (Qt4). -Comment[pt_BR]=Localização Absoluta do QMake (Qt4). -Comment[ru]=Полный путь к QMake (Qt 4). -Comment[sk]=Absolútna cesta ku QMake (Qt4). -Comment[sr]=Апсолутна путања до QMake-а (Qt4). -Comment[sr@Latn]=Apsolutna putanja do QMake-a (Qt4). -Comment[sv]=Absolut sökväg till QMake (Qt4). -Comment[zh_TW]=QMake(Qt4)的絕對路徑 Default=/opt/Qtopia/SDK/4.2.4/x86/bin/qtopiamake + [DESIGNER] Type=value ValueType=QString Value=DESIGNER Comment=Absolute Path for Designer (Qt4). -Comment[ca]=Ruta absoluta per a Designer (Qt4). -Comment[da]=Absolut søgesti til Designer (Qt4). -Comment[de]=Absoluter Pfad für Designer (Qt4). -Comment[el]=Απόλυτη διαδρομή για τον Σχεδιαστή (Qt4). -Comment[es]=Ruta completa para Designer (Qt4). -Comment[et]=Disaineri (Qt4) absoluutne asukoht. -Comment[fr]=Chemin absolu pour Designer (Qt4). -Comment[hu]=A Designer (Qt4) teljes elérési útja -Comment[it]=Percorso assoluto del Designer (Qt4). -Comment[ja]=Designer (Qt4) の絶対パス -Comment[nds]=Afsluut Padd för Designer (Qt4) -Comment[nl]=Absoluut pad naar Designer (Qt4). -Comment[pl]=Ścieżka bezwzględna do Designera (Qt4). -Comment[pt]=Localização Absoluta do Designer (Qt4). -Comment[pt_BR]=Localização Absoluta do Designer (Qt4). -Comment[ru]=Полный путь к Designer (Qt 4). -Comment[sk]=Absolútna cesta ku Designer (Qt4). -Comment[sr]=Апсолутна путања до Designer-а (Qt4). -Comment[sr@Latn]=Apsolutna putanja do Designer-a (Qt4). -Comment[sv]=Absolut sökväg till Designer (Qt4). -Comment[zh_TW]=設計家(Qt4)的絕對路徑 Default=/opt/Qtopia/SDK/4.2.4/x86/bin/designer - - |