From bd944ea7589cba33a0e42f1a91fb6786b7d16b71 Mon Sep 17 00:00:00 2001 From: tobspr Date: Fri, 12 Jun 2020 12:06:57 +0200 Subject: [PATCH] Update german translation --- src/js/game/systems/hub.js | 7 +++++++ translations/base-de.yaml | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/js/game/systems/hub.js b/src/js/game/systems/hub.js index 78ef480a..f1d4ee28 100644 --- a/src/js/game/systems/hub.js +++ b/src/js/game/systems/hub.js @@ -108,6 +108,13 @@ export class HubSystem extends GameSystemWithFilter { context.fillStyle = "#64666e"; context.font = "bold 11px GameFont"; context.fillText(T.buildings.hub.deliver.toUpperCase(), pos.x, pos.y - 40); + + const unlockText = T.buildings.hub.toUnlock.toUpperCase(); + if (unlockText.length > 15) { + context.font = "bold 8px GameFont"; + } else { + context.font = "bold 11px GameFont"; + } context.fillText(T.buildings.hub.toUnlock.toUpperCase(), pos.x, pos.y + 30); context.textAlign = "left"; diff --git a/translations/base-de.yaml b/translations/base-de.yaml index 1d5bf09b..09a6b576 100644 --- a/translations/base-de.yaml +++ b/translations/base-de.yaml @@ -483,8 +483,9 @@ buildings: description: Lagert den Überschuss, bis zu einer gegebenen Kapazität. Kann als Überlauftor agieren. hub: - deliver: Deliver - toUnlock: to unlock + deliver: Liefere + toUnlock: >- + Für folgende Belohnung: levelShortcut: LVL storyRewards: