share/hedgewars/Data/Scripts/Locale.lua
author unC0Rr
Fri, 12 Feb 2016 17:03:42 +0300
changeset 11542 64a5ab2c4f00
parent 8824 fe9eacd390f2
child 12013 3e615852f36e
permissions -rw-r--r--
Attempt to implement hash for special points to detect tech racer maps

-- 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