# HG changeset patch # User jbe # Date 1427152355 -3600 # Node ID 3384306aa7bc13a4d2c2453125a5cdf67aa36e4e # Parent 1c3ba14bd67974a2bf0e765f39fd784fff3aea0b Autodoc comments improved diff -r 1c3ba14bd679 -r 3384306aa7bc framework/env/__init.lua --- a/framework/env/__init.lua Mon Mar 23 22:41:40 2015 +0100 +++ b/framework/env/__init.lua Tue Mar 24 00:12:35 2015 +0100 @@ -9,7 +9,9 @@ } ) -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. +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. + +Hint: Lua's syntax rules allow to write _"text" as a shortcut for _("text"), or _'text' instead of _('text') respectivly. --]]-- diff -r 1c3ba14bd679 -r 3384306aa7bc framework/env/execute/inner.lua --- a/framework/env/execute/inner.lua Mon Mar 23 22:41:40 2015 +0100 +++ b/framework/env/execute/inner.lua Tue Mar 24 00:12:35 2015 +0100 @@ -1,7 +1,7 @@ --[[-- execute.inner() -It is MANDATORY to call this function once in each pre-fork and post-fork initializer and once in each filter of a WebMCP application. +It is mandatory to call this function once in each pre-fork and post-fork initializer and once in each filter of a WebMCP application. Calling execute.inner() in an initializer marks the end of initialization (the remaining code is executed when the process is terminated cleanly).