Merge pull request #118 from radiorabe/feature/pull-ru-from-zanata
Update ru and de i18n
This commit is contained in:
commit
3196603dde
|
@ -18,7 +18,7 @@ class Application_Common_Timezone
|
||||||
'UTC' => DateTimeZone::UTC
|
'UTC' => DateTimeZone::UTC
|
||||||
);
|
);
|
||||||
|
|
||||||
$tzlist = array(NULL => "Use station default");
|
$tzlist = array(NULL => _("Use station default"));
|
||||||
|
|
||||||
foreach ($regions as $name => $mask) {
|
foreach ($regions as $name => $mask) {
|
||||||
$ids = DateTimeZone::listIdentifiers($mask);
|
$ids = DateTimeZone::listIdentifiers($mask);
|
||||||
|
|
|
@ -1,40 +1,48 @@
|
||||||
<?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
|
||||||
|
* before the nav entry for i18n purposes. When this
|
||||||
|
* gets parsed the language is not yet set and the
|
||||||
|
* strings stay plain en for now. They get retranslated
|
||||||
|
* in the menu.phtml script when they are output.
|
||||||
|
*/
|
||||||
$pages = array();
|
$pages = array();
|
||||||
$pages[] = array(
|
$pages[] = array(
|
||||||
'label' => "<i class='icon-music icon-white'></i>"._('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>'
|
||||||
);
|
);
|
||||||
$pages[] = array(
|
$pages[] = array(
|
||||||
'label' => "<i class='icon-globe icon-white'></i>"._('Radio Page'),
|
'label' => _('Radio Page'),
|
||||||
'uri' => '/',
|
'uri' => '/',
|
||||||
'resource' => '',
|
'resource' => '',
|
||||||
'pages' => array(
|
'class' => '<i class="icon-globe icon-white"></i>',
|
||||||
)
|
'pages' => array()
|
||||||
);
|
);
|
||||||
$pages[] = array(
|
$pages[] = array(
|
||||||
'label' => "<i class='icon-calendar icon-white'></i>"._('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>'
|
||||||
);
|
);
|
||||||
$pages[] = array(
|
$pages[] = array(
|
||||||
'label' => "<i class='icon-wrench icon-white'></i>"._('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>',
|
||||||
'title' => 'Widgets',
|
'title' => 'Widgets',
|
||||||
'pages' => array(
|
'pages' => array(
|
||||||
array(
|
array(
|
||||||
|
@ -58,11 +66,12 @@ $pages[] = array(
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$pages[] = array(
|
$pages[] = array(
|
||||||
'label' => "<i class='icon-cog icon-white'></i>"._("Settings"),
|
'label' => _("Settings"),
|
||||||
'resource' => 'preference',
|
'resource' => 'preference',
|
||||||
'action' => 'index',
|
'action' => 'index',
|
||||||
'module' => 'default',
|
'module' => 'default',
|
||||||
'controller' => 'preference',
|
'controller' => 'preference',
|
||||||
|
'class' => '<i class="icon-cog icon-white"></i>',
|
||||||
'title' => 'Settings',
|
'title' => 'Settings',
|
||||||
'pages' => array(
|
'pages' => array(
|
||||||
array(
|
array(
|
||||||
|
@ -99,11 +108,12 @@ $pages[] = array(
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$pages[] = array(
|
$pages[] = array(
|
||||||
'label' => "<i class='icon-signal icon-white'></i>"._("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>',
|
||||||
'title' => 'Analytics',
|
'title' => 'Analytics',
|
||||||
'pages' => array(
|
'pages' => array(
|
||||||
array(
|
array(
|
||||||
|
@ -162,11 +172,12 @@ if (LIBRETIME_ENABLE_BILLING === true) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$pages[] = array(
|
$pages[] = array(
|
||||||
'label' => "<i class='icon-question-sign icon-white'></i>"._('Help'),
|
'label' => _('Help'),
|
||||||
'controller' => 'dashboard',
|
'controller' => 'dashboard',
|
||||||
'action' => 'help',
|
'action' => 'help',
|
||||||
'resource' => 'dashboard',
|
'resource' => 'dashboard',
|
||||||
'title' => 'Help',
|
'class' => '<i class="icon-question-sign icon-white"></i>',
|
||||||
|
'title' => 'Help',
|
||||||
'pages' => array(
|
'pages' => array(
|
||||||
array(
|
array(
|
||||||
'label' => _('Getting Started'),
|
'label' => _('Getting Started'),
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class LocaleController extends Zend_Controller_Action
|
final class LocaleController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
|
|
||||||
public function init()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function datatablesTranslationTableAction()
|
public function datatablesTranslationTableAction()
|
||||||
{
|
{
|
||||||
$this->view->layout()->disableLayout();
|
$this->view->layout()->disableLayout();
|
||||||
|
@ -285,6 +280,7 @@ class LocaleController extends Zend_Controller_Action
|
||||||
"Filtering out " => _("Filtering out "),
|
"Filtering out " => _("Filtering out "),
|
||||||
" of " => _(" of "),
|
" of " => _(" of "),
|
||||||
" records" => _(" records"),
|
" records" => _(" records"),
|
||||||
|
"There are no shows scheduled during the specified time period." => _("There are no shows scheduled during the specified time period."),
|
||||||
//already in library/library.js
|
//already in library/library.js
|
||||||
//"Title" => _("Title"),
|
//"Title" => _("Title"),
|
||||||
//"Creator" => _("Creator"),
|
//"Creator" => _("Creator"),
|
||||||
|
@ -443,7 +439,6 @@ class LocaleController extends Zend_Controller_Action
|
||||||
$this->view->layout()->disableLayout();
|
$this->view->layout()->disableLayout();
|
||||||
$this->_helper->viewRenderer->setNoRender(true);
|
$this->_helper->viewRenderer->setNoRender(true);
|
||||||
header("Content-type: text/javascript");
|
header("Content-type: text/javascript");
|
||||||
echo "var general_dict=".json_encode($translations);
|
echo "var general_dict=".$this->_helper->json->encodeJson($translations);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,6 @@ class PageLayoutInitPlugin extends Zend_Controller_Plugin_Abstract
|
||||||
"api",
|
"api",
|
||||||
"auth",
|
"auth",
|
||||||
"error",
|
"error",
|
||||||
"locale",
|
|
||||||
"upgrade",
|
"upgrade",
|
||||||
'whmcs-login',
|
'whmcs-login',
|
||||||
"provisioning",
|
"provisioning",
|
||||||
|
|
|
@ -126,11 +126,11 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
<?php if (isset($this->layout()->parent_page)) { ?>
|
<?php if (isset($this->layout()->parent_page)) { ?>
|
||||||
<div id="sub-menu">
|
<div id="sub-menu">
|
||||||
<h3><?php //parent_page is passed in from controller
|
<h3><?php //parent_page is passed in from controller
|
||||||
echo $this->layout()->parent_page; ?></h3>
|
echo _($this->layout()->parent_page); ?></h3>
|
||||||
<hr>
|
<hr>
|
||||||
<?php
|
<?php
|
||||||
$page = $this->navigation()->findOneBy('title', $this->layout()->parent_page);
|
$page = $this->navigation()->findOneBy('title', $this->layout()->parent_page);
|
||||||
echo $this->navigation()->menu()->renderMenu($page);
|
echo $this->navigation()->menu()->render($page);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class Application_Model_Locale
|
final class Application_Model_Locale
|
||||||
{
|
{
|
||||||
private static $domains = array(
|
private static $domains = array(
|
||||||
'airtime',
|
'airtime',
|
||||||
|
|
|
@ -1,32 +1,32 @@
|
||||||
<ol id="navlist">
|
<ol class="navigation">
|
||||||
<?php foreach ($this->container as $page) : ?>
|
<?php foreach ($this->container as $page) : ?>
|
||||||
<?php if($this->navigation()->accept($page)) : ?>
|
<?php if($this->navigation()->accept($page)) : ?>
|
||||||
<li class="top <?php if($page->isActive(true)){echo 'active';} ?>">
|
<li class="top <?php if($page->isActive(true)){echo 'active';} ?>">
|
||||||
<?php if($page->hasPages()) : ?>
|
<?php if($page->hasPages()) : ?>
|
||||||
<a class="top_link" href="<?php echo $page->getHref(); ?>">
|
<a class="top_link" href="<?php echo $page->getHref(); ?>">
|
||||||
<span class="down"><?php echo _($page->getLabel()); ?></span>
|
<span class="down"><?php echo $page->getClass(); echo _($page->getLabel()); ?></span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="sub">
|
<ul class="sub">
|
||||||
|
|
||||||
<?php foreach ($page->getPages() as $sub) :
|
<?php foreach ($page->getPages() as $sub) :
|
||||||
if($sub->getId() == "manage_folder"){
|
if($sub->getId() == "manage_folder"){
|
||||||
continue;
|
continue;
|
||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
<?php if($this->navigation()->accept($sub)) : ?>
|
<?php if($this->navigation()->accept($sub)) : ?>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo $sub->getHref(); ?>" <?php echo ($sub->getTarget() != "")?"target=\"".$sub->getTarget()."\"":""; ?>><?php echo _($sub->getLabel()); ?></a>
|
<a href="<?php echo $sub->getHref(); ?>" <?php echo ($sub->getTarget() != "")?"target=\"".$sub->getTarget()."\"":""; ?>><?php echo $page->getClass(); echo _($sub->getLabel()); ?></a>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<a class="top_link" href="<?php echo $page->getHref(); ?>">
|
<a class="top_link" href="<?php echo $page->getHref(); ?>">
|
||||||
<span><?php echo _($page->getLabel()); ?></span>
|
<span><?php echo $page->getClass(); echo _($page->getLabel()); ?></span>
|
||||||
</a>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -303,7 +303,7 @@
|
||||||
|
|
||||||
|
|
||||||
.personal-block.solo {
|
.personal-block.solo {
|
||||||
width: 200px;
|
width: 215px;
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -401,7 +401,7 @@ select {
|
||||||
/*top: 0;*/
|
/*top: 0;*/
|
||||||
/*right: 0;*/
|
/*right: 0;*/
|
||||||
}
|
}
|
||||||
#navlist {
|
ol.navigation {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
@ -3810,6 +3810,7 @@ button.btn-icon-text > i.icon-white {
|
||||||
top: 102px;
|
top: 102px;
|
||||||
bottom: 0; /* Account for scrollbars */
|
bottom: 0; /* Account for scrollbars */
|
||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
|
max-width: 160px;
|
||||||
border-right: 1px solid #5b5b5b;
|
border-right: 1px solid #5b5b5b;
|
||||||
background: #242424;
|
background: #242424;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
Loading…
Reference in New Issue