LuaLibraryLocale.wiki
changeset 1408 af21a7367640
parent 1372 8f3e1058f2bb
equal deleted inserted replaced
1407:95ac8a844bef 1408:af21a7367640
    25 local l
    25 local l
    26 l = loc( "Hello World")    -- Contains space
    26 l = loc( "Hello World")    -- Contains space
    27 l = loc ("Hello World")    -- Contains space
    27 l = loc ("Hello World")    -- Contains space
    28 l = loc('Hello World')     -- Not double quotes
    28 l = loc('Hello World')     -- Not double quotes
    29 local str = "Hello World"
    29 local str = "Hello World"
    30 l = loc(str)   -- Not a literal string
    30 l = loc(str)   -- Not a literal string, only use this if you use this together with `loc_noop`
    31 l = loc(str .. ", how are you?")   -- Only partially a literal string
    31 l = loc(str .. ", how are you?")   -- Only partially a literal string
    32 </code>
    32 </code>
    33 
    33 
    34 Note these examples do _not_ violate Lua syntax, it is in your responsibility to follow the syntax rules listed above.
    34 Note these examples do _not_ violate Lua syntax, it is in your responsibility to follow the syntax rules listed above.
    35 
    35