share/hedgewars/Data/Scripts/Locale.lua
author unc0rr
Fri, 25 Apr 2014 14:22:59 +0400
changeset 10227 0b848d595f22
parent 8824 fe9eacd390f2
child 12013 3e615852f36e
permissions -rw-r--r--
- Fix bug with infinite rounds in racer when a team quits mid-game - Don't allow placing waypoint right on top of previous one, prevents accidental double waypoints - Don't limit maps on number of embedded waypoints

-- Library for localizing strings in lua scripts

local lang = HedgewarsScriptLoad("Locale/" .. tostring(L) .. ".lua")

function loc(text)
    if locale ~= nil and locale[text] ~= nil then return locale[text]
    else return text
    end
end