## Zend_Translate_Adapter_Tmx

Description

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

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

    Zend_Translate_Adapter
       |
       --Zend_Translate_Adapter_Tmx

Method Summary
Zend_Translate_Adapter_Tmx __construct (array $options, [string|Zend_Locale $locale = null])
string toString ()
void _loadTranslationData (string $filename, string $locale, [boolean $option = null])
Variables

#### Inherited Variables

Inherited from Zend_Translate_Adapter

> Zend_Translate_Adapter::$_languages
> Zend_Translate_Adapter::$_locale
> Zend_Translate_Adapter::$_options
> Zend_Translate_Adapter::$_translate

Methods
Constructor __construct (line 56)

Generates the tmx adapter This adapter reads with php's xml_parser

- access: public

Zend_Translate_Adapter_Tmx __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 71)

Load translation data (TMX file reader)

- access: protected
- throws: Zend_Translation_Exception

void _loadTranslationData (string $filename, string $locale, [boolean $option = null])

- string $filename: TMX file to add, full path must be given for access
- string $locale: Locale has no effect for TMX because TMX defines all languages within the source file
- boolean $option: Clears the complete translation, because TMX defines all languages in one file

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:03:06 -0800 by phpDocumentor 1.3.1