webmcp

diff framework/env/locale/get.lua @ 0:9fdfb27f8e67

Version 1.0.0
author jbe/bsw
date Sun Oct 25 12:00:00 2009 +0100 (2009-10-25)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/framework/env/locale/get.lua	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +--[[--
     1.5 +locale_setting =  -- setting for the given localization category (could be of any type, depending on the category)
     1.6 +locale.get(
     1.7 +  category        -- string selecting a localization category, e.g. "lang" or "time", etc...
     1.8 +)
     1.9 +
    1.10 +This function is used to read locale settings, which have been set with locale.set(...) or locale.do_with(...).
    1.11 +
    1.12 +--]]--
    1.13 +
    1.14 +function locale.get(category)
    1.15 +  return locale._current_data[category]
    1.16 +end

Impressum / About Us