Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

GetText_PHPSupport Class Reference

Inheritance diagram for GetText_PHPSupport:

Inheritance graph
[legend]
Collaboration diagram for GetText_PHPSupport:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 setLanguage ($langCode)
 addDomain ($domain, $path="./locale/")
 _loadDomain ($domain, $path="./locale")
 _getTranslation ($key)

Public Attributes

 $_path = 'locale/'
 $_langCode = false
 $_domains = array()
 $_end = -1
 $_jobs = array()

Detailed Description

Implementation of GetText support for PHP.

This implementation is abble to cache .po files into php files returning the domain translation hashtable.

private

Author:
Laurent Bedubourg <laurent.bedubourg@free.fr>

Definition at line 348 of file GetText.php.


Member Function Documentation

GetText_PHPSupport::_getTranslation key  ) 
 

Implementation of gettext message retrieval.

Reimplemented from GetText_NativeSupport.

Definition at line 462 of file GetText.php.

References $i, and _getTranslation().

Referenced by _getTranslation().

GetText_PHPSupport::_loadDomain domain,
path = "./locale"
 

Load a translation domain file.

This method cache the translation hash into a php file unless GETTEXT_NO_CACHE is defined.

Parameters:
string $domain -- Domain name
string $path optional -- Repository
Exceptions:
GetText_Error private

Definition at line 424 of file GetText.php.

References $d, and _loadDomain().

Referenced by _loadDomain(), and addDomain().

GetText_PHPSupport::addDomain domain,
path = "./locale/"
 

Add a translation domain.

Parameters:
string $domain -- Domain name
string $path optional -- Repository path
Exceptions:
GetText_Error 

Reimplemented from GetText_NativeSupport.

Definition at line 394 of file GetText.php.

References _loadDomain(), addDomain(), and path.

Referenced by addDomain(), and setLanguage().

GetText_PHPSupport::setLanguage langCode  ) 
 

Set the translation domain.

Parameters:
string $langCode -- language code
Exceptions:
GetText_Error 

Reimplemented from GetText_NativeSupport.

Definition at line 362 of file GetText.php.

References addDomain(), path, and setLanguage().

Referenced by setLanguage().


Member Data Documentation

GetText_PHPSupport::$_domains = array()
 

Definition at line 352 of file GetText.php.

GetText_PHPSupport::$_end = -1
 

Definition at line 353 of file GetText.php.

GetText_PHPSupport::$_jobs = array()
 

Definition at line 354 of file GetText.php.

GetText_PHPSupport::$_langCode = false
 

Definition at line 351 of file GetText.php.

GetText_PHPSupport::$_path = 'locale/'
 

Definition at line 350 of file GetText.php.


The documentation for this class was generated from the following file:
Generated on Tue Jun 29 23:40:24 2004 for Mediawiki by doxygen 1.3.7