View Source

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

{zone-data:component-name}
Zend_Translate_Xliff
{zone-data}

{zone-data:proposer-list}
* [~thomas]
** Team lead and main author of Zend_Translate
* [~gavin]
** (Zend-liaison)
{zone-data}

{zone-data:revision}
1.0 - 08 October 2006: New source integration for Zend_Translate.
{zone-data}

{zone-data:overview}
Zend_Translate_Xliff is an additional source integration for the core component Zend_Translate.
{zone-data}

{zone-data:references}
* [XLIFF Specification|http://www.oasis-open.org/committees/xliff/documents/xliff-specification.htm]
* [What is XLIFF ?|http://developers.sun.com/dev/gadc/technicalpublications/articles/xliff.html]
{zone-data}

{zone-data:requirements}
* Zend_Translate_Xliff is an additional source format for Zend_Translate
* It will integrate the XLIFF (Xml Localization File Format) into the Zend_Framework
* This component can not create new XLIFF files, it only can parse them for framework integration
{zone-data}

{zone-data:dependencies}
* Zend_Translate_Abstract
* Zend_Exception
{zone-data}

{zone-data:operation}
This component integrates the XLIFF localization source format into the Zend_Framework.
The XLIFF standard is based on XML files. It is todays industry standard for translation source file exporting.
It derives from Zend_Translate_Abstract and can be used by Zend_Translate to serve source files for translation.
{zone-data}

{zone-data:milestones}
* 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
{zone-data}

{zone-data:class-list}
* Zend_Translate_Xliff
{zone-data}

{zone-data:use-cases}
Use of translation - HTTP_ACCEPT_LANGUAGE: de_AT
{code}
$lang = new Zend_Translate(Zend_Translate::XLIFF, '\home\www\lang\');
print $lang->_('Do you speak german ?'); // Prints: Sprichst Du deutsch ?
{code}
{zone-data}

{zone-data:skeletons}
Real implementation depends on the completed definition for Zend_Translate_Abstract which is actual in progress.
{code}
class Zend_Translate_Xliff extends Zend_Translate_Abstract
{
public function setSource();
public function getSource();
public function getLanguage();
}
{code}
{zone-data}

{zone-template-instance}]]></ac:plain-text-body></ac:macro>