The Red Project
 All Classes Namespaces Files Functions Variables Pages
language.php File Reference

Functions

if(!function_exists('get_browser_language')) get_best_language ()
 
 push_lang ($language)
 
 pop_lang ()
 
if(!function_exists('load_translation_table'))
if(!function_exists('t')) if(!function_exists('tt'))
if(!function_exists('string_plural_select_default')) 
detect_language ($s)
 

Function Documentation

if (!function_exists('load_translation_table')) if (!function_exists('t')) if (!function_exists('tt')) if (!function_exists('string_plural_select_default')) detect_language (   $s)

Referenced by item_store().

if (!function_exists('get_browser_language')) get_best_language ( )

translation support

Get the language setting directly from system variables, bypassing get_config() as database may not yet be configured.

If possible, we use the value from the browser.

Referenced by create_account().

pop_lang ( )
push_lang (   $language)