I am using Zend Translate to translate and localize views. Therefore I set the translator applicationwide using array translationfiles like en.php and fr.php. Now I have for example in index.phtml:
- Title in English
- Subject1 in English
- Subject2 in English
Say if I want part of a view translated in another language, is this possible? The desired result from index.phtml would be:
- Title in English
- Sujet1 en francais
- Subject2 in English
Within the same view. I tried adding in my viewfile just before Subject1
<?php $translate = new Zend_Translate('array', APPLICATION_PATH .'/../language/fr.php', 'fr'); ?>
<?php echo $this->translate('Subject1 in English');?>
but the application-wide translation overrules. Is it possible to change from one translation to another within one view and how should I go about this?