Add multiple translation text domains to Zend\Navigation #4979

Merged
merged 4 commits into from Aug 19, 2013

Conversation

Projects
None yet
3 participants

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 some commits Aug 16, 2013

@EvanDotPro EvanDotPro Merge PHLAK:hotfix/gravatar-trim-strtolower into master e702a42
Daniele Princiotta Zend\Navigation currently uses only one text domain for translating p…
…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.
364cb34
Daniele Princiotta Fixed method names 6ca11ed
Daniele Princiotta Aligned method naming to zf style f448163

@weierophinney weierophinney added a commit that referenced this pull request Aug 19, 2013

@weierophinney weierophinney Merge pull request #4979 from shadowdani/nav-textdomain
Add multiple translation text domains to Zend\Navigation
08b7403

@weierophinney weierophinney added a commit that referenced this pull request Aug 19, 2013

@weierophinney weierophinney [#4979] CS fixes
- EOF ending
afc0044

@weierophinney weierophinney added a commit that referenced this pull request Aug 19, 2013

@weierophinney weierophinney Merge branch 'feature/4979' into develop
Close #4979
7d759b1

@weierophinney weierophinney merged commit f448163 into zendframework:develop Aug 19, 2013

@weierophinney weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge pull request zendframework/zendframework#4979 from shadowdani/n…
…av-textdomain

Add multiple translation text domains to Zend\Navigation
4f66433

@weierophinney weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015

@weierophinney weierophinney [zendframework/zendframework#4979] CS fixes
- EOF ending
e2afc56

@weierophinney weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge branch 'feature/4979' into develop bad76dc

@weierophinney weierophinney added a commit to zendframework/zend-navigation that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge pull request zendframework/zendframework#4979 from shadowdani/n…
…av-textdomain

Add multiple translation text domains to Zend\Navigation
8343641

@weierophinney weierophinney added a commit to zendframework/zend-navigation that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge branch 'feature/4979' into develop f598ea6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment