Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Add multiple translation text domains to Zend\Navigation #4979

Merged
merged 4 commits into from
Aug 19, 2013

Conversation

shadowdani
Copy link

Add a new option "textdomain" to a navigation page. If present, the navigation view helper passes it to the translator, allowing for multiple text domains in one container/navigation block.

Example config:

'navigation' => array(
    'default' => array(
        'page1' => array(
            'label'      => 'Page 1',
            'route'      => 'page1',
            'textdomain' => 'MyFirstModule'
        ),
        'page2' => array(
            'label'      => 'Page 2',
            'route'      => 'page2',
            'textdomain' => 'MySecondModule'
        ),
    )
)

EvanDotPro and others added 4 commits August 16, 2013 16:13
…age labels. This commit adds the new option key "textdomain" to Navigation and its (translatable) view helpers. If the option is present, it is used during translation. If the key is not present, the old behavior is applied.
@ghost ghost assigned weierophinney Aug 19, 2013
weierophinney added a commit that referenced this pull request Aug 19, 2013
Add multiple translation text domains to Zend\Navigation
weierophinney added a commit that referenced this pull request Aug 19, 2013
- EOF ending
weierophinney added a commit that referenced this pull request Aug 19, 2013
@weierophinney weierophinney merged commit f448163 into zendframework:develop Aug 19, 2013
weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015
…av-textdomain

Add multiple translation text domains to Zend\Navigation
weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-navigation that referenced this pull request May 15, 2015
…av-textdomain

Add multiple translation text domains to Zend\Navigation
weierophinney added a commit to zendframework/zend-navigation that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants