Ticket #271 (new enhancement)
Admin Generator '# Results' needs to be contextual
| Reported by: | johnnyoffline | Owned by: | tboutell |
|---|---|---|---|
| Priority: | major | Milestone: | 1.5.2 |
| Component: | apostrophePlugin | Version: | trunk |
| Keywords: | Admin Generator | Cc: | johnnyoffline, rickybanister, geoffd, boutell, dordille, hillerj, agilbert |
| Symfony version: | 1.4 |
Description (last modified by johnnyoffline) (diff)
We can do better than the word 'Results' – Results of what?
The word results should be contextual to the data it is representing. This can either come from a clever adaptation of a class name set in the Schema or a homemade generator.yml setting where we label the items.
Instead of 3 results, I want 3 Blog Posts, 3 Events, 3 Donkeys, 3 Iguanas, 3 Hot Moms.
Tom, I am assigning this to you because I think it has I18N implications.
Also, this radness would have to find its way into both the Apostrophe admin theme and the alt admin theme we are using to drive the new blog trunk.
<h6 class="a-admin-list-results">
[?php echo format_number_choice('[0] no result|[1] 1 result|(1,+Inf] %1% results', array('%1%' => $pager->getNbResults()), $pager->getNbResults(), 'apostrophe') ?]
[?php if ($pager->haveToPaginate()): ?]
[?php // echo __('(page %%page%%/%%nb_pages%%)', array('%%page%%' => $pager->getPage(), '%%nb_pages%%' => $pager->getLastPage()), 'apostrophe') ?]
[?php endif; ?]
</h6>



