API Documentation

Zend/Translate/Adapter/Gettext.php

Show: inherited
Table of Contents

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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Translate  
Version
$Id: Gettext.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Translate_Adapter_Gettext

Package: Zend\Translate

Parent(s)
\Zend_Translate_Adapter
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprivate  $_adapterInfo= 'array()'
Default valuearray()Details
Type
Propertyprivate  $_bigEndian= 'false'
Default valuefalseDetails
Type
Propertyprivate  $_data= 'array()'
Default valuearray()Details
Type
Propertyprivate  $_file= 'false'
Default valuefalseDetails
Type

Methods

methodprotected_loadTranslationData( string $filename, string $locale,  $options = array() ) : array

Load translation data (MO file reader)

Parameters
Name Type Description
$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
Returns
Type Description
array
Throws
Exception Description
\Zend_Translation_Exception
methodprivate_readMOData( string $bytes ) : void

Read values from the MO file

Parameters
Name Type Description
$bytes string
methodpublicgetAdapterInfo( ) : array

Returns the adapter informations

Returns
Type Description
array Each loaded adapter information as array value
methodpublictoString( ) : string

Returns the adapter name

Returns
Type Description
string
Documentation was generated by DocBlox 0.15.1.