Updated for translate

This commit is contained in:
farggus 2020-03-24 02:53:39 +02:00 committed by GitHub
parent 052ec5ac94
commit 1c5ead9468
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,206 +1,206 @@
<?php <?php
/** /**
* Navigation container (config/array) * Navigation container (config/array)
* *
* Each element in the array will be passed to * Each element in the array will be passed to
* Zend_Navigation_Page::factory() when constructing * Zend_Navigation_Page::factory() when constructing
* the navigation container below. * the navigation container below.
* *
* The class field is used to contain the icon rendered * The class field is used to contain the icon rendered
* before the nav entry for i18n purposes. When this * before the nav entry for i18n purposes. When this
* gets parsed the language is not yet set and the * gets parsed the language is not yet set and the
* strings stay plain en for now. They get retranslated * strings stay plain en for now. They get retranslated
* in the menu.phtml script when they are output. * in the menu.phtml script when they are output.
*/ */
$pages = array(); $pages = array();
$pages[] = array( $pages[] = array(
'label' => _('My Podcast'), 'label' => _('My Podcast'),
'module' => 'default', 'module' => 'default',
'controller' => 'podcast', 'controller' => 'podcast',
'action' => 'station', 'action' => 'station',
'resource' => 'podcast', 'resource' => 'podcast',
'class' => '<i class="icon-music icon-white"></i>' 'class' => '<i class="icon-music icon-white"></i>'
); );
$pages[] = array( $pages[] = array(
'label' => _('Radio Page'), 'label' => _('Radio Page'),
'uri' => '/', 'uri' => '/',
'resource' => '', 'resource' => '',
'class' => '<i class="icon-globe icon-white"></i>', 'class' => '<i class="icon-globe icon-white"></i>',
'pages' => array(), 'pages' => array(),
'visible' => false 'visible' => false
); );
$pages[] = array( $pages[] = array(
'label' => _('Calendar'), 'label' => _('Calendar'),
'module' => 'default', 'module' => 'default',
'controller' => 'schedule', 'controller' => 'schedule',
'action' => 'index', 'action' => 'index',
'resource' => 'schedule', 'resource' => 'schedule',
'class' => '<i class="icon-calendar icon-white"></i>' 'class' => '<i class="icon-calendar icon-white"></i>'
); );
$pages[] = array( $pages[] = array(
'label' => _('Widgets'), 'label' => _('Widgets'),
'module' => 'default', 'module' => 'default',
'controller' => 'embeddablewidgets', 'controller' => 'embeddablewidgets',
'action' => 'player', 'action' => 'player',
'resource' => 'embeddablewidgets', 'resource' => 'embeddablewidgets',
'class' => '<i class="icon-wrench icon-white"></i>', 'class' => '<i class="icon-wrench icon-white"></i>',
'title' => 'Widgets', 'title' => 'Widgets',
'pages' => array( 'pages' => array(
array( array(
'label' => _('Player'), 'label' => _('Player'),
'module' => 'default', 'module' => 'default',
'controller' => 'embeddablewidgets', 'controller' => 'embeddablewidgets',
'action' => 'player', 'action' => 'player',
), ),
array( array(
'label' => _('Weekly Schedule'), 'label' => _('Weekly Schedule'),
'module' => 'default', 'module' => 'default',
'controller' => 'embeddablewidgets', 'controller' => 'embeddablewidgets',
'action' => 'schedule', 'action' => 'schedule',
), ),
array( array(
'label' => _('Facebook'), 'label' => _('Facebook'),
'module' => 'default', 'module' => 'default',
'controller' => 'embeddablewidgets', 'controller' => 'embeddablewidgets',
'action' => 'facebook', 'action' => 'facebook',
) )
) )
); );
$pages[] = array( $pages[] = array(
'label' => _("Settings"), 'label' => _("Settings"),
'action' => 'edit-user', 'action' => 'edit-user',
'module' => 'default', 'module' => 'default',
'controller' => 'user', 'controller' => 'user',
'class' => '<i class="icon-cog icon-white"></i>', 'class' => '<i class="icon-cog icon-white"></i>',
'title' => 'Settings', 'title' => 'Settings',
'pages' => array( 'pages' => array(
array( array(
'label' => _('General'), 'label' => _('General'),
'module' => 'default', 'module' => 'default',
'controller' => 'preference', 'controller' => 'preference',
'resource' => 'preference' 'resource' => 'preference'
), ),
array( array(
'label' => _('My Profile'), 'label' => _('My Profile'),
'controller' => 'user', 'controller' => 'user',
'action' => 'edit-user' 'action' => 'edit-user'
), ),
array( array(
'label' => _('Users'), 'label' => _('Users'),
'module' => 'default', 'module' => 'default',
'controller' => 'user', 'controller' => 'user',
'action' => 'add-user', 'action' => 'add-user',
'resource' => 'user' 'resource' => 'user'
),array( ),array(
'label' => _('Track Types'), 'label' => _('Track Types'),
'module' => 'default', 'module' => 'default',
'controller' => 'tracktype', 'controller' => 'tracktype',
'action' => 'add-tracktype', 'action' => 'add-tracktype',
'resource' => 'tracktype' 'resource' => 'tracktype'
), ),
array( array(
'label' => _('Streams'), 'label' => _('Streams'),
'module' => 'default', 'module' => 'default',
'controller' => 'preference', 'controller' => 'preference',
'action' => 'stream-setting', 'action' => 'stream-setting',
'resource' => 'preference' 'resource' => 'preference'
), ),
array( array(
'label' => _('Status'), 'label' => _('Status'),
'module' => 'default', 'module' => 'default',
'controller' => 'systemstatus', 'controller' => 'systemstatus',
'action' => 'index', 'action' => 'index',
'resource' => 'systemstatus' 'resource' => 'systemstatus'
), ),
) )
); );
$pages[] = array( $pages[] = array(
'label' => _("Analytics"), 'label' => _("Analytics"),
'module' => 'default', 'module' => 'default',
'controller' => 'playouthistory', 'controller' => 'playouthistory',
'action' => 'index', 'action' => 'index',
'resource' => 'playouthistory', 'resource' => 'playouthistory',
'class' => '<i class="icon-signal icon-white"></i>', 'class' => '<i class="icon-signal icon-white"></i>',
'title' => 'Analytics', 'title' => 'Analytics',
'pages' => array( 'pages' => array(
array( array(
'label' => _('Playout History'), 'label' => _('Playout History'),
'module' => 'default', 'module' => 'default',
'controller' => 'playouthistory', 'controller' => 'playouthistory',
'action' => 'index', 'action' => 'index',
'resource' => 'playouthistory' 'resource' => 'playouthistory'
), ),
array( array(
'label' => _('History Templates'), 'label' => _('History Templates'),
'module' => 'default', 'module' => 'default',
'controller' => 'playouthistorytemplate', 'controller' => 'playouthistorytemplate',
'action' => 'index', 'action' => 'index',
'resource' => 'playouthistorytemplate' 'resource' => 'playouthistorytemplate'
), ),
array( array(
'label' => _('Listener Stats'), 'label' => _('Listener Stats'),
'module' => 'default', 'module' => 'default',
'controller' => 'listenerstat', 'controller' => 'listenerstat',
'action' => 'index', 'action' => 'index',
'resource' => 'listenerstat' 'resource' => 'listenerstat'
), ),
array( array(
'label' => _('Show Listener Stats'), 'label' => _('Show Listener Stats'),
'module' => 'default', 'module' => 'default',
'controller' => 'listenerstat', 'controller' => 'listenerstat',
'action' => 'show', 'action' => 'show',
'resource' => 'showlistenerstat' 'resource' => 'showlistenerstat'
), ),
) )
); );
$pages[] = array( $pages[] = array(
'label' => _('Help'), 'label' => _('Help'),
'controller' => 'dashboard', 'controller' => 'dashboard',
'action' => 'help', 'action' => 'help',
'resource' => 'dashboard', 'resource' => 'dashboard',
'class' => '<i class="icon-question-sign icon-white"></i>', 'class' => '<i class="icon-question-sign icon-white"></i>',
'title' => 'Help', 'title' => 'Help',
'pages' => array( 'pages' => array(
array( array(
'label' => _('Getting Started'), 'label' => _('Getting Started'),
'module' => 'default', 'module' => 'default',
'controller' => 'dashboard', 'controller' => 'dashboard',
'action' => 'help', 'action' => 'help',
'resource' => 'dashboard' 'resource' => 'dashboard'
), ),
array( array(
'label' => _('FAQ'), 'label' => _('FAQ'),
'uri' => FAQ_URL, 'uri' => FAQ_URL,
'target' => "_blank" 'target' => "_blank"
), ),
array( array(
'label' => _('User Manual'), 'label' => _('User Manual'),
'uri' => USER_MANUAL_URL, 'uri' => USER_MANUAL_URL,
'target' => "_blank" 'target' => "_blank"
), ),
array( array(
'label' => _('Get Help Online'), 'label' => _('Get Help Online'),
'uri' => LIBRETIME_DISCOURSE_URL, 'uri' => LIBRETIME_DISCOURSE_URL,
'target' => "_blank" 'target' => "_blank"
), ),
array( array(
'label' => _(sprintf("Help Translate %s", PRODUCT_NAME)), 'label' => _('Help Translate Libretime'),
'uri' => AIRTIME_TRANSIFEX_URL, 'uri' => AIRTIME_TRANSIFEX_URL,
'target' => "_blank" 'target' => "_blank"
), ),
array( array(
'label' => _('What\'s New?'), 'label' => _('What\'s New?'),
'uri' => LIBRETIME_WHATS_NEW_URL, 'uri' => LIBRETIME_WHATS_NEW_URL,
'target' => "_blank" 'target' => "_blank"
) )
) )
); );
// Create container from array // Create container from array
$container = new Zend_Navigation($pages); $container = new Zend_Navigation($pages);
$container->id = "nav"; $container->id = "nav";
//store it in the registry: //store it in the registry:
Zend_Registry::set('Zend_Navigation', $container); Zend_Registry::set('Zend_Navigation', $container);