# HG changeset patch # User Wuzzy # Date 1494970288 -7200 # Node ID f9cbb896967ba43a28cc47b89e63f90fa0e13ce7 # Parent b9cc405541c132418c8c3dde196aa789483ad084 Fix 3 more incorrect uses of loc() in scripts diff -r b9cc405541c1 -r f9cbb896967b share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua --- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua Tue May 16 21:37:46 2017 +0200 +++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua Tue May 16 23:31:28 2017 +0200 @@ -23,7 +23,7 @@ -- mission objectives local minesTimeText = loc("Mines time: 0 seconds") local goals = { - [dialog01] = {missionName, loc("Exploring the tunnel"), loc("Search for the device with the help of the other hedgehogs ").."|"..loc("Hog Solo has to reach the last crates" .. "|" .. minesTimeText), 1, 4000}, + [dialog01] = {missionName, loc("Exploring the tunnel"), loc("Search for the device with the help of the other hedgehogs ").."|"..loc("Hog Solo has to reach the last crates") .. "|" .. minesTimeText, 1, 4000}, [dialog02] = {missionName, loc("Exploring the tunnel"), loc("Explore the tunnel with the other hedgehogs and search for the device").."|"..loc("Hog Solo has to reach the last crates") .. "|" .. minesTimeText, 1, 4000}, [dialog03] = {missionName, loc("Return to the Surface"), loc("Go to the surface!").."|"..loc("Attack Captain Lime before he attacks back").."|"..minesTimeText, 1, 4000}, [dialog04] = {missionName, loc("Return to the Surface"), loc("Go to the surface!").."|"..loc("Attack the assassins before they attack back").."|"..minesTimeText, 1, 4000}, diff -r b9cc405541c1 -r f9cbb896967b share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua --- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua Tue May 16 21:37:46 2017 +0200 +++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua Tue May 16 23:31:28 2017 +0200 @@ -227,7 +227,7 @@ if GetGearType(gear) == gtHedgehog then if not game_lost then game_lost = true - AddCaption(loc("You lose!", 0xFFFFFFFF, capgrpGameState)) + AddCaption(loc("You lose!"), 0xFFFFFFFF, capgrpGameState) ShowMission(loc("Bazooka Training") , loc("Aiming Practice"), loc("Oh no! You failed! Just try again."), -amSkip, 0) time_goal = 1 diff -r b9cc405541c1 -r f9cbb896967b share/hedgewars/Data/Scripts/TargetPractice.lua --- a/share/hedgewars/Data/Scripts/TargetPractice.lua Tue May 16 21:37:46 2017 +0200 +++ b/share/hedgewars/Data/Scripts/TargetPractice.lua Tue May 16 23:31:28 2017 +0200 @@ -233,7 +233,7 @@ _G.onGearDelete = function(gear) if GetGearType(gear) == gtTarget and band(GetState(gear), gstDrowning) ~= 0 then - AddCaption(loc("You lost your target, try again!", 0xFFFFFFFF, capgrpGameState)) + AddCaption(loc("You lost your target, try again!"), 0xFFFFFFFF, capgrpGameState) local newTarget = spawnTarget() local x, y = GetGearPosition(newTarget) local success = PlaceSprite(x, y + 24, sprAmGirder, 0, 0xFFFFFFFF, false, false, false)