Implement gettext for header, footer and dashboard
This commit is contained in:
@@ -3,25 +3,25 @@
|
|||||||
<div id="content">
|
<div id="content">
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h2><?=lang('dashboard');?></h2>
|
<h2><?=_('Dashboard');?></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h3><?=lang('projects');?></h3>
|
<h3><?=_('Projects');?></h3>
|
||||||
<p>
|
<p>
|
||||||
<a class="button left big" href="projects/create"><?=lang('projects_create');?></a><a class="button middle big" href="projects"><?=lang('projects_manage');?></a><a class="button right big" href="#"><?=lang('projects_search');?></a>
|
<a class="button left big" href="projects/create"><?=_('Create a project');?></a><a class="button middle big" href="projects"><?=_('Show projects');?></a><a class="button right big" href="#"><?=_('Search projects');?></a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h3><?=lang('calculations');?></h3>
|
<h3><?=_('Calculations');?></h3>
|
||||||
<p>
|
<p>
|
||||||
<a class="button left big" href="#"><?=lang('newest_results');?></a><a class="button middle big" href="#"><?=lang('calculations_running');?></a>
|
<a class="button left big" href="#"><?=_('Newest results');?></a><a class="button middle big" href="#"><?=_('Running calculations');?></a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h3><?=lang('administration');?></h3>
|
<h3><?_('Administration');?></h3>
|
||||||
<p>
|
<p>
|
||||||
<a class="button left big" href="#"><?=lang('servers_manage');?></a><a class="button middle big" href="#"><?=lang('programs_manage');?></a><a class="button right big" href="<?=site_url('users');?>"><?=lang('users_manage');?></a>
|
<a class="button left big" href="#"><?=_('Manage servers');?></a><a class="button middle big" href="#"><?=_('Manage applications');?></a><a class="button right big" href="<?=site_url('users');?>"><?=_('Manage users');?></a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
<?
|
<?
|
||||||
if($this->session->userdata('group') == 'admins'):
|
if($this->session->userdata('group') == 'admins'):
|
||||||
?>
|
?>
|
||||||
<span class="left"><strong>Administration - </strong>
|
<span class="left"><strong><?=_('Administration')?> - </strong>
|
||||||
<a href="<?=site_url('admin/settings')?>">Globale Einstellungen</a> |
|
<a href="<?=site_url('admin/settings')?>"><?=_('Global settings')?></a> |
|
||||||
<a href="<?=site_url('admin/servers')?>">Berechnungsserver verwalten</a> |
|
<a href="<?=site_url('admin/servers')?>"><?=_('Manage calculation servers')?></a> |
|
||||||
<a href="<?=site_url('admin/users')?>">Benutzer verwalten</a> |
|
<a href="<?=site_url('admin/users')?>"><?=_('Manage users')?></a> |
|
||||||
<a href="<?=site_url('admin/programs')?>">Programme verwalten</a>
|
<a href="<?=site_url('admin/programs')?>"><?=_('Manage applications')?></a>
|
||||||
</span>
|
</span>
|
||||||
<?
|
<?
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
|
||||||
<title>ScattPort | Dashboard</title>
|
<title>ScattPort | <?=_('Dashboard')?></title>
|
||||||
|
|
||||||
<?=link_tag('assets/css/style.css');?>
|
<?=link_tag('assets/css/style.css');?>
|
||||||
<?=link_tag('assets/css/table.css');?>
|
<?=link_tag('assets/css/table.css');?>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
<option value="<?=site_url('projects');?>">Projekte verwalten</option>
|
<option value="<?=site_url('projects');?>">Projekte verwalten</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu">Hallo <a href="<?=site_url('');?>"><?=$this->user->profile()->firstname;?> <?=$this->user->profile()->lastname;?></a>! | <?=lang_select('assets/images');?> | <a href="#">Hilfe</a> | <?=anchor('settings', "Einstellungen");?> | <?=anchor('auth/logout', "Logout");?></div>
|
<div class="menu"><?= _('Hello,') ?> <a href="<?=site_url('');?>"><?=$this->user->profile()->firstname;?> <?=$this->user->profile()->lastname;?></a>! | <?=lang_select('assets/images');?> | <a href="#"><?=_('Help')?></a> | <?=anchor('settings', _('Settings'));?> | <?=anchor('auth/logout', _('Logout'));?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h2>Aktionen</h2>
|
<h2><?=_('Actions')?></h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="navigation">
|
<div class="navigation">
|
||||||
<ul>
|
<ul>
|
||||||
@@ -44,30 +44,30 @@
|
|||||||
if($this->session->userdata('active_project')):
|
if($this->session->userdata('active_project')):
|
||||||
$active_project = $this->project->getById($this->session->userdata('active_project'));
|
$active_project = $this->project->getById($this->session->userdata('active_project'));
|
||||||
?>
|
?>
|
||||||
<li>Projekt <?=$active_project['name']?>
|
<li><?=_('Project')?> <?=$active_project['name']?>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="<?=site_url('projects/detail'.$active_project['id'])?>" title="Projektübersicht öffnen">Übersicht</a></li>
|
<li><a href="<?=site_url('projects/detail'.$active_project['id'])?>" title="<?=_('Show overview')?>"><?=_('Overview')?></a></li>
|
||||||
<li><a href="<?=site_url('trials/create'.$active_project['id'])?>" title="Neuen Versuch für das Projekt "<?=$active_project['name']?>" anlegen">Neuer Versuch</a></li>
|
<li><a href="<?=site_url('trials/create'.$active_project['id'])?>" title="<?=sprintf(_('Create a new trial for the project "%s"'), $active_project['name'])?>"><?=_('New trial')?></a></li>
|
||||||
<li><a href="<?=site_url('results/project'.$active_project['id'])?>" title="Alle Ergebnisse für das Projekt "<?=$active_project['name']?>" öffnen">Ergebnisse</a></li>
|
<li><a href="<?=site_url('results/project'.$active_project['id'])?>" title="Show results for the project "%s"'), $active_project['name'])?>"><?=_('New trial')?></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<?
|
<?
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<li>Global
|
<li><?=_('Global')?>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="<?=site_url('projects/create')?>" title="Neues Projekt anlegen">Neues Projekt</a></li>
|
<li><a href="<?=site_url('projects/create')?>" title="<?=_('Create a new project')?>"><?=_('New project')?></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h2><a href="<?=site_url('projects')?>" title="Alle Projekte anzeigen">Projekte</a></h2>
|
<h2><a href="<?=site_url('projects')?>" title="<?=_('Show all projects')?>"><?=_('Projects')?></a></h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="navigation">
|
<div class="navigation">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#">Eigene Projekte</a>
|
<li><a href="#"><?=_('Own projects')?></a>
|
||||||
<ul>
|
<ul>
|
||||||
<?
|
<?
|
||||||
$projects = $this->project->getOwn();
|
$projects = $this->project->getOwn();
|
||||||
@@ -79,12 +79,12 @@
|
|||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#">Freigegebene Projekte</a>
|
<li><a href="#"><?=_('Projects shared with me')?></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#">Prisma</a></li>
|
<li><a href="#">Prisma</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#">Öffentliche Projekte</a>
|
<li><a href="#"><?=_('Public projects')?></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#">Beispielprojekt</a></li>
|
<li><a href="#">Beispielprojekt</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h2>Suche</h2>
|
<h2><?=_('Search')?></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
@@ -104,14 +104,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h2>Ereignisse</h2>
|
<h2><?=_('Recent events')?></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<ul id="blog">
|
<ul id="blog">
|
||||||
<li><h4><a href="#" title="Berechnung fertig">Berechnung fertig</a> <abbr title="22.07.2011">22.07.2011</abbr></h4><p>Berechnung für "Gerstenkorn" erfolgreich beendet.</i></p></li>
|
<li><h4><a href="#" title="<?=_('Calculation done')?>"><?=_('Calculation done')?></a> <abbr title="22.07.2011">22.07.2011</abbr></h4><p><?=sprintf(_('Calculation successfully finished for project "%s"'), 'Gerstenkorn')?></i></p></li>
|
||||||
<li><h4><a href="#" title="Berechnung fertig">Berechnung fertig</a> <abbr title="22.07.2011">22.07.2011</abbr></h4><p>Berechnung für "Gerstenkorn" erfolgreich beendet.</i></p></li>
|
<li><h4><a href="#" title="<?=_('Calculation done')?>"><?=_('Calculation done')?></a> <abbr title="22.07.2011">22.07.2011</abbr></h4><p><?=sprintf(_('Calculation successfully finished for project "%s"'), 'Gerstenkorn')?></i></p></li>
|
||||||
<li><h4><a href="#" title="Berechnung fertig">Berechnung fertig</a> <abbr title="22.07.2011">22.07.2011</abbr></h4><p>Berechnung für "Gerstenkorn" erfolgreich beendet.</i></p></li>
|
<li><h4><a href="#" title="<?=_('Calculation done')?>"><?=_('Calculation done')?></a> <abbr title="22.07.2011">22.07.2011</abbr></h4><p><?=sprintf(_('Calculation successfully finished for project "%s"'), 'Gerstenkorn')?></i></p></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user