translating the menu

This commit is contained in:
Claude 2013-04-14 14:09:22 +02:00
parent a8c067b42f
commit fc3f2b2feb
2 changed files with 15 additions and 7 deletions

View File

@ -26,4 +26,12 @@ $lang['exp_1d'] = '1 Day';
$lang['exp_1w'] = '1 Week';
$lang['exp_4w'] = '4 Weeks';
$lang['paste_create'] = 'Create';
$lang['menu_create'] = 'Create';
$lang['menu_create_title'] = 'Create A New Paste';
$lang['menu_recent'] = 'Recent';
$lang['menu_recent_title'] = 'Recent Pastes';
$lang['menu_trending'] = 'Trending';
$lang['menu_trending_title'] = 'Trending Pastes';
$lang['menu_api'] = 'API';
$lang['menu_about'] = 'About';

View File

@ -50,17 +50,17 @@ $this->carabiner->display('css');
<h1><a href="<?php echo base_url(); ?>" class="title"><?php echo $this->config->item('site_name'); ?></a></h1>
<ul class="tabs">
<?php $l = $this->uri->segment(1)?>
<li><a <?php if($l == ""){ echo 'class="active"'; }?> href="<?php echo base_url()?>" title="Create A New Paste">Create</a></li>
<li><a <?php if($l == ""){ echo 'class="active"'; }?> href="<?php echo base_url()?>" title="<?php echo lang('menu_create_title'); ?>"><?php echo lang('menu_create'); ?></a></li>
<?php if(! $this->config->item('private_only')){ ?>
<li><a <?php if($l == "lists"){ echo 'class="active"'; }?> href="<?php echo site_url('lists'); ?>" title="Recent Pastes">Recent</a></li>
<li><a <?php if($l == "trends"){ echo 'class="active"'; }?> href="<?php echo site_url('trends'); ?>" title="Trending Pastes">Trending</a></li>
<li><a <?php if($l == "lists"){ echo 'class="active"'; }?> href="<?php echo site_url('lists'); ?>" title="<?php echo lang('menu_recent_title'); ?>"><?php echo lang('menu_recent'); ?></a></li>
<li><a <?php if($l == "trends"){ echo 'class="active"'; }?> href="<?php echo site_url('trends'); ?>" title="<?php echo lang('menu_trending_title'); ?>"><?php echo lang('menu_trending'); ?></a></li>
<?php } ?>
<li><a <?php if($l == "api"){ echo 'class="active"'; }?> href="<?php echo site_url('api'); ?>" title="API">API</a></li>
<li><a <?php if($l == "about"){ echo 'class="active"'; }?> href="<?php echo site_url('about'); ?>" title="About">About</a></li>
<li><a <?php if($l == "api"){ echo 'class="active"'; }?> href="<?php echo site_url('api'); ?>" title="<?php echo lang('menu_api'); ?>"><?php echo lang('menu_api'); ?></a></li>
<li><a <?php if($l == "about"){ echo 'class="active"'; }?> href="<?php echo site_url('about'); ?>" title="<?php echo lang('menu_about'); ?>"><?php echo lang('menu_about'); ?></a></li>
<?php
if ($this->config->item('require_auth') ){
if ($this->auth_ldap->is_authenticated()){
echo "<li><a href=" . site_url('auth/logout') . ' title="Logout">Logout</a></li>';
echo "<li><a href=" . site_url('auth/logout') . ' title="' . lang('menu_logout') . '">' . lang('menu_logout') . '</a></li>';
}
}
?>
@ -75,4 +75,4 @@ $this->carabiner->display('css');
<?php echo $status_message; ?>
</div>
</div>
<?php }?>
<?php }?>