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

GetText_NativeSupport Class Reference

Inheritance diagram for GetText_NativeSupport:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 setLanguage ($langCode)
 addDomain ($domain, $path=false)
 _getTranslation ($key)
 reset ()
 setVar ($key, $value)
 setVars ($hash)
 gettext ($key)
 _getVar ($name)

Public Attributes

 $_interpolationVars = array()

Detailed Description

Interface to gettext native support.

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

Definition at line 221 of file GetText.php.


Member Function Documentation

GetText_NativeSupport::_getTranslation key  ) 
 

Retrieve translation for specified key.

private

Reimplemented in GetText_PHPSupport.

Definition at line 261 of file GetText.php.

References _getTranslation(), and gettext().

Referenced by _getTranslation().

GetText_NativeSupport::_getVar name  ) 
 

Retrieve an interpolation variable value.

Returns:
mixed private

Definition at line 329 of file GetText.php.

References _getVar(), and name.

Referenced by _getVar(), and gettext().

GetText_NativeSupport::addDomain domain,
path = false
 

Add a translation domain.

Reimplemented in GetText_PHPSupport.

Definition at line 246 of file GetText.php.

References addDomain(), and path.

Referenced by addDomain().

GetText_NativeSupport::gettext key  ) 
 

Retrieve translation for specified key.

Parameters:
string $key -- gettext msgid
Exceptions:
GetText_Error 

Definition at line 298 of file GetText.php.

References _getVar(), and gettext().

Referenced by _getTranslation(), and gettext().

GetText_NativeSupport::reset  ) 
 

Reset interpolation variables.

Definition at line 270 of file GetText.php.

GetText_NativeSupport::setLanguage langCode  ) 
 

Set gettext language code.

Exceptions:
GetText_Error 

Reimplemented in GetText_PHPSupport.

Definition at line 229 of file GetText.php.

References setLanguage().

Referenced by setLanguage().

GetText_NativeSupport::setVar key,
value
 

Set an interpolation variable.

Definition at line 278 of file GetText.php.

References setVar().

Referenced by setVar().

GetText_NativeSupport::setVars hash  ) 
 

Set an associative array of interpolation variables.

Definition at line 286 of file GetText.php.

References setVars().

Referenced by setVars().


Member Data Documentation

GetText_NativeSupport::$_interpolationVars = array()
 

Definition at line 223 of file GetText.php.


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