From 7c7c238be19c9d17b1182d0b0fad31479aa7f59a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 11 Jun 2020 14:54:26 +0200 Subject: Desktop file translations: + Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- twin-styles/CMakeL10n.txt | 6 +++ twin-styles/cde/CMakeLists.txt | 7 +++- twin-styles/cde/cde.desktop | 3 -- twin-styles/glow/CMakeLists.txt | 7 +++- twin-styles/glow/glow.desktop | 46 ---------------------- twin-styles/icewm/CMakeLists.txt | 7 +++- twin-styles/icewm/icewm.desktop | 8 ---- twin-styles/kde1/CMakeLists.txt | 7 +++- twin-styles/kde1/kde1.desktop | 4 -- twin-styles/kstep/CMakeLists.txt | 7 +++- twin-styles/kstep/kstep.desktop | 9 ----- twin-styles/openlook/CMakeLists.txt | 7 +++- twin-styles/openlook/openlook.desktop | 11 ------ twin-styles/riscos/CMakeLists.txt | 7 +++- twin-styles/riscos/riscos.desktop | 8 ---- twin-styles/smooth-blend/client/CMakeLists.txt | 7 +++- .../smooth-blend/client/smoothblend.desktop | 36 ----------------- twin-styles/system/CMakeLists.txt | 7 +++- twin-styles/system/system.desktop | 24 ----------- 19 files changed, 60 insertions(+), 158 deletions(-) (limited to 'twin-styles') diff --git a/twin-styles/CMakeL10n.txt b/twin-styles/CMakeL10n.txt index a2340e21..17cbbc16 100644 --- a/twin-styles/CMakeL10n.txt +++ b/twin-styles/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_create_template( "twin_art_clients" ) + +tde_l10n_create_template( + CATALOG "desktop_files/twin-styles-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/twin-styles/cde/CMakeLists.txt b/twin-styles/cde/CMakeLists.txt index 790ff84c..b03936c6 100644 --- a/twin-styles/cde/CMakeLists.txt +++ b/twin-styles/cde/CMakeLists.txt @@ -23,7 +23,12 @@ link_directories( ##### other data ################################ -install( FILES cde.desktop DESTINATION ${DATA_INSTALL_DIR}/twin ) +tde_create_translated_desktop( + SOURCE cde.desktop + DESTINATION ${DATA_INSTALL_DIR}/twin + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops +) + ##### twin3_cde ################################## diff --git a/twin-styles/cde/cde.desktop b/twin-styles/cde/cde.desktop index b9dd1bae..955f51ea 100644 --- a/twin-styles/cde/cde.desktop +++ b/twin-styles/cde/cde.desktop @@ -1,6 +1,3 @@ [Desktop Entry] Name=CDE -Name[af]=Cde -Name[hi]=सीडीई -Name[ne]=सीडीई X-TDE-Library=twin3_cde diff --git a/twin-styles/glow/CMakeLists.txt b/twin-styles/glow/CMakeLists.txt index 76d0a23e..b924f8fb 100644 --- a/twin-styles/glow/CMakeLists.txt +++ b/twin-styles/glow/CMakeLists.txt @@ -24,7 +24,12 @@ link_directories( ##### other data ################################ -install( FILES glow.desktop DESTINATION ${DATA_INSTALL_DIR}/twin ) +tde_create_translated_desktop( + SOURCE glow.desktop + DESTINATION ${DATA_INSTALL_DIR}/twin + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops +) + ##### twin3_glow ################################ diff --git a/twin-styles/glow/glow.desktop b/twin-styles/glow/glow.desktop index 701b103b..88895ca3 100644 --- a/twin-styles/glow/glow.desktop +++ b/twin-styles/glow/glow.desktop @@ -1,49 +1,3 @@ [Desktop Entry] Name=Glow -Name[af]=Gloei -Name[br]=Lufrus -Name[ca]=Lluïssor -Name[cs]=Záře -Name[cy]=Gwrid -Name[da]=Glød -Name[el]=Λάμψη -Name[es]=Brillo -Name[et]=Helendus -Name[eu]=Dirdira -Name[fa]=درخشندگی -Name[fi]=Hehku -Name[fr]=Lueur -Name[fy]=Gloede -Name[hi]=ग्लो -Name[is]=Glóð -Name[it]=Bagliore -Name[ja]=輝き -Name[ka]=გავარვარება -Name[lt]=Švytėjimas -Name[lv]=Kvēlot -Name[mk]=Отсјај -Name[ms]=Kilau -Name[mt]=Dija -Name[nb]=Glød -Name[ne]=चमक -Name[nl]=Gloed -Name[nn]=Glød -Name[pl]=Blask -Name[ro]=Licărire -Name[ru]=Зарево -Name[sk]=Plameň -Name[sl]=Lesk -Name[sr]=Сијање -Name[sr@Latn]=Sijanje -Name[sv]=Glöd -Name[ta]=ஒளிப்பெற்று -Name[tg]=Шафақ -Name[th]=เรืองแสง -Name[tr]=Parlama -Name[uk]=Заграва -Name[ven]=Tshedza -Name[vi]=Hào quang -Name[xh]=Qukuqela -Name[zh_CN]=光芒 -Name[zu]=Khanya X-TDE-Library=twin3_glow diff --git a/twin-styles/icewm/CMakeLists.txt b/twin-styles/icewm/CMakeLists.txt index d59f42c9..b8b061f2 100644 --- a/twin-styles/icewm/CMakeLists.txt +++ b/twin-styles/icewm/CMakeLists.txt @@ -24,7 +24,12 @@ link_directories( ##### other data ################################ -install( FILES icewm.desktop DESTINATION ${DATA_INSTALL_DIR}/twin ) +tde_create_translated_desktop( + SOURCE icewm.desktop + DESTINATION ${DATA_INSTALL_DIR}/twin + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops +) + ##### twin3_icewm ############################### diff --git a/twin-styles/icewm/icewm.desktop b/twin-styles/icewm/icewm.desktop index 6f7a162c..5cfbe97d 100644 --- a/twin-styles/icewm/icewm.desktop +++ b/twin-styles/icewm/icewm.desktop @@ -1,11 +1,3 @@ [Desktop Entry] Name=IceWM -Name[cy]=RhewWM -Name[hi]=आइस-डबल्यूएम -Name[sv]=Ice-fönsterhanterare -Name[ta]=பனிக்கட்டிWM -Name[th]=ตัวจัดการหน้าต่าง IceWM -Name[vi]=Nước đá WM -Name[xh]=UmkhenkceWM -Name[zu]=Iqhwa leWM X-TDE-Library=twin3_icewm diff --git a/twin-styles/kde1/CMakeLists.txt b/twin-styles/kde1/CMakeLists.txt index 2cbae1eb..55611f10 100644 --- a/twin-styles/kde1/CMakeLists.txt +++ b/twin-styles/kde1/CMakeLists.txt @@ -21,7 +21,12 @@ link_directories( ##### other data ################################ -install( FILES kde1.desktop DESTINATION ${DATA_INSTALL_DIR}/twin ) +tde_create_translated_desktop( + SOURCE kde1.desktop + DESTINATION ${DATA_INSTALL_DIR}/twin + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops +) + ##### twin3_cde ################################## diff --git a/twin-styles/kde1/kde1.desktop b/twin-styles/kde1/kde1.desktop index 4433a696..422ae1be 100644 --- a/twin-styles/kde1/kde1.desktop +++ b/twin-styles/kde1/kde1.desktop @@ -1,7 +1,3 @@ [Desktop Entry] Name=TDE 1 -Name[fa]=TDE ۱ -Name[hi]=केडीई 1 -Name[ne]=केडीई १ -Name[th]=โปรแกรมจัดการหน้าต่าง TDE 1 X-TDE-Library=twin3_kde1 diff --git a/twin-styles/kstep/CMakeLists.txt b/twin-styles/kstep/CMakeLists.txt index 4d55aa77..1bb68bd5 100644 --- a/twin-styles/kstep/CMakeLists.txt +++ b/twin-styles/kstep/CMakeLists.txt @@ -21,7 +21,12 @@ link_directories( ##### other data ################################ -install( FILES kstep.desktop DESTINATION ${DATA_INSTALL_DIR}/twin ) +tde_create_translated_desktop( + SOURCE kstep.desktop + DESTINATION ${DATA_INSTALL_DIR}/twin + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops +) + ##### twin3_kstep ############################### diff --git a/twin-styles/kstep/kstep.desktop b/twin-styles/kstep/kstep.desktop index c19760d1..cc7a8639 100644 --- a/twin-styles/kstep/kstep.desktop +++ b/twin-styles/kstep/kstep.desktop @@ -1,12 +1,3 @@ [Desktop Entry] Name=KStep -Name[cy]=KCam -Name[hi]=के-स्टेप -Name[ne]=केडीई चरण -Name[sv]=Kstep -Name[ta]=Kஅடி -Name[th]=ตัวจัดการหน้าต่างสเต็ป - K -Name[ven]=Tshitepe tsha K -Name[xh]=Inqwanqwa le K -Name[zu]=Izinga le K X-TDE-Library=twin3_kstep diff --git a/twin-styles/openlook/CMakeLists.txt b/twin-styles/openlook/CMakeLists.txt index 061dd697..0fb71b13 100644 --- a/twin-styles/openlook/CMakeLists.txt +++ b/twin-styles/openlook/CMakeLists.txt @@ -22,7 +22,12 @@ link_directories( ##### other data ################################ -install( FILES openlook.desktop DESTINATION ${DATA_INSTALL_DIR}/twin ) +tde_create_translated_desktop( + SOURCE openlook.desktop + DESTINATION ${DATA_INSTALL_DIR}/twin + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops +) + ##### twin3_openlook ############################ diff --git a/twin-styles/openlook/openlook.desktop b/twin-styles/openlook/openlook.desktop index 58411a30..13c2a91f 100644 --- a/twin-styles/openlook/openlook.desktop +++ b/twin-styles/openlook/openlook.desktop @@ -1,14 +1,3 @@ [Desktop Entry] Name=OpenLook -Name[af]=Openlook -Name[cy]=GolwgAgored -Name[fa]=نگاه‌باز -Name[hi]=ओपन-लुक -Name[lt]=Open išvaizda -Name[lv]=AtvērtsSkats -Name[ne]=ओपन लूक -Name[ta]=திறந்தபார்வை -Name[ven]=Vula wo sedza -Name[vi]=Hình thức mở -Name[zu]=Vula Ubone X-TDE-Library=twin3_openlook diff --git a/twin-styles/riscos/CMakeLists.txt b/twin-styles/riscos/CMakeLists.txt index 5b0e6d54..7dc19584 100644 --- a/twin-styles/riscos/CMakeLists.txt +++ b/twin-styles/riscos/CMakeLists.txt @@ -26,7 +26,12 @@ link_directories( ##### other data ################################ -install( FILES riscos.desktop DESTINATION ${DATA_INSTALL_DIR}/twin ) +tde_create_translated_desktop( + SOURCE riscos.desktop + DESTINATION ${DATA_INSTALL_DIR}/twin + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops +) + ##### twin3_riscos ############################### diff --git a/twin-styles/riscos/riscos.desktop b/twin-styles/riscos/riscos.desktop index 21c2f3d8..9e37b38f 100644 --- a/twin-styles/riscos/riscos.desktop +++ b/twin-styles/riscos/riscos.desktop @@ -1,11 +1,3 @@ [Desktop Entry] Name=RISC OS -Name[cs]=Risc OS -Name[cy]= RISC OS -Name[hi]=रिस्क ओएस -Name[ta]=RISC இ.த -Name[th]=ระบบปฏิบัติการบนชิพ RISC -Name[uk]=RISC ОС -Name[xh]=i RISC OS -Name[zu]=IRISC OS X-TDE-Library=twin3_riscos diff --git a/twin-styles/smooth-blend/client/CMakeLists.txt b/twin-styles/smooth-blend/client/CMakeLists.txt index d59126f9..e6d7e049 100644 --- a/twin-styles/smooth-blend/client/CMakeLists.txt +++ b/twin-styles/smooth-blend/client/CMakeLists.txt @@ -27,7 +27,12 @@ link_directories( ##### other data ################################ -install( FILES smoothblend.desktop DESTINATION ${DATA_INSTALL_DIR}/twin ) +tde_create_translated_desktop( + SOURCE smoothblend.desktop + DESTINATION ${DATA_INSTALL_DIR}/twin + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops +) + ##### twin3_smoothblend ########################## diff --git a/twin-styles/smooth-blend/client/smoothblend.desktop b/twin-styles/smooth-blend/client/smoothblend.desktop index 9f580885..97500996 100644 --- a/twin-styles/smooth-blend/client/smoothblend.desktop +++ b/twin-styles/smooth-blend/client/smoothblend.desktop @@ -1,39 +1,3 @@ [Desktop Entry] Name=Smooth Blend -Name[ca]=Barreja suau -Name[cs]=Jemný přechod -Name[cy]=Cymysgedd Llyfn -Name[da]=Glat blanding -Name[el]=Ομαλή μείξη -Name[eo]=Glata Miksaĵo -Name[es]=Mezcla suave -Name[et]=Mahe ühtesulamine -Name[fa]=ترکیب یکدست -Name[fi]=Pehmeä sekoitus -Name[fr]=Fusion douce -Name[fy]=Sêfte ferminging -Name[gl]=Mistura Suave -Name[hu]=Sima színátmenet -Name[is]=Mjúk blöndun -Name[it]=Mistura scorrevole -Name[ja]=綺麗なブレンド -Name[ka]=გლუვი და რბილი -Name[mk]=Рамномерно мешање -Name[nb]=Jevn overgang -Name[nds]=Week Mischen -Name[ne]=महिन मिश्रण -Name[nl]=Zachte vermenging -Name[nn]=Jamn overgang -Name[pl]=Gładkie łączenie kolorów -Name[pt]=Mistura Suave -Name[pt_BR]=Mistura Suave -Name[ru]=Полутона -Name[sl]=Enakomeren preliv -Name[sr]=Глатко претапање -Name[sr@Latn]=Glatko pretapanje -Name[sv]=Jämn blandning -Name[tr]=Düz Karışım -Name[uk]=Гладке змішання -Name[vi]=Trộn màu Mượt mà -Name[zh_TW]=平順混合 X-TDE-Library=twin3_smoothblend diff --git a/twin-styles/system/CMakeLists.txt b/twin-styles/system/CMakeLists.txt index 09a3a966..82dc23cb 100644 --- a/twin-styles/system/CMakeLists.txt +++ b/twin-styles/system/CMakeLists.txt @@ -21,7 +21,12 @@ link_directories( ##### other data ################################ -install( FILES system.desktop DESTINATION ${DATA_INSTALL_DIR}/twin ) +tde_create_translated_desktop( + SOURCE system.desktop + DESTINATION ${DATA_INSTALL_DIR}/twin + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops +) + ##### twin3_system ############################### diff --git a/twin-styles/system/system.desktop b/twin-styles/system/system.desktop index 608e602f..c5136bba 100644 --- a/twin-styles/system/system.desktop +++ b/twin-styles/system/system.desktop @@ -1,27 +1,3 @@ [Desktop Entry] Name=System++ -Name[br]=Reizhiad++ -Name[cs]=Systém++ -Name[cy]=Cysawd++ -Name[eo]=Sistem++ -Name[fa]=سیستم++ -Name[fi]=Järjestelmä++ -Name[fr]=Système++ -Name[fy]=Systeem++ -Name[hi]=सिस्टम++ -Name[it]=Sistem++ -Name[ja]=システム++ -Name[lt]=Sistema++ -Name[lv]=Sistēma++ -Name[nds]=Systeem++ -Name[nl]=Systeem++ -Name[pa]=ਸਿਸਟਮ++ -Name[sl]=Sistem++ -Name[ta]=தளம்++ -Name[tg]=Системаи++ -Name[th]=แบบ System++ -Name[tr]=Sistem++ -Name[ven]=Sisitemu++ -Name[xh]=Indlela esetyenziswayo++ -Name[zu]=Indlela esetshenziswayo++ X-TDE-Library=twin3_system -- cgit v1.2.1