XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
prepare () | |
setLocale ( $locale) | |
getLocale () | |
setLanguage ( $language) | |
getLanguage () | |
loadGlobalMessageCatalog () | |
loadModuleMessageCatalog (string $moduleName) | |
loadThemeMessageCatalog (string $themeName) | |
existFile (string $section, string $filename) | |
getFilepath (string $section, string $filename) | |
loadTextFile (string $section, string $filename) | |
translate (string $word) | |
getFallbackLanguage () | |
getFallbackLocale () | |
encodeUTF8 ( $str) | |
decodeUTF8 ( $str) | |
Data Fields | |
$mLanguageName | |
$mLocaleName | |
Definition at line 26 of file XCube_LanguageManager.class.php.
__construct | ( | ) |
Definition at line 39 of file XCube_LanguageManager.class.php.
decodeUTF8 | ( | $str | ) |
Definition at line 190 of file XCube_LanguageManager.class.php.
encodeUTF8 | ( | $str | ) |
Definition at line 186 of file XCube_LanguageManager.class.php.
existFile | ( | string | $section, |
string | $filename ) |
check the existence of the specified file in the specified section.
@access public
string | $section | A name of section. |
string | $filename | A name of file |
Reimplemented in Legacy_LanguageManager.
Definition at line 122 of file XCube_LanguageManager.class.php.
getFallbackLanguage | ( | ) |
Return default language name.
@access protected
Reimplemented in Legacy_LanguageManager.
Definition at line 170 of file XCube_LanguageManager.class.php.
getFallbackLocale | ( | ) |
Return default locale name.
@access protected
Definition at line 181 of file XCube_LanguageManager.class.php.
getFilepath | ( | string | $section, |
string | $filename ) |
Return the file path by the specified section and the specified file.
@access public
string | $section | A name of section. |
string | $filename | A name of file |
Reimplemented in Legacy_LanguageManager.
Definition at line 135 of file XCube_LanguageManager.class.php.
getLanguage | ( | ) |
Get language name.
Definition at line 84 of file XCube_LanguageManager.class.php.
getLocale | ( | ) |
Get locale name.
Definition at line 65 of file XCube_LanguageManager.class.php.
loadGlobalMessageCatalog | ( | ) |
Load the global message catalog which is defined in the base module.
Reimplemented in AltsysLangMgr_LanguageManager, and Legacy_LanguageManager.
Definition at line 92 of file XCube_LanguageManager.class.php.
loadModuleMessageCatalog | ( | string | $moduleName | ) |
Load the module message catalog which is defined in the specified module.
string | $moduleName | A name of module. |
Reimplemented in Legacy_LanguageManager.
Definition at line 101 of file XCube_LanguageManager.class.php.
loadTextFile | ( | string | $section, |
string | $filename ) |
Get file contents and return it.
@access public
string | $section | A name of section. |
string | $filename | A name of file |
Reimplemented in Legacy_LanguageManager.
Definition at line 148 of file XCube_LanguageManager.class.php.
loadThemeMessageCatalog | ( | string | $themeName | ) |
Load the theme message catalog which is defined in the specified module.
string | $themeName | A name of theme. |
Definition at line 109 of file XCube_LanguageManager.class.php.
prepare | ( | ) |
Normally, this member function is called promptly, after the constructor. To follow the base, initialize.
Reimplemented in AltsysLangMgr_LanguageManager, and Legacy_LanguageManager.
Definition at line 48 of file XCube_LanguageManager.class.php.
setLanguage | ( | $language | ) |
Set language name.
string | $language | language name |
Definition at line 75 of file XCube_LanguageManager.class.php.
setLocale | ( | $locale | ) |
Set string locale name.
$locale |
Definition at line 56 of file XCube_LanguageManager.class.php.
translate | ( | string | $word | ) |
Return translated message.
string | $word |
Definition at line 160 of file XCube_LanguageManager.class.php.
$mLanguageName |
Definition at line 31 of file XCube_LanguageManager.class.php.
$mLocaleName |
Definition at line 37 of file XCube_LanguageManager.class.php.