diff options
author | Slávek Banko <[email protected]> | 2020-06-10 21:25:06 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-06-12 15:23:06 +0200 |
commit | 87f08539f4780f52819ddb9e7d291decbc14fa6f (patch) | |
tree | 902840117702b8d2c955b33f0402e0df6446a22c /kasteroids | |
parent | bd46b20a12f3634ad167206c497bb9a050ac533c (diff) | |
download | tdegames-87f08539f4780f52819ddb9e7d291decbc14fa6f.tar.gz tdegames-87f08539f4780f52819ddb9e7d291decbc14fa6f.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 <[email protected]>
(cherry picked from commit a25cdc59c6302046b3121276f5a33f6b1b55a538)
Diffstat (limited to 'kasteroids')
-rw-r--r-- | kasteroids/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | kasteroids/CMakeLists.txt | 5 | ||||
-rw-r--r-- | kasteroids/kasteroids.desktop | 66 |
3 files changed, 8 insertions, 69 deletions
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 |