LuaLibraries.wiki
changeset 527 908428bf4a03
parent 526 f910cf3241fc
child 528 88cc64932e78
equal deleted inserted replaced
526:f910cf3241fc 527:908428bf4a03
    10 
    10 
    11 *Note*: In old scripts, you will find this line instead:
    11 *Note*: In old scripts, you will find this line instead:
    12 <code language="lua">loadfile(GetDataPath() .. "Scripts/<Library Name>.lua")()</code>
    12 <code language="lua">loadfile(GetDataPath() .. "Scripts/<Library Name>.lua")()</code>
    13 This does not work with new Hedgewars versions anymore and causes the script to break. You have to replace it with `HedgewarsScriptLoad`. *Calls to `loadfile` are one of the most common reasons why old scripts do not work in recent Hedgewars versions.*
    13 This does not work with new Hedgewars versions anymore and causes the script to break. You have to replace it with `HedgewarsScriptLoad`. *Calls to `loadfile` are one of the most common reasons why old scripts do not work in recent Hedgewars versions.*
    14 
    14 
       
    15 = Table of Contents =
       
    16 
       
    17 <wiki:toc max_depth="2" />
    15 = Locale =
    18 = Locale =
    16 
    19 
    17 This library allows you to translate string and should be used whenever a script has text. It loads the appropriate locale file and check automatically.
    20 This library allows you to translate string and should be used whenever a script has text. It loads the appropriate locale file and check automatically.
    18 
    21 
    19 === lang(text) ===
    22 === lang(text) ===