Search code examples
zend-frameworkinternationalizationmenutranslationzend-navigation

Disable translation of Zend_Navigation elements


Is there any easy way to disable translation of some of the Zend Navigation elements?
e.g. in this case

$page = new Zend_Navigation_Page_Mvc(
    array(
        'label' => $blogPost->alreadyTranslatedTitleFromDb
        // ... 
    )
);

$container->addPage($page);

Now, when I use:

$page->getLabel();

the label is translated twice. The same for breadcrumbs, sitemaps etc.


Solution

  • I wrote a patch with unit tests for this: