Language display optimized

see previous commit
This commit is contained in:
Dennis Eichhorn 2016-07-02 14:15:02 +02:00
parent 8f1fc788e5
commit 06ec82deff
4 changed files with 22 additions and 22 deletions

View File

@ -28,11 +28,11 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="box w-100">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Accounting']['GL']; ?></caption> <caption><?= $this->l11n->getText('Accounting', 'GL'); ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang[0]['ID']; ?> <td><?= $this->l11n->getText(0, 'ID'); ?>
<td class="wf-100"><?= $this->l11n->lang['Accounting']['Name']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Name'); ?>
<tfoot> <tfoot>
<tr><td colspan="5"><?= $footerView->render(); ?> <tr><td colspan="5"><?= $footerView->render(); ?>
<tbody> <tbody>
@ -46,7 +46,7 @@ echo $this->getData('nav')->render(); ?>
<td> <td>
<?php endforeach; ?> <?php endforeach; ?>
<?php if($c === 0) : ?> <?php if($c === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <tr><td colspan="5" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</div> </div>

View File

@ -16,17 +16,17 @@
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<section class="box w-50"> <section class="box w-50">
<header><h1><?= $this->l11n->lang['Accounting']['GL']; ?></h1></header> <header><h1><?= $this->l11n->getText('Accounting', 'GL'); ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
<table class="layout wf-100"> <table class="layout wf-100">
<tr><td><label for="iId"><?= $this->l11n->lang[0]['ID']; ?></label> <tr><td><label for="iId"><?= $this->l11n->getText(0, 'ID'); ?></label>
<tr><td><input type="text" id="iId" name="id"> <tr><td><input type="text" id="iId" name="id">
<tr><td><label for="iName"><?= $this->l11n->lang['Accounting']['Name']; ?></label> <tr><td><label for="iName"><?= $this->l11n->getText('Accounting', 'Name'); ?></label>
<tr><td><input type="text" id="iName" name="name"> <tr><td><input type="text" id="iName" name="name">
<tr><td><label for="iParent"><?= $this->l11n->lang['Accounting']['Parent']; ?></label> <tr><td><label for="iParent"><?= $this->l11n->getText('Accounting', 'Parent'); ?></label>
<tr><td><input type="text" id="iParent" name="parent"> <tr><td><input type="text" id="iParent" name="parent">
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Create']; ?>"> <tr><td><input type="submit" value="<?= $this->l11n->getText(0, 'Create'); ?>">
</table> </table>
</form> </form>
</div> </div>

View File

@ -28,13 +28,13 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="box w-100">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Accounting']['BatchPostings']; ?></caption> <caption><?= $this->l11n->getText('Accounting', 'BatchPostings'); ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang[0]['ID']; ?> <td><?= $this->l11n->getText(0, 'ID'); ?>
<td class="wf-100"><?= $this->l11n->lang['Accounting']['Name']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Name'); ?>
<td><?= $this->l11n->lang['Accounting']['Creator']; ?> <td><?= $this->l11n->getText('Accounting', 'Creator'); ?>
<td><?= $this->l11n->lang['Accounting']['Created']; ?> <td><?= $this->l11n->getText('Accounting', 'Created'); ?>
<tfoot> <tfoot>
<tr><td colspan="5"><?= $footerView->render(); ?> <tr><td colspan="5"><?= $footerView->render(); ?>
<tbody> <tbody>
@ -48,7 +48,7 @@ echo $this->getData('nav')->render(); ?>
<td> <td>
<?php endforeach; ?> <?php endforeach; ?>
<?php if($c === 0) : ?> <?php if($c === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <tr><td colspan="5" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</div> </div>

View File

@ -28,14 +28,14 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="box w-100">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Accounting']['BatchPostings']; ?></caption> <caption><?= $this->l11n->getText('Accounting', 'BatchPostings'); ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang[0]['ID']; ?> <td><?= $this->l11n->getText(0, 'ID'); ?>
<td><?= $this->l11n->lang['Accounting']['Due']; ?> <td><?= $this->l11n->getText('Accounting', 'Due'); ?>
<td class="wf-100"><?= $this->l11n->lang['Accounting']['Name']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Name'); ?>
<td><?= $this->l11n->lang['Accounting']['Creator']; ?> <td><?= $this->l11n->getText('Accounting', 'Creator'); ?>
<td><?= $this->l11n->lang['Accounting']['Created']; ?> <td><?= $this->l11n->getText('Accounting', 'Created'); ?>
<tfoot> <tfoot>
<tr><td colspan="5"><?= $footerView->render(); ?> <tr><td colspan="5"><?= $footerView->render(); ?>
<tbody> <tbody>
@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?>
<td> <td>
<?php endforeach; ?> <?php endforeach; ?>
<?php if($c === 0) : ?> <?php if($c === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <tr><td colspan="5" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</div> </div>