Class Legacy_LanguageManager
This class manages resources of each languages. By requests of other components, this class loads files, or checks the existence of the specified resource, or composes filepath to access real files. And, it manages some locale informations.
Rules about language are different at each bases. So it's important that a base defines the sub class of this class if it can't use this class directly.
And, XCube or bases have to make each languages possible to have its sub class. By that, languages become able to implement their logic to solve problems.
This class calls sub directories of each languages 'section'. 'section' is used to load image files and etc.
- XCube_LanguageManager
- Legacy_LanguageManager
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
loadPageTypeMessageCatalog( string $type )
Load the special message catalog which is defined has been the XOOPS2 generation. |
public
|
#
loadModuleMessageCatalog( $dirname $moduleName )
Load the message catalog of the specified module. |
public
|
#
loadModuleAdminMessageCatalog( $dirname $dirname )
Load the message catalog of the specified module for admin. |
public
|
#
loadBlockMessageCatalog( $dirname $dirname )
Load the message catalog of the specified module for block. |
public
|
#
loadModinfoMessageCatalog( $dirname $dirname )
Load the message catalog of the specified module for modinfo. |
public
|
|
public
|
|
public
boolean
|
|
public
string
|
#
getFilepath( string $section, string $filename )
Return the file path by the specified section and the specified file. |
public
string
|
|
public
string
|
|
public
|
|
public
|
XCube_LanguageManager(),
getFallbackLocale(),
getLanguage(),
getLocale(),
loadThemeMessageCatalog(),
setLanguage(),
setLocale(),
translate()
|
$mLanguageName,
$mLocaleName
|