From a4060ad4849b0b9bad8598decf816bee338610e4 Mon Sep 17 00:00:00 2001
From: mini-bomba <55105495+mini-bomba@users.noreply.github.com>
Date: Fri, 12 Jun 2020 21:19:13 +0200
Subject: [PATCH] Made About this game translatable
---
src/js/states/about.js | 14 +++-----------
translations/base-en.yaml | 6 ++++++
translations/base-pl.yaml | 6 ++++++
3 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/src/js/states/about.js b/src/js/states/about.js
index aa29ff87..900adc5a 100644
--- a/src/js/states/about.js
+++ b/src/js/states/about.js
@@ -15,17 +15,9 @@ export class AboutState extends TextualGameState {
}
getMainContentHTML() {
- return `
- This game is open source and developed by Tobias Springer (this is me).
-
- If you want to contribute, check out shapez.io on github.
-
- This game wouldn't have been possible without the great discord community around my games - You should really join the discord server!
-
- The soundtrack was made by Peppsen - He's awesome.
-
- Finally, huge thanks to my best friend Niklas - Without our factorio sessions this game would never have existed.
- `;
+ return T.about.body
+ .replace("", THIRDPARTY_URLS.github)
+ .replace("", THIRDPARTY_URLS.discord);
}
onEnter() {
diff --git a/translations/base-en.yaml b/translations/base-en.yaml
index 7430f7dd..333693f9 100644
--- a/translations/base-en.yaml
+++ b/translations/base-en.yaml
@@ -729,6 +729,12 @@ keybindings:
about:
title: About this Game
+ body: >-
+ This game is open source and developed by Tobias Springer (this is me).
+ If you want to contribute, check out shapez.io on github.
+ This game wouldn't have been possible without the great discord community around my games - You should really join the discord server!
+ The soundtrack was made by Peppsen - He's awesome.
+ Finally, huge thanks to my best friend Niklas - Without our factorio sessions this game would never have existed.
changelog:
title: Changelog
diff --git a/translations/base-pl.yaml b/translations/base-pl.yaml
index 39e49efc..18226b32 100644
--- a/translations/base-pl.yaml
+++ b/translations/base-pl.yaml
@@ -745,6 +745,12 @@ keybindings:
about:
title: O Grze
+ body: >-
+ Ta gra jest open-source. Rozwijana jest przez Tobiasa Springera (to ja).
+ Jeżeli chcesz pomóc w rozwoju gry, sprawdź repozytorium shapez.io na Githubie.
+ Ta gra nie byłaby możliwa bez wspaniałej społeczności Discord skupionej na moich grach - Naprawdę powinieneś dołączyć do mojego serwera Discord!
+ Ścieżka dźwiękowa tej gry została stworzona przez Peppsena - Jest niesamowity.
+ Na koniec, wielkie dzięki mojemu najlepszemu przyjacielowi: Niklas - Bez naszego wspólnego grania w Factorio, ta gra nigdy by nie powstała.
changelog:
title: Dziennik zmian