Internationalization
[Configuration]

Files

file  spanish.php
file  english.php
file  english.php
file  german.php
file  greek.php
file  languages.php
file  spanish.php

Enumerations

enum  PHPCAS_LANG_DEFAULT

Functions

 CASClient::getLang ()
 CASClient::getString ($str)
 CASClient::setLang ($lang)

Variables

 CASClient::$_lang
 CASClient::$_strings

Detailed Description

To add a new language:


Enumeration Type Documentation

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

Definition at line 246 of file CAS.php.


Function Documentation

CASClient::getLang (  )  [private, inherited]

This method returns the language used by phpCAS.

Returns:
a string representing the language

Definition at line 194 of file client.php.

References CASClient::setLang().

Referenced by CASClient::getString().

CASClient::getString ( str  )  [private, inherited]

This method returns a string depending on the language.

Parameters:
$str the index of the string in $_string.
Returns:
the string corresponding to $index in $string.

Definition at line 221 of file client.php.

References _strings, and CASClient::getLang().

Referenced by CASClient::logout(), CASClient::printHTMLFooter(), and CASClient::redirectToCas().

CASClient::setLang ( lang  )  [inherited]

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

Note:
Can be called only once.
Parameters:
$lang a string representing the language.
See also:
CAS_LANG_FRENCH, CAS_LANG_ENGLISH

Definition at line 241 of file client.php.

References _strings.

Referenced by CASClient::getLang().


Variable Documentation

CASClient::$_lang [private, inherited]

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

Note:
debugging information is always in english (debug purposes only).
See also:
CASClient::_strings, CASClient::getString()

Definition at line 185 of file client.php.

CASClient::$_strings [private, inherited]

array containing the strings used by phpCAS. Written by CASClient::setLang(), read by CASClient::getString() and used by CASClient::setLang().

Note:
This array is filled by instructions in CAS/languages/<$this->_lang>.php
See also:
CASClient::_lang, CASClient::getString(), CASClient::setLang(), CASClient::getLang()

Definition at line 210 of file client.php.

Generated on Fri Jun 18 10:24:05 2010 for phpCAS by  doxygen 1.6.3