Implement gettext for trials

This commit is contained in:
Karsten Heiken
2011-08-11 03:34:20 +02:00
parent b28b599bb8
commit 80b6e00aeb

View File

@@ -3,39 +3,39 @@
<div id="content"> <div id="content">
<div class="title"> <div class="title">
<h2>Neuen Versuch erstellen</h2> <h2><?= _('Create a new trial') ?></h2>
</div> </div>
<form name="newtrial" method="post" action="<?=site_url('trials/create')?>"> <form name="newtrial" method="post" action="<?=site_url('trials/create')?>">
<div class="box"> <div class="box">
<h3>Erforderliche Angaben zum Versuch</h3> <h3><?= _('Required information') ?></h3>
<ul> <ul>
<li> <li>
<h4>Versuchsbezeichnung <span class="req">*</span></h4> <h4><?= _('Trial name') ?> <span class="req">*</span></h4>
<div> <div>
<input type="text" name="name" class="short text" value="<?=set_value('name')?>"> <input type="text" name="name" class="short text" value="<?=set_value('name')?>">
<?=form_error('name')?> <?=form_error('name')?>
</div> </div>
</li> </li>
<li> <li>
<h4>Beschreibung</h4> <h4><?= _('Description') ?></h4>
<label class="note">Eine Beschreibung ist hilfreich, wenn andere Mitarbeiter an diesem Projekt mitarbeiten möchten.</label> <label class="note"><?= _('A description is useful if you want to share this trial with co-workers.') ?></label>
<div> <div>
<textarea name="description" rows="6" cols="60" class="textarea"><?=set_value('description')?></textarea> <textarea name="description" rows="6" cols="60" class="textarea"><?=set_value('description')?></textarea>
<?=form_error('description')?> <?=form_error('description')?>
</div> </div>
</li> </li>
<li> <li>
<h4>3D-Modell</h4> <h4><?= _('3D model') ?></h4>
<? <?
$defaultmodel = "foo"; $defaultmodel = "foo";
if(isset($defaultmodel)): if(isset($defaultmodel)):
?> ?>
<div class="notice"> <div class="notice">
<strong>Für dieses Projekt ist ein Standardmodell vorhanden.</strong><br /> <strong><?= _('There is a default model set for this project.') ?></strong><br />
Wenn Sie hier eine neue Datei hochladen, wird für diesen Versuch das hier angegebene Modell verwendet. <?= _('If you want to use a different model for this trial, you can upload it here.') ?>
</div> </div>
<? <?
endif; endif;
@@ -50,20 +50,20 @@
<div class="box"> <div class="box">
<h3>Programmspezifische Parameter für die Berechnung</h3> <h3><?= _('Application-specific parameters') ?></h3>
<? <?
$defaultconfig = "foo"; $defaultconfig = "foo";
if(isset($defaultconfig)): if(isset($defaultconfig)):
?> ?>
<div class="notice"> <div class="notice">
<strong>Für dieses Projekt ist eine Standardkonfiguration vorhanden.</strong><br /> <strong><?= _('There is a default configuration set for this project.') ?></strong><br />
Das folgende Formular enthält die Standardparameter. Diese können für diesen Versuch nach Belieben angepasst werden. <br /> <?= _('This form contains the default values. You can adjust them for this trial.') ?><br />
Die Standardkonfiguration wird dabei nicht verändert. <?= _('The default configuration will not be modified.') ?>
</div> </div>
<? <?
endif; endif;
?> ?>
<h4>Programm zur Berechnung</h4> <h4><?= _('Application to use for the computation') ?></h4>
<p> <p>
<? <?
foreach($programs as $program): foreach($programs as $program):
@@ -77,14 +77,14 @@
?> ?>
<div class="program-parameters" id="<?=$program['id']?>-params" style="display:none"> <div class="program-parameters" id="<?=$program['id']?>-params" style="display:none">
<h4>Parameter für <?=$program['name']?></h4> <h4><?= sprintf(_('Parameters for %s'), $program['name'])?></h4>
<p> <p>
<table> <table>
<thead> <thead>
<tr> <tr>
<th scope="col" width="40%">Parameter</th> <th scope="col" width="40%"><?= _('Parameter') ?></th>
<th scope="col" width="40%">Wert</th> <th scope="col" width="40%"><?= _('Value') ?></th>
<th scope="col">Einheit</th> <th scope="col"><?= _('Unit') ?></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@@ -107,7 +107,7 @@
endforeach; endforeach;
?> ?>
<p> <p>
<a class="button save-big big" href="#" onclick="document.forms.newtrial.submit();return false">Speichern</a> <a class="button save-big big" href="#" onclick="document.forms.newtrial.submit();return false"><?= _('Save') ?></a>
</p> </p>
</div> </div>
</form> </form>