mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-23 05:40:30 +03:00
don't show locales chooser when no additional packages were installed
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@416 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
59fd9f1fa8
commit
d09e3dddf4
@ -8,7 +8,6 @@ function menuloc($id) {
|
|||||||
}
|
}
|
||||||
function tpl_menu() { global $page, $webimroot, $errors, $current_locale;
|
function tpl_menu() { global $page, $webimroot, $errors, $current_locale;
|
||||||
?>
|
?>
|
||||||
<?php if(isset($page) && isset($page['localeLinks'])) { ?>
|
|
||||||
<li>
|
<li>
|
||||||
<h2><b><?php echo getlocal("lang.choose") ?></b></h2>
|
<h2><b><?php echo getlocal("lang.choose") ?></b></h2>
|
||||||
<ul class="locales">
|
<ul class="locales">
|
||||||
@ -17,8 +16,6 @@ function tpl_menu() { global $page, $webimroot, $errors, $current_locale;
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
@ -12,7 +12,9 @@
|
|||||||
* Evgeny Gryaznov - initial API and implementation
|
* Evgeny Gryaznov - initial API and implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once('inc_locales.php');
|
if(isset($page) && isset($page['localeLinks'])) {
|
||||||
|
require_once('inc_locales.php');
|
||||||
|
}
|
||||||
$page['title'] = getlocal("install.title");
|
$page['title'] = getlocal("install.title");
|
||||||
$page['fixedwrap'] = true;
|
$page['fixedwrap'] = true;
|
||||||
|
|
||||||
|
@ -12,7 +12,9 @@
|
|||||||
* Evgeny Gryaznov - initial API and implementation
|
* Evgeny Gryaznov - initial API and implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once('inc_locales.php');
|
if(isset($page) && isset($page['localeLinks'])) {
|
||||||
|
require_once('inc_locales.php');
|
||||||
|
}
|
||||||
$page['title'] = getlocal("page_login.title");
|
$page['title'] = getlocal("page_login.title");
|
||||||
$page['headertitle'] = getlocal("app.title");
|
$page['headertitle'] = getlocal("app.title");
|
||||||
$page['show_small_login'] = true;
|
$page['show_small_login'] = true;
|
||||||
|
@ -17,10 +17,12 @@ $page['title'] = getlocal("topMenu.admin");
|
|||||||
$page['menuid'] = "main";
|
$page['menuid'] = "main";
|
||||||
|
|
||||||
function tpl_header() { global $page, $webimroot;
|
function tpl_header() { global $page, $webimroot;
|
||||||
|
if(isset($page) && isset($page['localeLinks'])) {
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/jquery-1.3.2.min.js"></script>
|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/jquery-1.3.2.min.js"></script>
|
||||||
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/locale.js"></script>
|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/locale.js"></script>
|
||||||
<?php
|
<?php
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function menuseparator() {
|
function menuseparator() {
|
||||||
@ -103,6 +105,7 @@ if( $page['showadmin'] ) { ?>
|
|||||||
<?php menuseparator(); ?>
|
<?php menuseparator(); ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if(isset($page) && isset($page['localeLinks'])) { ?>
|
||||||
<td class="dashitem">
|
<td class="dashitem">
|
||||||
<img src="/webim/images/dash/locale.gif" alt=""/>
|
<img src="/webim/images/dash/locale.gif" alt=""/>
|
||||||
<a href='#' id="changelang">
|
<a href='#' id="changelang">
|
||||||
@ -110,6 +113,7 @@ if( $page['showadmin'] ) { ?>
|
|||||||
<?php echo getlocal('menu.locale.content') ?>
|
<?php echo getlocal('menu.locale.content') ?>
|
||||||
</td>
|
</td>
|
||||||
<?php menuseparator(); ?>
|
<?php menuseparator(); ?>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<td class="dashitem">
|
<td class="dashitem">
|
||||||
<img src="/webim/images/dash/exit.gif" alt=""/>
|
<img src="/webim/images/dash/exit.gif" alt=""/>
|
||||||
@ -121,6 +125,7 @@ if( $page['showadmin'] ) { ?>
|
|||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<?php if(isset($page) && isset($page['localeLinks'])) { ?>
|
||||||
<div id="dashlocalesPopup">
|
<div id="dashlocalesPopup">
|
||||||
<a href="#" id="dashlocalesPopupClose"><img src="/webim/images/dash/close.gif" alt="X"/></a>
|
<a href="#" id="dashlocalesPopupClose"><img src="/webim/images/dash/close.gif" alt="X"/></a>
|
||||||
<h2><img src="/webim/images/dash/locale.gif" alt=""/>
|
<h2><img src="/webim/images/dash/locale.gif" alt=""/>
|
||||||
@ -132,6 +137,7 @@ if( $page['showadmin'] ) { ?>
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="backgroundPopup"></div>
|
<div id="backgroundPopup"></div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
} /* content */
|
} /* content */
|
||||||
|
Loading…
Reference in New Issue
Block a user