View Source

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[{zone-template-instance:ZFDEV:Zend Proposal Zone Template}


* [~thomas]
** Team lead and main author of Zend_Translate
* [~alexander]
** (Zend-liaison)

1.0 - 08 October 2006: New source integration for Zend_Translate.

Zend_Translate_XmlTm is an additional source integration for the core component Zend_Translate.

* [XML:TM Specification|]
* [Translating documents with XML:TM|]

* Zend_Translate_XmlTm is an additional source format for Zend_Translate
* It will integrate the XML:TM standard (XML Text Memory Namespace) into the Zend_Framework
* This component can not create new XML:TM files, it only can parse them for framework integration

* Zend_Translate_Abstract
* Zend_Exception

This component integrates XML:TM source files into the Zend_Framework.
XML:TM is almost the newest localization source standard. It was announced 2004 and is extending TMX, based in XML namespaces. It derives from Zend_Translate_Abstract and can be used by Zend_Translate to serve source files for translation.

* Milestone 1: \[DONE\] proposal written
* Milestone 2: finishing [Zend_Translate - Thomas Weidner]
* Milestone 3: Code class based on Zend_Translate_Abstract
* Milestone 4: Unit tests and debugging
* Milestone 5: Documentation done

* Zend_Translate_XmlTm

Use of translation - HTTP_ACCEPT_LANGUAGE: de_AT
$source = new Zend_Translate_XmlTm('\home\www\lang\');
$lang = new Zend_Translate($source);
print $lang->_('Do you speak german ?'); // Prints: Sprichst Du deutsch ?

Real implementation depends on the completed definition for Zend_Translate_Abstract which is actual in progress.
class Zend_Translate_XmlTm extends Zend_Translate_Abstract
public function setSource();
public function getSource();
public function getLanguage();