phpCAS  version 1.4.0
Namespaces | Functions | Variables
Internationalization

Namespaces

 PhpCAS
 

Functions

 CAS_Client::setLang ($lang)
 
 CAS_Client::getLangObj ()
 

Variables

 CAS_Client::$_lang = PHPCAS_LANG_DEFAULT
 
const PHPCAS_LANG_DEFAULT PHPCAS_LANG_ENGLISH
 

Detailed Description

To add a new language:

Function Documentation

◆ getLangObj()

CAS_Client::getLangObj ( )

◆ setLang()

CAS_Client::setLang (   $lang)

This method is used to set the language used by phpCAS.

Parameters
string$langrepresenting the language.
Returns
void

Definition at line 203 of file Client.php.

References phpCAS\traceBegin(), and phpCAS\traceEnd().

Variable Documentation

◆ $_lang

CAS_Client::$_lang = PHPCAS_LANG_DEFAULT
private

A string corresponding to the language used by phpCAS. Written by CAS_Client::setLang(), read by CAS_Client::getLang().

Note
debugging information is always in english (debug purposes only).

Definition at line 194 of file Client.php.

Referenced by CAS_Client\getLangObj().

◆ PHPCAS_LANG_DEFAULT

const PHPCAS_LANG_DEFAULT PHPCAS_LANG_ENGLISH

phpCAS default language (when phpCAS::setLang() is not used)

Definition at line 236 of file CAS.php.