|
XOOPS
2.6.0
|
Static Public Member Functions | |
| static | getClassFromDirname ($dirname) |
| static | getThemeClassFromDirname ($dirname= '') |
| static | getUserLocales () |
| static | loadLanguage ($name, $domain= '', $language=null) |
| static | loadLocale ($domain= 'xoops') |
| static | loadMailerLocale () |
| static | loadThemeLocale (XoopsTheme $theme) |
| static | translate ($key, $dirname= 'xoops') |
| static | translateTheme ($key, $dirname= '') |
Static Public Attributes | |
| static | $_defaultLocale = 'en_US' |
| static | $_userLocales = array() |
Definition at line 19 of file Locale.php.
|
static |
| string | $dirname |
Definition at line 162 of file Locale.php.
References $dirname.
|
static |
| string | $dirname |
Definition at line 172 of file Locale.php.
References $dirname, and Xoops\getInstance().

|
static |
getUserLocales() Returns the user locales Normally it returns an array like this:
Definition at line 193 of file Locale.php.
References $_SERVER, $_SESSION, and Xoops\getInstance().

|
static |
| string | $name | Name of language file to be loaded, without extension |
| mixed | $domain | string: Module dirname; global language file will be loaded if $domain is set to 'global' or not specified array: example; array('Frameworks/moduleclasses/moduleadmin') |
| string | $language | Language to be loaded, current language content will be loaded if not specified |
Definition at line 32 of file Locale.php.
References $language, $name, $path, $xoops, Xoops\getInstance(), Xoops_Locale_Abstract\getLegacyLanguage(), and XoopsLoad\loadFile().

|
static |
| string | $domain | string: Module dirname; global language file will be loaded if $domain is set to 'global' or not specified |
Definition at line 58 of file Locale.php.
References $path, $xoops, XoopsLoad\addMap(), XoopsLoad\fileExists(), and Xoops\getInstance().
Referenced by Xoops\loadLocale().


|
static |
Definition at line 108 of file Locale.php.
References $xoops, XoopsLoad\addMap(), XoopsLoad\fileExists(), and Xoops\getInstance().
Referenced by Xoops\getMailer().


|
static |
| XoopsTheme | $theme |
Definition at line 87 of file Locale.php.
References $xoops, XoopsLoad\addMap(), XoopsLoad\fileExists(), Xoops\getInstance(), and XoopsTheme\resourcePath().
Referenced by XoopsTheme\getLocalizationAssets().


|
static |
| string | $key | |
| string | $dirname |
Definition at line 128 of file Locale.php.
References $dirname.
Referenced by createConfigform(), createThemeform(), UserconfigsConfigsForm\getForm(), SystemPreferencesForm\getForm(), SystemModule\installconfigs(), smarty_function_translate(), and Xoops\translate().

|
static |
| string | $key | |
| string | $dirname |
Definition at line 145 of file Locale.php.
References $dirname.
Referenced by smarty_function_translateTheme().

|
static |
Definition at line 21 of file Locale.php.
|
static |
Definition at line 22 of file Locale.php.