From 87f08539f4780f52819ddb9e7d291decbc14fa6f 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 (cherry picked from commit a25cdc59c6302046b3121276f5a33f6b1b55a538) --- ksokoban/CMakeL10n.txt | 6 +++++ ksokoban/data/CMakeLists.txt | 4 +-- ksokoban/data/ksokoban.desktop | 59 ------------------------------------------ 3 files changed, 7 insertions(+), 62 deletions(-) (limited to 'ksokoban') 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 -- cgit v1.2.1