From 9ff8bcb6e5ed367b1aca27e119086d708edb6b21 Mon Sep 17 00:00:00 2001 From: Jakob Haag Date: Thu, 25 Jun 2020 16:35:57 +0200 Subject: [PATCH] Change all english label to german --- GoldWars/GoldWars/Entities/HUD.swift | 14 +++++++------- GoldWars/GoldWars/Entities/Modal.swift | 2 +- GoldWars/GoldWars/Scenes/GameScene.swift | 2 +- GoldWars/GoldWars/Scenes/MenuScene.swift | 2 +- GoldWars/GoldWars/SettingsScene.swift | 22 +++++++++++----------- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/GoldWars/GoldWars/Entities/HUD.swift b/GoldWars/GoldWars/Entities/HUD.swift index 659215d..fd9c556 100644 --- a/GoldWars/GoldWars/Entities/HUD.swift +++ b/GoldWars/GoldWars/Entities/HUD.swift @@ -92,14 +92,14 @@ class HUD: GKEntity { finishButton = SingeClickButtonNode( textureName: "yellow_button04", - text: "Done", + text: "Fertig", isEnabled: true, position: CGPoint( - x: EntityManager.gameEMInstance.scene.size.width * 0.15, + x: EntityManager.gameEMInstance.scene.size.width * 0.17, y: EntityManager.gameEMInstance.scene.size.height * 0.06), onButtonPress: { } ) - finishButton.size = CGSize(width: 80, height: 40) + finishButton.size = CGSize(width: 125, height: 40) finishButton.zPosition = 2 backgroundRoundCounter = SKSpriteNode(texture: SKTexture(imageNamed: "roundInfo_texture")) @@ -148,7 +148,7 @@ class HUD: GKEntity { func startWithDuration(){ roundTimer.startTimer() finishButton.isEnabled = true - self.roundTimer.roundEnded = "Syncing" + self.roundTimer.roundEnded = "Berechnung" RoundCalculatorService.sharedInstance.isCalculating = false blockWholeScreenPane.isHidden = true } @@ -156,7 +156,7 @@ class HUD: GKEntity { func finishRound() -> () { self.blockWholeScreenPane.isHidden = false self.roundTimer.timeLeft = 1; - self.roundTimer.roundEnded = "Waiting for other player..." + self.roundTimer.roundEnded = "Warte auf Gegner..." } func initRoundInfo(size: CGSize) -> () { @@ -171,14 +171,14 @@ class HUD: GKEntity { currentRoundLabel.zPosition = backgroundRoundCounter.zPosition + 1 roundsLabel.zPosition = backgroundRoundCounter.zPosition + 1 - roundsLabel.text = "of \(RoundCalculatorService.sharedInstance.MAX_ROUNDS)" + roundsLabel.text = "von \(RoundCalculatorService.sharedInstance.MAX_ROUNDS)" roundsLabel.fontColor = SKColor.black roundsLabel.verticalAlignmentMode = .center roundsLabel.fontSize = 12 roundsLabel.position = CGPoint(x: currentRoundLabel.position.x, y: currentRoundLabel.position.y - 25) roundLabel.zPosition = backgroundRoundCounter.zPosition + 1 - roundLabel.text = "Round" + roundLabel.text = "Runde" roundLabel.fontColor = SKColor.black roundLabel.verticalAlignmentMode = .center roundLabel.fontSize = 12 diff --git a/GoldWars/GoldWars/Entities/Modal.swift b/GoldWars/GoldWars/Entities/Modal.swift index 1658d04..760d3f5 100644 --- a/GoldWars/GoldWars/Entities/Modal.swift +++ b/GoldWars/GoldWars/Entities/Modal.swift @@ -61,7 +61,7 @@ class Modal: GKEntity{ footer = SKLabelNode() case .PauseGame: header = SKLabelNode(text: "Pause") - body = SKLabelNode(text: "Waiting for player to reconnect") + body = SKLabelNode(text: "Warte auf Gegner...") footer = SKLabelNode() closeButton.zPosition = -1 } diff --git a/GoldWars/GoldWars/Scenes/GameScene.swift b/GoldWars/GoldWars/Scenes/GameScene.swift index 315faef..1ec9d7c 100644 --- a/GoldWars/GoldWars/Scenes/GameScene.swift +++ b/GoldWars/GoldWars/Scenes/GameScene.swift @@ -153,7 +153,7 @@ class GameScene: SKScene{ self.childNode(withName: "hostLabel")?.run(SKAction.move(to: CGPoint(x: self.size.width * 0.25, y: self.size.height * 0.3), duration: 1)) self.childNode(withName: "peerLabel")?.run(SKAction.move(to: CGPoint(x: self.size.width * 0.75, y: self.size.height * 0.3), duration: 1)) self.initGameEndIcons() - let node = ButtonNode(textureName: "yellow_button05", text: "Menu", isEnabled: true, position: CGPoint(x: self.size.width / 2, y: self.size.height / 2 - 300), onButtonPress: { + let node = ButtonNode(textureName: "yellow_button05", text: "Menü", isEnabled: true, position: CGPoint(x: self.size.width / 2, y: self.size.height / 2 - 300), onButtonPress: { self.backToMenuAction() }) node.name = "BackButton" diff --git a/GoldWars/GoldWars/Scenes/MenuScene.swift b/GoldWars/GoldWars/Scenes/MenuScene.swift index 19ccec5..b53399c 100644 --- a/GoldWars/GoldWars/Scenes/MenuScene.swift +++ b/GoldWars/GoldWars/Scenes/MenuScene.swift @@ -36,7 +36,7 @@ class MenuScene: SKScene { })) entityManager.add(Button(name: "settingsButton", textureName: "gold_button_3", - text: "Settings", + text: "Einstellungen", position: CGPoint(x: midX, y: midY ), onButtonPress: { let scene = SettingsScene(size: self.size) diff --git a/GoldWars/GoldWars/SettingsScene.swift b/GoldWars/GoldWars/SettingsScene.swift index b408c84..f5bf7ea 100644 --- a/GoldWars/GoldWars/SettingsScene.swift +++ b/GoldWars/GoldWars/SettingsScene.swift @@ -18,10 +18,10 @@ class SettingsScene: SKScene { entityManager.setScene(scene: self) let positionX = self.size.width * 0.1 let positionY = self.size.height * 0.05 - isMusicDeactivatedByUserDefault ? setMusicButtonTextByUserDefault(text: "OFF") : setMusicButtonTextByUserDefault(text: "ON") + isMusicDeactivatedByUserDefault ? setMusicButtonTextByUserDefault(text: "Aus") : setMusicButtonTextByUserDefault(text: "Ein") entityManager.add(Button(name: "backToMenuScene", textureName: "yellow_button04", - text: "Back", + text: "Zurück", position: CGPoint(x: positionX, y: positionY), onButtonPress: { let scene = MenuScene(size: self.size) @@ -35,30 +35,30 @@ class SettingsScene: SKScene { if SoundManager.sharedInstance.isMusicPlaying { SoundManager.sharedInstance.stopMenuMusic() SoundManager.sharedInstance.isMusicEnabled = false - self.entityManager.changeSettingsButtonText(buttonName: "StopMenuMusic", text: "OFF") + self.entityManager.changeSettingsButtonText(buttonName: "StopMenuMusic", text: "Aus") } else { SoundManager.sharedInstance.isMusicEnabled = true SoundManager.sharedInstance.startMenuMusic() - self.entityManager.changeSettingsButtonText(buttonName: "StopMenuMusic", text: "ON") + self.entityManager.changeSettingsButtonText(buttonName: "StopMenuMusic", text: "An") } })) entityManager.add(Button(name: "StopMovingBackground", textureName: "yellow_button04", - text: "MOVE", + text: "An", position: CGPoint(x: self.size.width * 0.6, y: self.size.height / 2 - 100), onButtonPress: { if BackgroundComponent.isMovingBackgroundEnabled { BackgroundComponent.isMovingBackgroundEnabled = false - self.entityManager.changeSettingsButtonText(buttonName: "StopMovingBackground", text: "STOP") + self.entityManager.changeSettingsButtonText(buttonName: "StopMovingBackground", text: "Aus") } else { BackgroundComponent.isMovingBackgroundEnabled = true - self.entityManager.changeSettingsButtonText(buttonName: "StopMovingBackground", text: "MOVE") + self.entityManager.changeSettingsButtonText(buttonName: "StopMovingBackground", text: "An") } })) entityManager.add(Label(fontnamed: "Courier-Bold", name: "SettingsLabel", - text: "Settings", - fontSize: 200.0, + text: "Einstellungen", + fontSize: 150.0, fontColor: .black, position: CGPoint(x: self.size.width * 0.5, y: self.size.height * 0.7), horizontalAlignmentMode: .center, @@ -68,7 +68,7 @@ class SettingsScene: SKScene { ) entityManager.add(Label(fontnamed: "Courier-Bold", name: "LabelMusic", - text: "Music", fontSize: 50.0, + text: "Sounds", fontSize: 50.0, fontColor: .black, position: CGPoint(x: self.size.width * 0.5, y: self.size.height / 2 - 15), horizontalAlignmentMode: .right, @@ -78,7 +78,7 @@ class SettingsScene: SKScene { ) entityManager.add(Label(fontnamed: "Courier-Bold", name: "LabelBackground", - text: "Background", + text: "Wind", fontSize: 50.0, fontColor: .black, position: CGPoint(x: self.size.width * 0.5, y: self.size.height / 2 - 115),