API Documentation

Zend/Translate/Adapter/Tmx.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: Tmx.php 24652 2012-02-26 04:49:45Z adamlundrigan $  

\Zend_Translate_Adapter_Tmx

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  $_content= 'null'
Default valuenullDetails
Type
Propertyprivate  $_data= 'array()'
Default valuearray()Details
Type
Propertyprivate  $_file= 'false'
Default valuefalseDetails
Type
Propertyprivate  $_seg= 'null'
Default valuenullDetails
Type
Propertyprivate  $_srclang= 'null'
Default valuenullDetails
Type
Propertyprivate  $_tu= 'null'
Default valuenullDetails
Type
Propertyprivate  $_tuv= 'null'
Default valuenullDetails
Type
Propertyprivate  $_useId= 'true'
Default valuetrueDetails
Type

Methods

methodprotected_contentElement( resource $file, string $data ) : void

Internal method, called by xml element handler for content

Parameters
Name Type Description
$file resource

File handler

$data string

Elements content

methodprotected_endElement( resource $file, string $name ) : void

Internal method, called by xml element handler at end

Parameters
Name Type Description
$file resource

File handler

$name string

Elements name

methodprotected_findEncoding(  $filename ) : string

Internal method, detects the encoding of the xml file

Parameters
Name Type Description
$filename
Returns
Type Description
string Encoding
methodprotected_loadTranslationData( string $filename, string $locale,  $options = array() ) : array

Load translation data (TMX file reader)

Parameters
Name Type Description
$filename string

TMX file to add, full path must be given for access

$locale string

Locale has no effect for TMX because TMX defines all languages within the source file

$options
Returns
Type Description
array
Throws
Exception Description
\Zend_Translation_Exception
methodprotected_startElement( resource $file, string $name, array $attrib ) : void

Internal method, called by xml element handler at start

Parameters
Name Type Description
$file resource

File handler

$name string

Elements name

$attrib array

Attributes for this element

methodpublictoString( ) : string

Returns the adapter name

Returns
Type Description
string
Documentation was generated by DocBlox 0.15.1.