share/hedgewars/Data/Scripts/Locale.lua
author sheepluva
Fri, 13 Jun 2014 02:31:30 +0200
changeset 10292 1c6639b49afc
parent 8824 fe9eacd390f2
child 12013 3e615852f36e
permissions -rw-r--r--
racer: if hog starts race without any weapon selected, select whatever is first

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