From a25cdc59c6302046b3121276f5a33f6b1b55a538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 10 Jun 2020 21:25:06 +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 --- ktron/CMakeL10n.txt | 6 ++++++ ktron/CMakeLists.txt | 4 +--- ktron/ktron.desktop | 57 +--------------------------------------------------- 3 files changed, 8 insertions(+), 59 deletions(-) (limited to 'ktron') diff --git a/ktron/CMakeL10n.txt b/ktron/CMakeL10n.txt index ffc43ca7..8386f395 100644 --- a/ktron/CMakeL10n.txt +++ b/ktron/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_create_template( "ktron" ) + +tde_l10n_create_template( + CATALOG "desktop_files/ktron.desktop/" + SOURCES ktron.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/ktron/CMakeLists.txt b/ktron/CMakeLists.txt index e5ea84e2..60ff826a 100644 --- a/ktron/CMakeLists.txt +++ b/ktron/CMakeLists.txt @@ -28,9 +28,7 @@ tde_add_executable( ktron AUTOMOC ##### other data ################################ -install( FILES ktron.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} -) +tde_create_translated_desktop( ktron.desktop ) install( FILES ktron.kcfg DESTINATION ${KCFG_INSTALL_DIR} diff --git a/ktron/ktron.desktop b/ktron/ktron.desktop index 46ebb314..ac006744 100644 --- a/ktron/ktron.desktop +++ b/ktron/ktron.desktop @@ -3,64 +3,9 @@ Type=Application Exec=ktron -caption "%c" %i %m Icon=ktron X-DocPath=ktron/index.html +Name=KTron GenericName=Tron-like Game -GenericName[be]=Гульня Трон -GenericName[bg]=Логическа игра -GenericName[bn]=ট্রন-জাতীয় খেলা -GenericName[br]=C'hoari doare Tron -GenericName[bs]=Igra nalik na Tron -GenericName[ca]=Joc a l'estil Tron -GenericName[cs]=Hra podobná Tronu -GenericName[cy]=Gêm sy'n debyg i Tron -GenericName[da]=Tron-lignende spil -GenericName[de]=Tron-ähnliches Spiel -GenericName[el]=Παιχνίδι παρόμοιο με το Tron -GenericName[eo]="Tron"-simila ludo -GenericName[es]=Juego similar a Tron -GenericName[et]=Tron -GenericName[eu]=Tron-en antzeko jokoa -GenericName[fa]=بازی شبیهTron -GenericName[fi]=Tron-tyylinen peli -GenericName[fr]=Jeu dans le style de Tron -GenericName[he]=משחק חיקוי Tron -GenericName[hr]=Igra poput Trona -GenericName[hu]=Tron-szerű -GenericName[is]=Leikur sem líkist Tron -GenericName[it]=Gioco simile a Tron -GenericName[ja]=トロンのようなゲーム -GenericName[km]=ល្បែង​ដូច Tron -GenericName[lv]=Tron līdzīga spēle -GenericName[mk]=Игра слична на Tron -GenericName[nb]=Tron-lignende spill -GenericName[nds]=Tron-liek Speel -GenericName[ne]=ट्रोन जस्तै खेल -GenericName[nl]=Tron-achtig spel -GenericName[nn]=Tron-liknande spel -GenericName[pl]=Gra typu Tron -GenericName[pt]=Jogo tipo Tron -GenericName[pt_BR]=Jogo parecido com Tron -GenericName[ru]=Трон -GenericName[se]=Tron-lágan speallu -GenericName[sk]=Hra typu Tron -GenericName[sl]=Igra podobna Tronu -GenericName[sr]=Игра налик на Tron -GenericName[sr@Latn]=Igra nalik na Tron -GenericName[sv]=Tron-liknande spel -GenericName[ta]=ட்ரோன் போன்ற விளையாட்டு -GenericName[uk]=Гра схожа на гру "Трон" -GenericName[zh_TW]=類似 Tron 遊戲 Terminal=false -Name=KTron -Name[af]=Ktron -Name[be]=Трон -Name[bn]=কে-ট্রন -Name[hi]=के-ट्रान -Name[nb]=Tron -Name[ne]=केडीई ट्रोन -Name[sv]=Ktron -Name[ta]=Kட்ரான் -Name[tg]=KТрон -Name[zu]=I-KTron X-TDE-StartupNotify=true X-DCOP-ServiceType=Multi Categories=Qt;TDE;Game;ArcadeGame; -- cgit v1.2.1