share/hedgewars/Data/Scripts/Locale.lua
author koda
Tue, 02 Jun 2015 01:28:21 +0100
changeset 10972 bba0f1b7ebbc
parent 8824 fe9eacd390f2
child 12013 3e615852f36e
permissions -rw-r--r--
Fix retina rendering on OSX This does not actually improve any graphics, but at least OSX native GUI elements won't look pixellated any more.

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