Translate/Adapter/Gettext.php
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_Translate
- version
- $Id: Gettext.php 22655 2010-07-22 18:47:20Z mabe $
- Classes
- Zend_Translate_Adapter_Gettext
Description
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
Zend_Translate_Adapter_Gettext
- Extends from
- Zend_Translate_Adapter
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_Translate
- Properties
- $_bigEndian
- $_file
- $_adapterInfo
- $_data
- Methods
- _readMOData
- _loadTranslationData
- getAdapterInfo
- toString
Description
Properties
$_adapterInfo = 'array'
Details
- visibility
- private
- default
- array
- final
- false
- static
- false
$_bigEndian = 'false'
Details
- visibility
- private
- default
- false
- final
- false
- static
- false
$_data = 'array'
Details
- visibility
- private
- default
- array
- final
- false
- static
- false
$_file = 'false'
Details
- visibility
- private
- default
- false
- final
- false
- static
- false
Methods
_loadTranslationData(
string $filename, string $locale, $options
=
array
)
:
array
Load translation data (MO file reader)
Arguments
- $filename
- string
MO file to add, full path must be given for access
- $locale
- string
New Locale/Language to set, identical with locale identifier, see Zend_Locale for more information
- $options
Details
- visibility
- protected
- final
- false
- static
- false
- throws
_readMOData(
string $bytes
)
:
Read values from the MO file
Details
- visibility
- private
- final
- false
- static
- false
getAdapterInfo(
)
:
array
Returns the adapter informations
Output
- array
- Each loaded adapter information as array value
Details
- visibility
- public
- final
- false
- static
- false
toString(
)
:
string
Returns the adapter name
Details
- visibility
- public
- final
- false
- static
- false