webmcp
diff framework/env/__init.lua @ 325:3384306aa7bc
Autodoc comments improved
author | jbe |
---|---|
date | Tue Mar 24 00:12:35 2015 +0100 (2015-03-24) |
parents | 1c3ba14bd679 |
children | 2b5bdf9028fb |
line diff
1.1 --- a/framework/env/__init.lua Mon Mar 23 22:41:40 2015 +0100 1.2 +++ b/framework/env/__init.lua Tue Mar 24 00:12:35 2015 +0100 1.3 @@ -9,7 +9,9 @@ 1.4 } 1.5 ) 1.6 1.7 -Translation function for internationalization. The "_" function translates a given string to the currently selected language (see locale.set{...}). If the translated string contains placeholders in the form #{name}, then those placeholders may be automatically replaced with a corresponding substring which is taken from the table passed as optional second argument. 1.8 +Translation function for localization. The "_" function translates a given string to the currently selected language (see locale.set{...}). If the translated string contains placeholders in the form #{name}, then those placeholders may be automatically replaced with a corresponding substring which is taken from the table passed as optional second argument. 1.9 + 1.10 +Hint: Lua's syntax rules allow to write _"text" as a shortcut for _("text"), or _'text' instead of _('text') respectivly. 1.11 1.12 --]]-- 1.13