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/kofficepart | |
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/kofficepart')
4 files changed, 39 insertions, 120 deletions
diff --git a/languages/cpp/app_templates/kofficepart/CMakeLists.txt b/languages/cpp/app_templates/kofficepart/CMakeLists.txt index 1a4c348c..cdeff114 100644 --- a/languages/cpp/app_templates/kofficepart/CMakeLists.txt +++ b/languages/cpp/app_templates/kofficepart/CMakeLists.txt @@ -9,14 +9,33 @@ # ################################################# -add_custom_target( kopart.tar.gz ALL - COMMAND ${TAR} zcf kopart.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR} +set( _tarball_desktops kopart.desktop x-kopart.desktop ) +set( _tarball_files kopart.kdevelop kopart_aboutdata.h kopart_part.cpp kopart_view.h src-Makefile.am kopart.png kopart_factory.cpp - kopart_part.h subdirs kopart.desktop kopart.rc - kopart_factory.h kopart_view.cpp x-kopart.desktop + kopart_part.h subdirs kopart.rc + kopart_factory.h kopart_view.cpp tde-configure.in.in main.cpp ) +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 kopart.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 - kopart.kdevtemplate - DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates ) +tde_create_translated_desktop( + SOURCE kopart.kdevtemplate + DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates + KEYWORDS Category + PO_DIR tdevelop-desktops +) diff --git a/languages/cpp/app_templates/kofficepart/kopart.desktop b/languages/cpp/app_templates/kofficepart/kopart.desktop index ab4fb51d..47d0a5c6 100644 --- a/languages/cpp/app_templates/kofficepart/kopart.desktop +++ b/languages/cpp/app_templates/kofficepart/kopart.desktop @@ -1,9 +1,10 @@ [Desktop Entry] Name=%{APPNAME} + Exec=%{APPNAMELC} -X-TDE-Library=lib%{APPNAMELC}part MimeType=application/x-%{APPNAMELC}; Type=Application Icon=%{APPNAMELC} +X-TDE-Library=lib%{APPNAMELC}part X-TDE-ServiceTypes=KOfficePart,KParts/ReadOnlyPart,KParts/ReadWritePart X-TDE-NativeMimeType=application/x-%{APPNAMELC} diff --git a/languages/cpp/app_templates/kofficepart/kopart.kdevtemplate b/languages/cpp/app_templates/kofficepart/kopart.kdevtemplate index 429d14c4..a359e87d 100644 --- a/languages/cpp/app_templates/kofficepart/kopart.kdevtemplate +++ b/languages/cpp/app_templates/kofficepart/kopart.kdevtemplate @@ -1,62 +1,12 @@ # TDE Config File [General] Name=KOffice Part -Name[br]=Perzh KOffice -Name[ca]=Part per a KOffice -Name[da]=KOffice part -Name[de]=KOffice-Komponente -Name[el]=Τμήμα KOffice -Name[es]=Part de KOffice -Name[et]=KOffice'i komponent -Name[eu]=KOffice zatia -Name[fa]=جزء KOffice -Name[fr]=Composant KOffice -Name[ga]=Páirt KOffice -Name[gl]='Part' para KOffice -Name[hu]=KOffice-objektum -Name[it]=Part di KOffice -Name[nds]=KOffice-Komponent -Name[ne]=केडीई अफिस भाग -Name[nl]=Koffice-part -Name[pt]=Componente do KOffice -Name[pt_BR]=Componente do KOffice -Name[ru]=Приложение KOffice -Name[sr]=KOffice део -Name[sr@Latn]=KOffice deo -Name[sv]=Koffice-delprogram -Name[tr]=KOffice Bileşeni -Name[zh_CN]=KOffice 部件 -Name[zh_TW]=KOffice 元件 -Icon=kopart.png -Category=C++/TDE + Comment=Generates a framework for a full KOffice Application. -Comment[ca]=Genera una infraestructura per a una completa aplicació de KOffice. -Comment[da]=Genererer et skelet for et fuldstændigt KOffice-program. -Comment[de]=Erstellt ein Grundgerüst für eine vollwertige KOffice-Anwendung -Comment[el]=Δημιουργεί ένα πλαίσιο για μια πλήρης εφαρμογή του KOffice. -Comment[es]=Genera una infraestructura para una aplicación completa de KOffice. -Comment[et]=KOffice'i rakenduse raamistiku loomine. -Comment[eu]=KOffice-en aplikazio batentzat lan-marko oso bat sortzen du. -Comment[fa]=چارچوبی را برای کاربرد کامل KOffice تولید میکند. -Comment[fr]=Génère une infrastructure pour une application KOffice complète. -Comment[gl]=Xera un contorno de traballo para unha aplicación KOffice completa. -Comment[hu]=Létrehoz egy kiindulási keretprogramot teljes KOffice-alkalmazás készítéséhez. -Comment[it]=Genera l'infrastruttura per un'applicazione completa di KOffice. -Comment[nds]=Stellt dat Rahmenwark för en heel KOffice-Programm op. -Comment[ne]=पूर्ण केडीई अफिस अनुप्रयोगका लागि फ्रेमवर्क उत्पन्न गर्दछ -Comment[nl]=Genereert een framework voor een volledige KOffice-toepassing -Comment[pl]=Generuje szablon pełnego programu KOffice. -Comment[pt]=Gera a plataforma para uma aplicação completa do KOffice. -Comment[pt_BR]=Gera a plataforma para uma aplicação completa do KOffice. -Comment[ru]=Создание приложения KOffice. -Comment[sk]=Vygeneruje framework pre kompletnú aplikáciu KOffice. -Comment[sl]=Ustvari ogrodje za poln program KOffice -Comment[sr]=Прави радни оквир за пуни KOffice програм. -Comment[sr@Latn]=Pravi radni okvir za puni KOffice program. -Comment[sv]=Skapar ett ramverk för ett fullständigt Koffice-program. -Comment[tr]=Tam bir KOffice Uygulaması için bir çatı yaratır. -Comment[zh_CN]=生成一个全功能的 KOffice 应用程序框架。 -Comment[zh_TW]=產生一個完整的 KOffice 應用程式的框架 + +Category=C++/TDE + +Icon=kopart.png FileTemplates=h,CStyle,cpp,CStyle ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}_part.cpp Archive=kopart.tar.gz @@ -196,31 +146,3 @@ Dest=%{dest}/src/%{APPNAMELC}.cpp [MSG] Type=message Comment=A KOffice part was created in %{dest} -Comment[ca]=Una part per a KOffice ha estat creada en %{dest} -Comment[da]=En KOffice part blev oprettet i %{dest} -Comment[de]=Eine KOffice-Komponente wurde in %{dest} erstellt. -Comment[el]=Ένα τμήμα του KOffice δημιουργήθηκε στο %{dest} -Comment[es]=Un Part de KOffice ha sido creado en %{dest} -Comment[et]=KOffice'i komponent loodi asukohta %{dest} -Comment[eu]=KOffice zati bat sortu da hemen: %{dest} -Comment[fa]=یک جزء KOffice در %{dest} ایجاد شد -Comment[fr]=Un composant KOffice a été créé dans %{dest} -Comment[ga]=Cruthaíodh páirt TDE i %{dest} -Comment[gl]=Creouse unha 'part' para KOffice en %{dest} -Comment[hu]=Létrejött egy KOffice-objektum itt: %{dest} -Comment[it]=È stata creata una part di KOffice in %{dest} -Comment[ja]=KOffice パートを %{dest} に作成しました -Comment[nds]=In %{dest} wöör en KOffice-Komponent opstellt -Comment[ne]=केडीई अफिस भाग %{dest} मा सिर्जना गरियो -Comment[nl]=Een KOffice-part is aangemaakt in %{dest} -Comment[pl]=KOffice part została utworzona w %{dest} -Comment[pt]=Foi criado um componente do KOffice em %{dest} -Comment[pt_BR]=Foi criado um componente do KOffice em %{dest} -Comment[ru]=Приложение KOffice создано в %{dest} -Comment[sk]=KOffice Part bol vytvorený v %{dest} -Comment[sr]=KOffice део је направљен у %{dest} -Comment[sr@Latn]=KOffice deo je napravljen u %{dest} -Comment[sv]=Ett Koffice-delprogram skapades i %{dest} -Comment[tr]=Bir KOffice bileşeni %{dest} içinde yaratıldı. -Comment[zh_CN]=在 %{dest} 中创建了一个 KOffice 部件 -Comment[zh_TW]=一個 KOffice 元件已建立於 %{dest} diff --git a/languages/cpp/app_templates/kofficepart/x-kopart.desktop b/languages/cpp/app_templates/kofficepart/x-kopart.desktop index 76bb36a6..9c8a73f4 100644 --- a/languages/cpp/app_templates/kofficepart/x-kopart.desktop +++ b/languages/cpp/app_templates/kofficepart/x-kopart.desktop @@ -1,38 +1,12 @@ [Desktop Entry] -MimeType=application/x-%{APPNAMELC} Comment= A really awesome KOffice application -Comment[ca]=Una aplicació de KOffice realment interessant -Comment[da]=Et helt fantastisk KOffice program -Comment[de]=Eine wirklich großartige KOffice-Anwendung -Comment[el]= Μια πραγματικά όμορφη εφαρμογή KOffice -Comment[es]=Una aplicación de KOffice realmente intesesante -Comment[et]=Tõesti imeline KOffice'i rakendus -Comment[eu]=KOffice aplikazio harrigarri bat -Comment[fa]=کاربرد واقعاً بیمناک KOffice -Comment[fr]=Une application pour KOffice vraiment superbe -Comment[ga]= Feidhmchlár sármhaith KOffice -Comment[gl]=Unha aplicación de KOffice realmente impresionante -Comment[hu]=Egy bámulatos KOffice-alkalmazás -Comment[it]=Un'applicazione di KOffice veramente bella -Comment[nds]=En redig deegt KOffice-Programm -Comment[ne]= वास्तवमै प्रभावकारी केडीई अफिस अनुप्रयोग -Comment[nl]=Een fantastische KOffice-toepassing -Comment[pl]=Wspaniały program KOffice -Comment[pt]=Uma aplicação fantástica para o KOffice -Comment[pt_BR]=Um aplicativo realmente do tipo do KOffice -Comment[ru]=Приложение KOffice -Comment[sk]=Naozaj hrozná KOffice aplikácia -Comment[sl]=Sijajen program za KOffice -Comment[sr]=Стварно сјајан KOffice програм -Comment[sr@Latn]=Stvarno sjajan KOffice program -Comment[sv]=Ett riktigt suveränt Koffice-program -Comment[tr]=Gerçekten harika bir KOffice uygulaması -Comment[zh_CN]=一个非常杰出的 KOffice 应用程序 -Comment[zh_TW]=一個十分完美的 KOffice 應用程式 + Type=MimeType +MimeType=application/x-%{APPNAMELC} #You need to change the mime type below to match what your application will handle... Patterns=*.xmpl; X-TDE-AutoEmbed=false + [Property::X-TDE-NativeExtension] Type=TQString #You need to change the mime type below to match what your application will handle... |