XOOPS  2.6.0
Xmf\Language Class Reference

Static Public Member Functions

static load ($name, $domain= '', $language=null)
 
static translate ($string, $domain=null)
 

Detailed Description

Definition at line 28 of file Language.php.

Member Function Documentation

static Xmf\Language::load (   $name,
  $domain = '',
  $language = null 
)
static

load - load a language file

Parameters
string$namename of the language file
string$domaindomain or module supplying language file
string$languagelanguage folder name
Returns
bool true if loaded, otherwise false

Definition at line 54 of file Language.php.

References $GLOBALS, $language, $path, and XoopsBaseConfig\get().

Referenced by Xmf\Database\Tables\__construct(), Xmf\Module\Admin\checkModuleVersion(), Xmf\Metagen\checkStopWords(), and Xmf\Module\Helper\GenericHelper\loadLanguage().

Here is the call graph for this function:

Here is the caller graph for this function:

static Xmf\Language::translate (   $string,
  $domain = null 
)
static

Attempt a translation of a simple string

Parameters
string$stringstring to translate
string$domainlanguage domain
Returns
string translated string
Todo:
do something useful

Definition at line 40 of file Language.php.


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