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 --- kasteroids/CMakeL10n.txt | 6 ++++ kasteroids/CMakeLists.txt | 5 ++-- kasteroids/kasteroids.desktop | 66 ------------------------------------------- 3 files changed, 8 insertions(+), 69 deletions(-) (limited to 'kasteroids') diff --git a/kasteroids/CMakeL10n.txt b/kasteroids/CMakeL10n.txt index fa315682..379499b3 100644 --- a/kasteroids/CMakeL10n.txt +++ b/kasteroids/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_create_template( "kasteroids" ) + +tde_l10n_create_template( + CATALOG "desktop_files/kasteroids.desktop/" + SOURCES kasteroids.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/kasteroids/CMakeLists.txt b/kasteroids/CMakeLists.txt index b28f564d..4d63e1f2 100644 --- a/kasteroids/CMakeLists.txt +++ b/kasteroids/CMakeLists.txt @@ -32,9 +32,8 @@ tde_install_icons( kasteroids ) ##### other data ################################ -install( FILES kasteroids.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} -) + +tde_create_translated_desktop( kasteroids.desktop ) install( FILES kasteroidsui.rc DESTINATION ${DATA_INSTALL_DIR}/kasteroids diff --git a/kasteroids/kasteroids.desktop b/kasteroids/kasteroids.desktop index c10120dc..13be1143 100644 --- a/kasteroids/kasteroids.desktop +++ b/kasteroids/kasteroids.desktop @@ -1,74 +1,8 @@ [Desktop Entry] Name=KAsteroids -Name[af]=Kasteroids -Name[ar]=لعبة الكويكبات (KAsteroids) -Name[be]=Астэроіды -Name[bn]=কে-অ্যাস্টেরয়েড -Name[eo]=Asteroidoj -Name[hi]=के-एस्टरॉइड्स -Name[nb]=KAsteroider -Name[ne]=केडीई एस्टेरोइड -Name[pa]=ਕੇ-ਉਲਕਾ -Name[pl]=Asteroidy -Name[pt_BR]=KAsteróides -Name[sv]=Kasteroids -Name[ta]=கேஅஸ்டராய்ட்ஸ் -Name[tg]=KАстероидҳо -Name[th]=ยิงอุกาบาต - K -Name[tr]=Göktaşları -Name[uz]=Asteroidlar -Name[uz@cyrillic]=Астероидлар -Name[wa]=KAsteroyides -Name[zh_TW]=KAsteroids 小行星 MimeType= Exec=kasteroids %i %m -caption "%c" GenericName=Space Game -GenericName[be]=Касмічная гульня -GenericName[bg]=Космическа игра -GenericName[bn]=মহাশূন্যের খেলা -GenericName[bs]=Svemirska igra -GenericName[ca]=Joc de l'espai -GenericName[cs]=Vesmírná hra -GenericName[cy]=Gêm Ofod -GenericName[da]=Rumspil -GenericName[de]=Weltraumspiel -GenericName[el]=Διαστημικό παιχνίδι -GenericName[eo]=Kosmoludo -GenericName[es]=Juego espacial -GenericName[et]=Kosmoselahing -GenericName[eu]=Espazio-jokoa -GenericName[fa]=بازی فضایی -GenericName[fi]=Avaruuspeli -GenericName[fr]=Jeu dans l'espace -GenericName[he]=משחק חלל -GenericName[hr]=Igra u Svemiru -GenericName[hu]=Űrhajós -GenericName[is]=Geimleikur -GenericName[it]=Gioco spaziale -GenericName[ja]=宇宙ゲーム -GenericName[km]=ល្បែង​អាវកាស -GenericName[lt]=Kosminis žaidimas -GenericName[lv]=Kosmiska spēle -GenericName[mk]=Вселенска игра -GenericName[nb]=Romspill -GenericName[nds]=Weltruumspeel -GenericName[ne]=खाली स्थान खेल -GenericName[nl]=Ruimtespel -GenericName[nn]=Romspel -GenericName[pa]=ਪੁਲਾੜ ਖੇਡ -GenericName[pl]=Gra kosmiczna -GenericName[pt]=Jogo Espacial -GenericName[pt_BR]=Jogo espacial -GenericName[ru]=Астероиды -GenericName[sk]=Vesmírna hra -GenericName[sl]=Vesoljska igra -GenericName[sr]=Свемирска игра -GenericName[sr@Latn]=Svemirska igra -GenericName[sv]=Rymdspel -GenericName[ta]=விண்வெளி விளையாட்டு -GenericName[uk]=Космічна гра -GenericName[zh_CN]=空间游戏 -GenericName[zh_TW]=太空遊戲 Icon=kasteroids Path= X-DocPath=kasteroids/index.html -- cgit v1.2.1