API - XOOPS 2.5.11 Beta 2
By monxoops.fr
Language Class Reference

Static Public Member Functions

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

Static Protected Member Functions

static loadFile ($filename)
 

Member Function Documentation

◆ load()

static 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
Here is the caller graph for this function:

◆ loadFile()

static loadFile (   $filename)
staticprotected

Load a file

Parameters
string$filenamefilename to load
Returns
bool true if file exists and was loaded
Exceptions

InvalidArgumentException

◆ translate()

static 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

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