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 /ksokoban | |
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 'ksokoban')
-rw-r--r-- | ksokoban/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | ksokoban/data/CMakeLists.txt | 4 | ||||
-rw-r--r-- | ksokoban/data/ksokoban.desktop | 59 |
3 files changed, 7 insertions, 62 deletions
diff --git a/ksokoban/CMakeL10n.txt b/ksokoban/CMakeL10n.txt index bc58bcaf..4f4bed5c 100644 --- a/ksokoban/CMakeL10n.txt +++ b/ksokoban/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_create_template( "ksokoban" ) + +tde_l10n_create_template( + CATALOG "desktop_files/ksokoban.desktop/" + SOURCES data/ksokoban.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/ksokoban/data/CMakeLists.txt b/ksokoban/data/CMakeLists.txt index e1114b1b..afbdc620 100644 --- a/ksokoban/data/CMakeLists.txt +++ b/ksokoban/data/CMakeLists.txt @@ -5,6 +5,4 @@ tde_install_icons( ksokoban ) ##### other data ################################ -install( FILES ksokoban.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} -) +tde_create_translated_desktop( ksokoban.desktop ) diff --git a/ksokoban/data/ksokoban.desktop b/ksokoban/data/ksokoban.desktop index 2fb4ebf0..60c3ec3c 100644 --- a/ksokoban/data/ksokoban.desktop +++ b/ksokoban/data/ksokoban.desktop @@ -1,65 +1,6 @@ [Desktop Entry] Name=KSokoban -Name[af]=Ksokoban -Name[be]=Сакабан -Name[bn]=কে-সোকোবান -Name[hi]=के-शोकोबॉन -Name[mk]=КСокобан -Name[nb]=Sokoban -Name[ne]=केडीई सोकोबान -Name[pl]=Sokoban -Name[sv]=Ksokoban -Name[ta]=Kசோகோபான் -Name[tg]=KСокобан -Name[zh_TW]=KSokoban 倉庫番 -Name[zu]=I-KSokoban GenericName=Sokoban Game -GenericName[be]=Гульня Сакабан -GenericName[bg]=Логическа игра -GenericName[bn]=সোকোবান খেলা -GenericName[bs]=Igra Sokoban -GenericName[ca]=Joc Sokoban -GenericName[cs]=Hra Sokoban -GenericName[cy]=Gêm Sokoban -GenericName[da]=Sokoban spil -GenericName[de]=Sokoban Spiel -GenericName[el]=Παιχνίδι Sokoban -GenericName[eo]=Sokobana ludo -GenericName[es]=Juego Sokoban -GenericName[et]=Sokoban -GenericName[eu]=Sokoban jokoa -GenericName[fa]=بازی Sokoban -GenericName[fi]=Sokoban -GenericName[fr]=Jeu Sokoban -GenericName[ga]=Cluiche Sokoban -GenericName[he]=משחק Sokoban -GenericName[hr]=Sokoban -GenericName[hu]=Sokoban -GenericName[is]=Sokoban leikur -GenericName[it]=Gioco del Sokoban -GenericName[ja]=倉庫番ゲーム -GenericName[km]=ល្បែងសូកូបាន -GenericName[lt]=Sokoban žaidimas -GenericName[lv]=Sokoban spēle -GenericName[mk]=Игра Сокобан -GenericName[nb]=Sokoban-spill -GenericName[nds]=Sokoban-Speel -GenericName[ne]=सोकोबान खेल -GenericName[nl]=Sokobanspel -GenericName[nn]=Sokoban-spel -GenericName[pl]=Sokoban -GenericName[pt]=Jogo de Sokoban -GenericName[pt_BR]=Jogo de Sokoban -GenericName[ru]=Сокобан -GenericName[se]=Sokoban-speallu -GenericName[sk]=Hra Sokoban -GenericName[sl]=Igra Sokobana -GenericName[sr]=Игра Sokoban-а -GenericName[sr@Latn]=Igra Sokoban-a -GenericName[sv]=Sokoban-spel -GenericName[ta]=சொகோபான் விளையாட்டு -GenericName[uk]=Гра Sokoban -GenericName[zh_TW]=倉庫番遊戲 X-DocPath=ksokoban/index.html Exec=ksokoban %i %m -caption "%c" Icon=ksokoban |