Implement gettext for projects

This commit is contained in:
Karsten Heiken
2011-08-11 03:22:55 +02:00
parent 4f0c8bfa06
commit e4d2372001
2 changed files with 27 additions and 64 deletions

View File

@@ -3,21 +3,21 @@
<div id="content"> <div id="content">
<div class="title"> <div class="title">
<h2>Projektinformationen</h2> <h2><?= _('Project details') ?></h2>
</div> </div>
<div class="box"> <div class="box">
<h3>Beschreibung</h3> <h3><?= _('Description') ?></h3>
<div class="editInPlace"><?=nl2br($project['description']);?></div> <div class="editInPlace"><?=nl2br($project['description']);?></div>
<p></p> <p></p>
<h3>Versuche</h3> <h3><?= _('Trials') ?></h3>
<table class="tableList"> <table class="tableList">
<thead> <thead>
<tr> <tr>
<th scope="col">Versuch</th> <th scope="col"><?= _('Trial') ?></th>
<th scope="col">Berechnungen</th> <th scope="col"><?= _('Jobs') ?></th>
<th scope="col">Aktionen</th> <th scope="col"><?= _('Actions') ?></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@@ -26,19 +26,19 @@
foreach($trials as $trial): foreach($trials as $trial):
?> ?>
<tr> <tr>
<td><a href="<?=site_url('trials/'.$trial['id'])?>"title="Versuch &quot;<?=$trial['name']?>&quot; anzeigen"><?=$trial['name']?></a></td> <td><a href="<?=site_url('trials/'.$trial['id'])?>"title="<?= sprintf(_('Show trial &quot;%s&quot'), $trial['name'])?>"><?=$trial['name']?></a></td>
<td><span class="active">Erfolgreich abgeschlossen</span></td> <td><span class="active"><?= _('Completed') ?></span></td>
<td> <td>
<a href="<?=site_url('trials/results/'.$trial['id'])?>" title="Ergebnisse zum Versuch &quot;<?=$trial['name']?>&quot; anzeigen">Ergebnisse anzeigen</a> | <a href="<?=site_url('trials/results/'.$trial['id'])?>" title="<?= sprintf(_('Show results for the trial &quot;%s&quot'), $trial['name'])?>"><?= _('Show results') ?></a> |
<a href="<?=site_url('trials/edit/'.$trial['id'])?>" title="Versuch &quot;<?=$trial['name']?>&quot; bearbeiten">Bearbeiten</a> | <a href="<?=site_url('trials/edit/'.$trial['id'])?>" title="<?= sprintf(_('Edit trial &quot;%s&quot;'), $trial['name']) ?>"><?= _('Edit') ?></a> |
<a href="<?=site_url('trials/delete/'.$trial['id'])?>" title="Versuch &quot;<?=$trial['name']?>&quot; entfernen">Entfernen</a></td> <a href="<?=site_url('trials/delete/'.$trial['id'])?>" title="<?= sprintf(_('Delete trial &quot;%s&quot;'), $trial['name']) ?>"><?= _('Delete') ?></a></td>
</tr> </tr>
<? <?
endforeach; endforeach;
else: else:
?> ?>
<tr> <tr>
<td colspan="3">Keine Versuche vorhanden.</td> <td colspan="3"><?= _('No trials available.') ?></td>
</tr> </tr>
<? <?
endif; endif;
@@ -46,20 +46,20 @@
</tbody> </tbody>
</table> </table>
<p><a class="button add" href="<?=site_url('trials/create/'.$project['id'])?>">Neuen Versuch erstellen</a> <p><a class="button add" href="<?=site_url('trials/create/'.$project['id'])?>"><?= _('Create a new trial') ?></a>
</div> </div>
<div class="title"> <div class="title">
<h2>Letzte Berechnungen</h2> <h2><?= _('Recent jobs') ?></h2>
</div> </div>
<div class="box"> <div class="box">
<table class="tableList"> <table class="tableList">
<thead> <thead>
<tr> <tr>
<th scope="col">Versuch</th> <th scope="col"><?= _('Trial') ?></th>
<th scope="col">Fertiggestellt</th> <th scope="col"><?= _('Finished') ?></th>
<th scope="col">Aktionen</th> <th scope="col"><?= _('Actions') ?></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@@ -71,15 +71,15 @@
<td>Versuchsname</td> <td>Versuchsname</td>
<td>Heute, 09:32</td> <td>Heute, 09:32</td>
<td> <td>
<a href="<?=site_url('trials/results/'.$trial['id'])?>" title="Ergebnisse zum Versuch &quot;<?=$trial['name']?>&quot; anzeigen">Ergebnisse anzeigen</a> | <a href="<?=site_url('trials/results/'.$trial['id'])?>" title="<?= sprintf(_('Show results for the trial &quot;%s&quot'), $trial['name'])?>"><?= _('Show results') ?></a> |
<a href="<?=site_url('trials/edit/'.$trial['id'])?>" title="Versuch &quot;<?=$trial['name']?>&quot; bearbeiten">Bearbeiten</a></td> <a href="<?=site_url('trials/edit/'.$trial['id'])?>" title="<?= sprintf(_('Edit trial &quot;%s&quot;'), $trial['name']) ?>"><?= _('Edit') ?></td>
</tr> </tr>
<? <?
endforeach; endforeach;
else: else:
?> ?>
<tr> <tr>
<td colspan="3">Es wurden noch keine Berechnungen durchgeführt.</td> <td colspan="3"><?= _('No jobs found.') ?></td>
</tr> </tr>
<? <?
endif; endif;

