Fix even more bad/broken loc()'s in scripts (hopefully the last one)
authorWuzzy <almikes@aol.com>
Wed, 17 May 2017 23:28:21 +0200
changeset 12426 9f3387907e06
parent 12425 f9cbb896967b
child 12427 75485b6cdea6
Fix even more bad/broken loc()'s in scripts (hopefully the last one)
share/hedgewars/Data/Maps/CTF_Blizzard/map.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert03.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua
share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
--- a/share/hedgewars/Data/Maps/CTF_Blizzard/map.lua	Tue May 16 23:31:28 2017 +0200
+++ b/share/hedgewars/Data/Maps/CTF_Blizzard/map.lua	Wed May 17 23:28:21 2017 +0200
@@ -310,7 +310,7 @@
 					HandleRespawns() -- this will set fIsMissing[wtf] to false :)
 					AddCaption(loc("Flag returned!"))
 				elseif fIsMissing[wtf] == false then
-					AddCaption(loc("That was pointless.") .. loc("The flag will respawn next round."))
+					AddCaption(loc("That was pointless. The flag will respawn next round."))
 				end
 
 				--fIsMissing[wtf] = false
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert03.lua	Tue May 16 23:31:28 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert03.lua	Wed May 17 23:28:21 2017 +0200
@@ -9,10 +9,10 @@
 
 -- globals
 local missionName = loc("Precise flying")
-local challengeObjectives = loc("Use the RC plane and destroy the all the targets").."|"..
-	loc("Each time you destroy all the targets on your current level you'll get teleported to the next level").."|"..
-	loc("You'll have only one RC plane at the start of the mission").."|"..
-	loc("During the game you can get new RC planes by collecting the weapon crates")
+local challengeObjectives = loc("Use the RC plane and destroy the all the targets.").."|"..
+	loc("Each time you destroy all the targets on your current level you'll get teleported to the next level.").."|"..
+	loc("You'll have only one RC plane at the start of the mission.").."|"..
+	loc("During the game you can get new RC planes by collecting the weapon crates.")
 local currentTarget = 1
 -- dialogs
 local dialog01 = {}
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua	Tue May 16 23:31:28 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua	Wed May 17 23:28:21 2017 +0200
@@ -19,10 +19,10 @@
 local gameEnded = false
 local RED = 0xff0000ff
 local GREEN = 0x38d61cff
-local challengeObjectives = loc("To win the game you have to pass into the rings in time")..
-	"|"..loc("You'll get extra time in case you need it when you pass a ring").."|"..
-	loc("Every 2 rings, the ring color will be green and you'll get an extra flying saucer").."|"..
-	loc("Use the attack key twice to change the flying saucer while floating in mid-air")
+local challengeObjectives = loc("To win the game you have to pass into the rings in time.")..
+	"|"..loc("You'll get extra time in case you need it when you pass a ring.").."|"..
+	loc("Every 2 rings, the ring color will be green and you'll get an extra flying saucer.").."|"..
+	loc("Use the attack key twice to change the flying saucer while floating in mid-air.")
 -- dialogs
 local dialog01 = {}
 -- mission objectives
--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Tue May 16 23:31:28 2017 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Wed May 17 23:28:21 2017 +0200
@@ -911,7 +911,7 @@
 		gameOver = true
 		EndTurn(true)
 		TimeLeft = 0
-		SendStat(siGraphTitle, "Score graph")
+		SendStat(siGraphTitle, loc("Score graph"))
 	end
 end
 
@@ -1093,7 +1093,7 @@
 		else
 			beam = false
 			SetVisualGearValues(pShield, GetX(CurrentHedgehog), GetY(CurrentHedgehog), 0, 0, 1, 10, 0, 0, 0, 0xa800ffff)
-			AddCaption( string.format(loc("Shield ON: %d power remaining"), shieldHealth - 80))
+			AddCaption( string.format(loc("Shield OFF: %d power remaining"), shieldHealth - 80))
 		end
 	end
 end