CC-1960: Internationalize Airtime / Support translations

-added gettext wrapper function to all navigation strings
This commit is contained in:
denise 2012-11-15 13:24:30 -05:00
parent 5adadc2e91
commit 8338152876
1 changed files with 17 additions and 17 deletions

View File

@ -9,85 +9,85 @@
*/ */
$pages = array( $pages = array(
array( array(
'label' => 'Now Playing', 'label' => _('Now Playing'),
'module' => 'default', 'module' => 'default',
'controller' => 'Showbuilder', 'controller' => 'Showbuilder',
'action' => 'index', 'action' => 'index',
'resource' => 'showbuilder' 'resource' => 'showbuilder'
), ),
array( array(
'label' => 'Add Media', 'label' => _('Add Media'),
'module' => 'default', 'module' => 'default',
'controller' => 'Plupload', 'controller' => 'Plupload',
'action' => 'index', 'action' => 'index',
'resource' => 'plupload' 'resource' => 'plupload'
), ),
array( array(
'label' => 'Library', 'label' => _('Library'),
'module' => 'default', 'module' => 'default',
'controller' => 'Library', 'controller' => 'Library',
'action' => 'index', 'action' => 'index',
'resource' => 'playlist' 'resource' => 'playlist'
), ),
array( array(
'label' => 'Calendar', 'label' => _('Calendar'),
'module' => 'default', 'module' => 'default',
'controller' => 'Schedule', 'controller' => 'Schedule',
'action' => 'index', 'action' => 'index',
'resource' => 'schedule' 'resource' => 'schedule'
), ),
array( array(
'label' => 'System', 'label' => _('System'),
'uri' => '#', 'uri' => '#',
'resource' => 'preference', 'resource' => 'preference',
'pages' => array( 'pages' => array(
array( array(
'label' => 'Preferences', 'label' => _('Preferences'),
'module' => 'default', 'module' => 'default',
'controller' => 'Preference' 'controller' => 'Preference'
), ),
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' => 'Media Folders', 'label' => _('Media Folders'),
'module' => 'default', 'module' => 'default',
'controller' => 'Preference', 'controller' => 'Preference',
'action' => 'directory-config', 'action' => 'directory-config',
'id' => 'manage_folder' 'id' => 'manage_folder'
), ),
array( array(
'label' => 'Streams', 'label' => _('Streams'),
'module' => 'default', 'module' => 'default',
'controller' => 'Preference', 'controller' => 'Preference',
'action' => 'stream-setting' 'action' => 'stream-setting'
), ),
array( array(
'label' => 'Support Feedback', 'label' => _('Support Feedback'),
'module' => 'default', 'module' => 'default',
'controller' => 'Preference', 'controller' => 'Preference',
'action' => 'support-setting' 'action' => 'support-setting'
), ),
array( array(
'label' => 'Status', 'label' => _('Status'),
'module' => 'default', 'module' => 'default',
'controller' => 'systemstatus', 'controller' => 'systemstatus',
'action' => 'index', 'action' => 'index',
'resource' => 'systemstatus' 'resource' => 'systemstatus'
), ),
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' => 'Listener Stats', 'label' => _('Listener Stats'),
'module' => 'default', 'module' => 'default',
'controller' => 'listenerstat', 'controller' => 'listenerstat',
'action' => 'index', 'action' => 'index',
@ -96,24 +96,24 @@ $pages = array(
) )
), ),
array( array(
'label' => 'Help', 'label' => _('Help'),
'uri' => '#', 'uri' => '#',
'resource' => 'dashboard', 'resource' => 'dashboard',
'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' => 'User Manual', 'label' => _('User Manual'),
'uri' => "http://www.sourcefabric.org/en/airtime/manuals/", 'uri' => "http://www.sourcefabric.org/en/airtime/manuals/",
'target' => "_blank" 'target' => "_blank"
), ),
array( array(
'label' => 'About', 'label' => _('About'),
'module' => 'default', 'module' => 'default',
'controller' => 'dashboard', 'controller' => 'dashboard',
'action' => 'about', 'action' => 'about',