LuaLibraries.wiki
changeset 933 404dfa2f8a23
parent 868 0b400b3e05cc
child 934 dd382ad56f7e
equal deleted inserted replaced
932:86ddcaa6813a 933:404dfa2f8a23
    46 l = loc(str)   -- Not a literal string
    46 l = loc(str)   -- Not a literal string
    47 l = loc(str .. ", how are you?")   -- Only partially a literal string
    47 l = loc(str .. ", how are you?")   -- Only partially a literal string
    48 </code>
    48 </code>
    49 
    49 
    50 Note these examples do _not_ violate Lua syntax, it is in your responsibility to follow the syntax rules listed above.
    50 Note these examples do _not_ violate Lua syntax, it is in your responsibility to follow the syntax rules listed above.
       
    51 
       
    52 ==== `loc_noop(text)` (0.9.23) ====
       
    53 Just returns `text`. This function has the same syntax as `loc`. Like for `loc`, the text will be collected to be made available for translation.
       
    54 
       
    55 You can use this function if you want a make a string available for translation but don't want the string to be translated right now. This can come in handy if you need to store strings in variables and want do something like ´loc(variable_name)` later.
    51 
    56 
    52 == Utils ==
    57 == Utils ==
    53 
    58 
    54 This library includes miscellaneous functions to use, they are all independent of each other and can be used everywhere.
    59 This library includes miscellaneous functions to use, they are all independent of each other and can be used everywhere.
    55 
    60