Class Zend_Translate_Adapter_Gettext

Description
  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Translate/Adapter/Gettext.php (line 39)

Zend_Translate_Adapter
   |
   --Zend_Translate_Adapter_Gettext
Method Summary
 Zend_Translate_Adapter_Gettext __construct (array $options, [string|Zend_Locale $locale = null])
 string toString ()
 void _loadTranslationData (string $filename, string $locale, [boolean $option = null])
Variables
Methods
Constructor __construct (line 51)

Generates the adapter

  • access: public
Zend_Translate_Adapter_Gettext __construct (array $options, [string|Zend_Locale $locale = null])
  • array $options: Options for this adapter
  • string|Zend_Locale $locale: OPTIONAL Locale/Language to set, identical with locale identifier, see Zend_Locale for more information

Redefinition of:
Zend_Translate_Adapter::__construct()
Generates the adapter
toString (line 150)

Returns the adapter name

  • access: public
string toString ()

Redefinition of:
Zend_Translate_Adapter::toString()
Returns the adapter name
_loadTranslationData (line 81)

Load translation data (MO file reader)

  • access: protected
  • throws: Zend_Translation_Exception
void _loadTranslationData (string $filename, string $locale, [boolean $option = null])
  • string $filename: MO file to add, full path must be given for access
  • string $locale: New Locale/Language to set, identical with locale identifier, see Zend_Locale for more information
  • boolean $option: Not used for gettext

Redefinition of:
Zend_Translate_Adapter::_loadTranslationData()
Load translation data

Inherited Methods

Inherited From Zend_Translate_Adapter

 Zend_Translate_Adapter::__construct()
 Zend_Translate_Adapter::addTranslation()
 Zend_Translate_Adapter::getList()
 Zend_Translate_Adapter::getLocale()
 Zend_Translate_Adapter::getOptions()
 Zend_Translate_Adapter::isAvailable()
 Zend_Translate_Adapter::setLocale()
 Zend_Translate_Adapter::setOptions()
 Zend_Translate_Adapter::toString()
 Zend_Translate_Adapter::translate()
 Zend_Translate_Adapter::_loadTranslationData()

Documentation generated on Wed, 21 Feb 2007 12:02:32 -0800 by phpDocumentor 1.3.1