share/hedgewars/Data/Scripts/Locale.lua
author antonc27 <antonc27@mail.ru>
Tue, 17 Nov 2015 16:34:20 +0100
branchios-revival
changeset 11409 e0600c5964c7
parent 8824 fe9eacd390f2
child 12013 3e615852f36e
permissions -rw-r--r--
- Removed SDLTry from call to SDL_GL_SetSwapInterval Note: "blame it on me in commit message if you want x)" sheepluva

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