View File

@@ -3,18 +3,17 @@
<div id="content"> <div id="content">
<div class="title"> <div class="title">
<h2>Projektübersicht</h2> <h2><?= _('Project overview') ?></h2>
</div> </div>
<div class="box"> <div class="box">
<h3>Übersicht aller Projekte</h3>
<table class="tableList paginated sortable"> <table class="tableList paginated sortable">
<thead> <thead>
<tr> <tr>
<th scope="col">Projekt</th> <th scope="col"><?= _('Project') ?></th>
<th scope="col">Besitzer</th> <th scope="col"><?= _('Owner') ?></th>
<th scope="col">Berechnungen</th> <th scope="col"><?= _('Jobs') ?></th>
<th scope="col">Aktion</th> <th scope="col"><?= _('Actions') ?></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@@ -24,49 +23,13 @@ foreach($projects as $project):
<tr> <tr>
<td><a href="<?=site_url('projects/detail/' . $project['id'])?>"><abbr title="<?=$project['description']?>"><?=$project['name']?></abbr></a></td> <td><a href="<?=site_url('projects/detail/' . $project['id'])?>"><abbr title="<?=$project['description']?>"><?=$project['name']?></abbr></a></td>
<td><?=$project['firstname'] . " " . $project['lastname']?></td> <td><?=$project['firstname'] . " " . $project['lastname']?></td>
<td><span class="active">Erfolgreich abgeschlossen</span></td> <td><span class="active"><?= _('Successfully finished') ?></span></td>
<td><a href="#">Ergebnisse anzeigen</a> | <?=anchor('projects/delete/' . $project['id'], "Entfernen");?> <td><a href="#"><?= _('Show results') ?></a> | <?=anchor('projects/delete/' . $project['id'], _('Delete'));?>
</td> </td>
</tr> </tr>
<?php <?php
endforeach; endforeach;
?> ?>
<tr>
<td><a href="#"><abbr title="Beschreibung des Projekts">Blutkörperchen</abbr></a></td>
<td>Karsten Heiken</td>
<td><span class="closed">Fehlgeschlagen</span></td>
<td><a href="#">Fehlerbericht</a> | <a href="#">Entfernen</a></td>
</tr>
<tr>
<td><a href="#"><abbr title="Beschreibung des Projekts">Blutkörperchen</abbr></a></td>
<td>Karsten Heiken</td>
<td><span class="pending">Berechnung im Gange: 20%</span></td>
<td><a href="#">Anhalten</a> | <a href="#">Entfernen</a></td>
</tr>
<tr>
<td><a href="#"><abbr title="Beschreibung des Projekts">Blutkörperchen</abbr></a></td>
<td>Karsten Heiken</td>
<td><span class="pending">Berechnung im Gange: 60%</span></td>
<td><a href="#">Anhalten</a> | <a href="#">Entfernen</a></td>
</tr>
<tr>
<td><a href="#"><abbr title="Beschreibung des Projekts">Blutkörperchen</abbr></a></td>
<td>Karsten Heiken</td>
<td><span class="pending">Berechnung im Gange: 0%</span></td>
<td><a href="#">Anhalten</a> | <a href="#">Entfernen</a></td>
</tr>
<tr>
<td><a href="#"><abbr title="Beschreibung des Projekts">Blutkörperchen</abbr></a></td>
<td>Karsten Heiken</td>
<td><span class="closed">Fehlgeschlagen</span></td>
<td><a href="#">Fehlerbericht</a> | <a href="#">Entfernen</a></td>
</tr>
<tr>
<td><a href="#"><abbr title="Beschreibung des Projekts">Blutkörperchen</abbr></a></td>
<td>Karsten Heiken</td>
<td><span class="closed">Fehlgeschlagen</span></td>
<td><a href="#">Fehlerbericht</a> | <a href="#">Entfernen</a></td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>