summaryrefslogtreecommitdiffstats
path: root/knetwalk/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-10 21:25:06 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-12 14:19:33 +0200
commita25cdc59c6302046b3121276f5a33f6b1b55a538 (patch)
tree5c41c38d0c81e99bfe2d3a8564af42cc2d92941f /knetwalk/src
parentdc556f3e9a46e749b36cf773f9211db4ce58d96b (diff)
downloadtdegames-a25cdc59c6302046b3121276f5a33f6b1b55a538.tar.gz
tdegames-a25cdc59c6302046b3121276f5a33f6b1b55a538.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 <slavek.banko@axis.cz>
Diffstat (limited to 'knetwalk/src')
-rw-r--r--knetwalk/src/CMakeL10n.txt12
-rw-r--r--knetwalk/src/CMakeLists.txt8
-rw-r--r--knetwalk/src/eventsrc230
-rw-r--r--knetwalk/src/knetwalk.desktop7
4 files changed, 17 insertions, 240 deletions
diff --git a/knetwalk/src/CMakeL10n.txt b/knetwalk/src/CMakeL10n.txt
index e81a925d..5e9dc710 100644
--- a/knetwalk/src/CMakeL10n.txt
+++ b/knetwalk/src/CMakeL10n.txt
@@ -1,3 +1,15 @@
##### create translation templates ##############
tde_l10n_create_template( "knetwalk" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/knetwalk.desktop/"
+ SOURCES knetwalk.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/knetwalk-eventsrc/"
+ SOURCES_DESKTOP eventsrc
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/knetwalk/src/CMakeLists.txt b/knetwalk/src/CMakeLists.txt
index 273e3cf6..76f7cccb 100644
--- a/knetwalk/src/CMakeLists.txt
+++ b/knetwalk/src/CMakeLists.txt
@@ -29,13 +29,13 @@ tde_add_executable( knetwalk AUTOMOC
##### other data ################################
-install( FILES eventsrc
+tde_create_translated_desktop(
+ SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/knetwalk
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/knetwalk-eventsrc
)
-install( FILES knetwalk.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( knetwalk.desktop )
install( FILES knetwalkui.rc
DESTINATION ${DATA_INSTALL_DIR}/knetwalk
diff --git a/knetwalk/src/eventsrc b/knetwalk/src/eventsrc
index f03e6ff9..907618a3 100644
--- a/knetwalk/src/eventsrc
+++ b/knetwalk/src/eventsrc
@@ -1,258 +1,28 @@
[!Global!]
IconName=knetwalk
Comment=KNetwalk
-Comment[bn]=কে-নেটওয়াক
-Comment[fi]=KNetwalk
-Comment[hu]=KNetwalk
-Comment[sv]=KNetwalk
[clicksound]
Name=Click
-Name[be]=Пстрычка
-Name[bg]=Щракване
-Name[bn]=ক্লিক
-Name[br]=Klik
-Name[bs]=Klikni
-Name[ca]=Clic
-Name[cs]=Kliknutí
-Name[cy]=Clicio
-Name[da]=Klik
-Name[de]=Klick
-Name[el]=Κλικ
-Name[eo]=Kliki
-Name[es]=Clic
-Name[et]=Klõps
-Name[eu]=Klikatu
-Name[fa]=فشار
-Name[fi]=Napsauta
-Name[fr]=Clic
-Name[ga]=Cliceáil
-Name[he]=לחיצה
-Name[hr]=Klik
-Name[hu]=Kattintás
-Name[is]=Smella
-Name[it]=Clic
-Name[ja]=クリック
-Name[km]=ចុច
-Name[ko]=클릭
-Name[lt]=Paspausti
-Name[lv]=Klikšķis
-Name[mk]=Кликање
-Name[nb]=Klikk
-Name[nds]=Klick
-Name[ne]=क्लिक गर्नुहोस्
-Name[nl]=Klik
-Name[nn]=Klikk
-Name[pa]=ਦਬਾਓ
-Name[pl]=Dobierz
-Name[pt]=Carregar
-Name[pt_BR]=Clicar
-Name[ru]=Щелчок
-Name[se]=Coahkkal
-Name[sk]=Kliknutie
-Name[sl]=Klik
-Name[sr]=Кликни
-Name[sr@Latn]=Klikni
-Name[sv]=Klick
-Name[ta]=சொடுக்கு
-Name[tg]=Ангуштзанӣ
-Name[tr]=Tık
-Name[uk]=Клац
-Name[zh_CN]=单击
-Name[zh_TW]=點選
default_sound=click.wav
default_presentation=0
[connectsound]
Name=Connect
-Name[be]=Злучэнне
-Name[bg]=Връзка
-Name[bn]=সংযোগ স্থাপন করো
-Name[br]=Kevreañ
-Name[bs]=Spoji se
-Name[cs]=Propojení
-Name[da]=Forbind
-Name[de]=Verbinden
-Name[el]=Σύνδεση
-Name[eo]=Konekti
-Name[et]=Ühendus
-Name[eu]=Konektatu
-Name[fa]=اتصال
-Name[fi]=Yhdistä
-Name[fr]=Connecter
-Name[ga]=Nasc
-Name[he]=התחבר
-Name[hr]=Poveži
-Name[hu]=Csatlakozás
-Name[is]=Tengjast
-Name[it]=Connetti
-Name[km]=ត​ភ្ជាប់
-Name[ko]=연결
-Name[lv]=Pieslēgties
-Name[mk]=Поврзување
-Name[nds]=Tokoppeln
-Name[ne]=जडान गर्नुहोस्
-Name[nl]=Verbinden
-Name[pa]=ਜੁੜੋ
-Name[pl]=Połącz
-Name[pt]=Ligar
-Name[pt_BR]=Conectar
-Name[ru]=Подключение
-Name[sl]=Povezava
-Name[sr]=Повежи се
-Name[sr@Latn]=Poveži se
-Name[sv]=Anslut
-Name[uk]=З'єднати
-Name[wa]=Raloyî
-Name[zh_TW]=連結
default_sound=connect.wav
default_presentation=0
[winsound]
Name=Game won
-Name[ar]=ربحت اللعبة
-Name[be]=Перамога
-Name[bg]=Спечелихте
-Name[bn]=খেলা জিতেছেন
-Name[br]=Gounezet eo ar c'hoari
-Name[bs]=Pobjeda
-Name[ca]=Partida guanyada
-Name[cs]=Vyhraná hra
-Name[cy]=Gêm wedi ei ennill
-Name[da]=Spillet vundet
-Name[de]=Spiel gewonnen
-Name[el]=Παιχνίδι κερδήθηκε
-Name[eo]=Ludo venkita
-Name[es]=Partida ganada
-Name[et]=Mäng läbi, sina võitsid
-Name[eu]=Jokoa irabazi da
-Name[fa]=برد بازی
-Name[fi]=Peli voitettu
-Name[fr]=Partie gagnée
-Name[gl]=Xogo gañado
-Name[he]=ניצחת!
-Name[hi]=खेल में जीत हुई
-Name[hr]=Igra je dobivena
-Name[hu]=Győzelem
-Name[is]=Leikur unninn
-Name[it]=Partita vinta
-Name[ja]=ゲームに勝ち
-Name[km]=ល្បែង​បាន​ឈ្នះ
-Name[ko]=게임에서 이김
-Name[lt]=Žaidimas laimėtas
-Name[lv]=Spēle uzvarēta
-Name[mk]=Играта е добиена
-Name[nb]=Du vant
-Name[nds]=Speel wunnen
-Name[ne]=खेल जित्नु भयो
-Name[nl]=Spel gewonnen
-Name[nn]=Du vann
-Name[pa]=ਖੇਡ ਜਿੱਤੀ
-Name[pl]=Gra wygrana
-Name[pt]=Jogo ganho
-Name[pt_BR]=Jogo ganho
-Name[ro]=Joc cîştigat
-Name[ru]=Победа
-Name[se]=Don vuitet
-Name[sk]=Vyhraná hra
-Name[sl]=Igra je dobljena
-Name[sr]=Игра је добијена
-Name[sr@Latn]=Igra je dobijena
-Name[sv]=Du vann spelet
-Name[ta]=ஆட்டம் ஜெயிக்கப்பட்டது
-Name[tg]=Дар бозӣ ғолиб омадед
-Name[tr]=Oyun kazanıldı
-Name[uk]=Гру виграно
-Name[wa]=Djeu wangnî
-Name[zh_CN]=您赢了游戏
-Name[zh_TW]=遊戲獲勝
default_sound=win.wav
default_presentation=1
[startsound]
Name=Connect
-Name[be]=Злучэнне
-Name[bg]=Връзка
-Name[bn]=সংযোগ স্থাপন করো
-Name[br]=Kevreañ
-Name[bs]=Spoji se
-Name[cs]=Propojení
-Name[da]=Forbind
-Name[de]=Verbinden
-Name[el]=Σύνδεση
-Name[eo]=Konekti
-Name[et]=Ühendus
-Name[eu]=Konektatu
-Name[fa]=اتصال
-Name[fi]=Yhdistä
-Name[fr]=Connecter
-Name[ga]=Nasc
-Name[he]=התחבר
-Name[hr]=Poveži
-Name[hu]=Csatlakozás
-Name[is]=Tengjast
-Name[it]=Connetti
-Name[km]=ត​ភ្ជាប់
-Name[ko]=연결
-Name[lv]=Pieslēgties
-Name[mk]=Поврзување
-Name[nds]=Tokoppeln
-Name[ne]=जडान गर्नुहोस्
-Name[nl]=Verbinden
-Name[pa]=ਜੁੜੋ
-Name[pl]=Połącz
-Name[pt]=Ligar
-Name[pt_BR]=Conectar
-Name[ru]=Подключение
-Name[sl]=Povezava
-Name[sr]=Повежи се
-Name[sr@Latn]=Poveži se
-Name[sv]=Anslut
-Name[uk]=З'єднати
-Name[wa]=Raloyî
-Name[zh_TW]=連結
default_sound=start.wav
default_presentation=1
[turnsound]
Name=Turn
-Name[be]=Ход
-Name[bg]=Ход
-Name[bn]=ঘোরো
-Name[bs]=Okreni
-Name[cs]=Tah
-Name[de]=Runde
-Name[el]=Γύρος
-Name[eo]=Turni
-Name[et]=Käik
-Name[eu]=Biratu
-Name[fa]=چرخش
-Name[fi]=Käännä
-Name[fr]=Tourner
-Name[he]=סיבוב
-Name[hr]=Potez
-Name[hu]=Lépés
-Name[is]=Beygja
-Name[it]=Turno
-Name[km]=វេន
-Name[ko]=회전
-Name[lt]=Ėjimas
-Name[lv]=Gājiens
-Name[mk]=Вртење
-Name[nds]=Törn
-Name[ne]=घुम्नुहोस्
-Name[nl]=Draaien
-Name[pa]=ਵਾਰੀ
-Name[pl]=Tura
-Name[pt]=Jogada
-Name[pt_BR]=Virar
-Name[ru]=Поворот
-Name[sl]=Poteza
-Name[sr]=Круг
-Name[sr@Latn]=Krug
-Name[sv]=Vänd
-Name[uk]=Хід
-Name[wa]=Toû
default_sound=turn.wav
default_presentation=0
-
diff --git a/knetwalk/src/knetwalk.desktop b/knetwalk/src/knetwalk.desktop
index d8a4c768..b9fb050e 100644
--- a/knetwalk/src/knetwalk.desktop
+++ b/knetwalk/src/knetwalk.desktop
@@ -3,13 +3,8 @@ Type=Application
Exec=knetwalk -caption "%c" %i %m
X-DocPath=knetwalk/index.html
Name=KNetwalk
-Name[bn]=কে-নেটওয়াক
-Name[fi]=KNetwalk
-Name[hu]=KNetwalk
-Name[pa]=ਕੇ-ਨੈੱਟਵਾਕ
-Name[sv]=KNetwalk
-Terminal=false
GenericName=Network Contruction Game
+Terminal=false
Icon=knetwalk
X-TDE-StartupNotify=true
Categories=Qt;TDE;Game;LogicGame;