share/hedgewars/Data/Scripts/Locale.lua
author mikade <redgrinner@gmail.com>
Wed, 27 May 2015 22:34:11 +0900
changeset 10967 1434cec96ca3
parent 8824 fe9eacd390f2
child 12013 3e615852f36e
permissions -rw-r--r--
- preview generation for rubbers, air-mines, crates, barrels - add map previews for the other 6 TechRacer maps - make TechRacer (more or less) work out the box - randomize map by clicking on preview (when map unspecified)

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