Xajax_core xajaxLanguageManager. inc.php |
xajaxLanguageManager. inc.phpContains the code that manages the inclusion of alternate language support files; so debug and error messages can be shown in a language other than the default (english) language. Summary
xajaxLanguageManager classPlease see copyright.inc.php for a detailed description, copyright and license information. xajaxLanguageManagerThis class contains the default language (english) and the code used to supply debug and error messages upon request; as well as the code used to load alternate language text as requested via the xajax::configure function. Summary
configure
Called by the main xajax object as configuration options are set. See alsoxajax::configure. The xajaxLanguageManager tracks the following configuration options:
|
Call this function to set options that will effect the processing of xajax requests.
function configure( $sName, $mValue )
An array of the currently registered languages.
var $aMessages
The currently configured language.
var $sLanguage
Construct and initialize the one and only xajax language manager object.
function xajaxLanguageManager()
Implements the singleton pattern: provides a single instance of the xajax language manager object to all object which request it.
function &getInstance()
xajax::configure.
function configure( $sName, $mValue )
Called to register an array of alternate language messages.
function register( $sLanguage, $aMessages )
Called by the main xajax object and other objects during the initial page generation or request processing phase to obtain language specific debug and error messages.
function getText( $sMessage )