XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
Legacy_LanguageManager Class Reference
Inheritance diagram for Legacy_LanguageManager:
XCube_LanguageManager AltsysLangMgr_LanguageManager

Public Member Functions

 prepare ()
 
 _setupDatabase ()
 
 _setupMbstring ()
 
 loadGlobalMessageCatalog ()
 
 loadPageTypeMessageCatalog (string $type)
 
 loadModuleMessageCatalog (string $moduleName)
 
 loadModuleAdminMessageCatalog ($dirname)
 
 loadBlockMessageCatalog ($dirname)
 
 loadModinfoMessageCatalog ($dirname)
 
 _loadLanguage ($dirname, $fileBodyName)
 
 _loadFile ($filename, $mydirname=null)
 
 existFile (string $section, string $filename)
 
 getFilepath (string $section, string $filename)
 
 loadTextFile (string $section, string $filename)
 
 getFallbackLanguage ()
 
 encodeUTF8 ($text)
 
 decodeUTF8 ($text)
 
- Public Member Functions inherited from XCube_LanguageManager
 setLocale ( $locale)
 
 getLocale ()
 
 setLanguage ( $language)
 
 getLanguage ()
 
 loadThemeMessageCatalog (string $themeName)
 
 translate (string $word)
 
 getFallbackLocale ()
 

Additional Inherited Members

- Data Fields inherited from XCube_LanguageManager
 $mLanguageName
 
 $mLocaleName
 

Detailed Description

Definition at line 18 of file Legacy_LanguageManager.class.php.

Member Function Documentation

◆ _loadFile()

_loadFile ( $filename,
$mydirname = null )

@access protected

Parameters
$filename/filename.
null$mydirname
Returns
bool

Definition at line 199 of file Legacy_LanguageManager.class.php.

◆ _loadLanguage()

_loadLanguage ( $dirname,
$fileBodyName )

@access protected

Parameters
$dirname/module directory name
$fileBodyName/language file body name

Reimplemented in AltsysLangMgr_LanguageManager.

Definition at line 171 of file Legacy_LanguageManager.class.php.

◆ _setupDatabase()

_setupDatabase ( )

Load the additional file to control DB.

Definition at line 33 of file Legacy_LanguageManager.class.php.

◆ _setupMbstring()

_setupMbstring ( )

default_charset string "UTF-8" is the default value and its value is used as the default character encoding for htmlentities(), html_entity_decode() and htmlspecialchars() if the encoding parameter is omitted. The value of default_charset will also be used to set the default character set for iconv functions if the iconv.input_encoding, iconv.output_encoding and iconv.internal_encoding configuration options are unset, and for mbstring functions if the mbstring.http_input mbstring.http_output mbstring.internal_encoding configuration option is unset. https://www.php.net/manual/en/ini.core.php#ini.default-charset

Definition at line 51 of file Legacy_LanguageManager.class.php.

◆ decodeUTF8()

decodeUTF8 ( $text)

Reimplemented from XCube_LanguageManager.

Definition at line 269 of file Legacy_LanguageManager.class.php.

◆ encodeUTF8()

encodeUTF8 ( $text)

Reimplemented from XCube_LanguageManager.

Definition at line 260 of file Legacy_LanguageManager.class.php.

◆ existFile()

existFile ( string $section,
string $filename )

check the exstence of the specified file in the specified section.

@access public

Parameters
string$sectionA name of section.
string$filenameA name of file
Returns
bool

Reimplemented from XCube_LanguageManager.

Definition at line 217 of file Legacy_LanguageManager.class.php.

◆ getFallbackLanguage()

getFallbackLanguage ( )

Return default language name.

@access protected

Returns
string

Reimplemented from XCube_LanguageManager.

Definition at line 255 of file Legacy_LanguageManager.class.php.

◆ getFilepath()

getFilepath ( string $section,
string $filename )

Return the file path by the specified section and the specified file.

@access public

Parameters
string$sectionA name of section.
string$filenameA name of file
Returns
string

Reimplemented from XCube_LanguageManager.

Definition at line 230 of file Legacy_LanguageManager.class.php.

◆ loadBlockMessageCatalog()

loadBlockMessageCatalog ( $dirname)

Load the message catalog of the specified module for block.

@access public

Parameters
$dirname/dirname of module.

Definition at line 150 of file Legacy_LanguageManager.class.php.

◆ loadGlobalMessageCatalog()

loadGlobalMessageCatalog ( )

Load the global message catalog which is defined in the base module.

Reimplemented from XCube_LanguageManager.

Reimplemented in AltsysLangMgr_LanguageManager.

Definition at line 89 of file Legacy_LanguageManager.class.php.

◆ loadModinfoMessageCatalog()

loadModinfoMessageCatalog ( $dirname)

Load the message catalog of the specified module for modinfo.

@access public

Parameters
$dirname/dirname of module.

Definition at line 161 of file Legacy_LanguageManager.class.php.

◆ loadModuleAdminMessageCatalog()

loadModuleAdminMessageCatalog ( $dirname)

Load the message catalog of the specified module for admin.

@access public

Parameters
$dirname/dirname of module.

Definition at line 139 of file Legacy_LanguageManager.class.php.

◆ loadModuleMessageCatalog()

loadModuleMessageCatalog ( string $moduleName)

Load the message catalog of the specified module.

@access public

Parameters
string$moduleName

Reimplemented from XCube_LanguageManager.

Definition at line 128 of file Legacy_LanguageManager.class.php.

◆ loadPageTypeMessageCatalog()

loadPageTypeMessageCatalog ( string $type)

Load the special message catalog that is defined as the XOOPS2 generation.

@access public

Parameters
string$type

Definition at line 113 of file Legacy_LanguageManager.class.php.

◆ loadTextFile()

loadTextFile ( string $section,
string $filename )

Get file contents and return it.

@access public

Parameters
string$sectionA name of section.
string$filenameA name of file
Returns
string

Reimplemented from XCube_LanguageManager.

Definition at line 249 of file Legacy_LanguageManager.class.php.

◆ prepare()

prepare ( )

Normally, this member function is called promptly, after the constructor. To follow the base, initialize.

Reimplemented from XCube_LanguageManager.

Reimplemented in AltsysLangMgr_LanguageManager.

Definition at line 20 of file Legacy_LanguageManager.class.php.


The documentation for this class was generated from the following file: