Public Member Functions | Protected Member Functions

Zend_Translate_Adapter_Gettext Class Reference

Inheritance diagram for Zend_Translate_Adapter_Gettext:
Zend_Translate_Adapter

Public Member Functions

 __construct ($data, $locale=null, array $options=array())
 getAdapterInfo ()
 toString ()

Protected Member Functions

 _loadTranslationData ($filename, $locale, array $options=array())

Detailed Description

Definition at line 34 of file Gettext.php.


Constructor & Destructor Documentation

__construct ( data,
locale = null,
array $  options = array() 
)

Generates the adapter

Parameters:
string$dataTranslation data
string | Zend_Locale$localeOPTIONAL Locale/Language to set, identical with locale identifier, see Zend_Locale for more information
array$optionsOPTIONAL Options to set

Reimplemented from Zend_Translate_Adapter.

Definition at line 49 of file Gettext.php.


Member Function Documentation

_loadTranslationData ( filename,
locale,
array $  options = array() 
) [protected]

Load translation data (MO file reader)

Parameters:
string$filenameMO file to add, full path must be given for access
string$localeNew Locale/Language to set, identical with locale identifier, see Zend_Locale for more information
array$optionOPTIONAL Options to use
Exceptions:
Zend_Translation_Exception
Returns:
array

Reimplemented from Zend_Translate_Adapter.

Definition at line 78 of file Gettext.php.

getAdapterInfo (  )

Returns the adapter informations

Returns:
array Each loaded adapter information as array value

Definition at line 164 of file Gettext.php.

toString (  )

Returns the adapter name

Returns:
string

Reimplemented from Zend_Translate_Adapter.

Definition at line 174 of file Gettext.php.


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