Language display optimized

Language is now no longer direct array access but provided through a
function. This can be later used to hot load language files instead of
pre-loading them.
This commit is contained in:
Dennis Eichhorn 2016-07-02 14:14:31 +02:00
parent 803c890abf
commit 8f1fc788e5
13 changed files with 143 additions and 143 deletions

View File

@ -1,11 +1,11 @@
<template id="entry-list-tpl"> <template id="entry-list-tpl">
<div id="entry-list" class="box" style="z-index: 99; position: relative; top: 20px; display: block; margin: 0 auto; width: 20%;"> <div id="entry-list" class="box" style="z-index: 99; position: relative; top: 20px; display: block; margin: 0 auto; width: 20%;">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Accounting']['Accounts']; ?></caption> <caption><?= $this->l11n->getText('Accounting', 'Accounts'); ?></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']['Account']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Account'); ?>
<tbody> <tbody>
</table> </table>
</div> </div>

View File

@ -28,10 +28,10 @@ $footerView->setResults(1);
<form> <form>
<table class="layout wf-100"> <table class="layout wf-100">
<tr> <tr>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['Account']; ?></label> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'Account'); ?></label>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['CostCenter']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'CostCenter'); ?>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['CostObject']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'CostObject'); ?>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['EntryDate']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'EntryDate'); ?>
<tr> <tr>
<td><span class="input"><button type="button" id="account-start" formaction="" data-action='[{"type": "popup", "tpl": "entry-list-tpl", "aniIn": "fadeIn", "aniOut": "fadeOut", "stay": 1000}]'><i class="fa fa-book"></i> <td><span class="input"><button type="button" id="account-start" formaction="" data-action='[{"type": "popup", "tpl": "entry-list-tpl", "aniIn": "fadeIn", "aniOut": "fadeOut", "stay": 1000}]'><i class="fa fa-book"></i>
</button><input type="number" id="iId" min="1" name="id" required></span> </button><input type="number" id="iId" min="1" name="id" required></span>
@ -41,10 +41,10 @@ $footerView->setResults(1);
</button><input type="number" id="iId" min="1" name="id" required></span> </button><input type="number" id="iId" min="1" name="id" required></span>
<td><input type="datetime-local" id="iId" min="1" name="id" required> <td><input type="datetime-local" id="iId" min="1" name="id" required>
<tr> <tr>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['To']; ?></label> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'To'); ?></label>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['To']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'To'); ?>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['To']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'To'); ?>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['To']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'To'); ?>
<tr> <tr>
<td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i> <td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i>
</button><input type="number" id="iId" min="1" name="id" required></span> </button><input type="number" id="iId" min="1" name="id" required></span>
@ -54,7 +54,7 @@ $footerView->setResults(1);
</button><input type="number" id="iId" min="1" name="id" required></span> </button><input type="number" id="iId" min="1" name="id" required></span>
<td><input type="datetime-local" id="iId" min="1" name="id" required> <td><input type="datetime-local" id="iId" min="1" name="id" required>
<tr> <tr>
<td colspan="4"><input type="submit" value="<?= $this->l11n->lang[0]['Search'] ?>"> <td colspan="4"><input type="submit" value="<?= $this->l11n->getText(0, 'Search') ?>">
</table> </table>
</form> </form>
</div> </div>
@ -63,31 +63,31 @@ $footerView->setResults(1);
<div class="box w-100"> <div class="box w-100">
<div class="tabular-2"> <div class="tabular-2">
<ul class="tab-links"> <ul class="tab-links">
<li><label for="c-tab2-1"><?= $this->l11n->lang['Accounting']['List']; ?></label></li> <li><label for="c-tab2-1"><?= $this->l11n->getText('Accounting', 'List'); ?></label></li>
<li><label for="c-tab2-2"><?= $this->l11n->lang['Accounting']['Evaluation']; ?></label></li> <li><label for="c-tab2-2"><?= $this->l11n->getText('Accounting', 'Evaluation'); ?></label></li>
<li><label for="c-tab2-3"><?= $this->l11n->lang['Accounting']['Charts']; ?></label></li> <li><label for="c-tab2-3"><?= $this->l11n->getText('Accounting', 'Charts'); ?></label></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<input type="radio" id="c-tab2-1" name="tabular-2" checked> <input type="radio" id="c-tab2-1" name="tabular-2" checked>
<div class="tab"> <div class="tab">
<section class="wf-100"> <section class="wf-100">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Accounting']['Entries'] ?></caption> <caption><?= $this->l11n->getText('Accounting', 'Entries') ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang['Accounting']['EntryDate']; ?> <td><?= $this->l11n->getText('Accounting', 'EntryDate'); ?>
<td><?= $this->l11n->lang['Accounting']['Receipt']; ?> <td><?= $this->l11n->getText('Accounting', 'Receipt'); ?>
<td><?= $this->l11n->lang['Accounting']['Debit']; ?> <td><?= $this->l11n->getText('Accounting', 'Debit'); ?>
<td><?= $this->l11n->lang['Accounting']['Credit']; ?> <td><?= $this->l11n->getText('Accounting', 'Credit'); ?>
<td class="wf-100"><?= $this->l11n->lang['Accounting']['Text']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Text'); ?>
<td><?= $this->l11n->lang['Accounting']['Account']; ?> <td><?= $this->l11n->getText('Accounting', 'Account'); ?>
<td><?= $this->l11n->lang['Accounting']['ContraAccount']; ?> <td><?= $this->l11n->getText('Accounting', 'ContraAccount'); ?>
<td><?= $this->l11n->lang['Accounting']['CostCenter']; ?> <td><?= $this->l11n->getText('Accounting', 'CostCenter'); ?>
<td><?= $this->l11n->lang['Accounting']['CostObject']; ?> <td><?= $this->l11n->getText('Accounting', 'CostObject'); ?>
<td><?= $this->l11n->lang['Accounting']['ReceiptDate']; ?> <td><?= $this->l11n->getText('Accounting', 'ReceiptDate'); ?>
<td><?= $this->l11n->lang['Accounting']['ExternalVoucher']; ?> <td><?= $this->l11n->getText('Accounting', 'ExternalVoucher'); ?>
<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> <tr>
<td colspan="13"><?= $footerView->render(); ?> <td colspan="13"><?= $footerView->render(); ?>
@ -97,7 +97,7 @@ $footerView->setResults(1);
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr> <tr>
<td colspan="13" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <td colspan="13" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</section> </section>
@ -106,55 +106,55 @@ $footerView->setResults(1);
<div class="tab tab-2"> <div class="tab tab-2">
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Accounting']['Accounts'] ?></caption> <caption><?= $this->l11n->getText('Accounting', 'Accounts') ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang['Accounting']['Account']; ?> <td><?= $this->l11n->getText('Accounting', 'Account'); ?>
<td class="wf-100"><?= $this->l11n->lang['Accounting']['Name']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Name'); ?>
<td><?= $this->l11n->lang['Accounting']['Total']; ?> <td><?= $this->l11n->getText('Accounting', 'Total'); ?>
<tbody> <tbody>
<?php $count = 0; <?php $count = 0;
foreach ([] as $key => $value) : $count++; ?> foreach ([] as $key => $value) : $count++; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr> <tr>
<td colspan="13" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <td colspan="13" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</section> </section>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<table class="table floatLeft"> <table class="table floatLeft">
<caption><?= $this->l11n->lang['Accounting']['CostCenter'] ?></caption> <caption><?= $this->l11n->getText('Accounting', 'CostCenter') ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang['Accounting']['CostCenter']; ?> <td><?= $this->l11n->getText('Accounting', 'CostCenter'); ?>
<td class="wf-100"><?= $this->l11n->lang['Accounting']['Name']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Name'); ?>
<td><?= $this->l11n->lang['Accounting']['Total']; ?> <td><?= $this->l11n->getText('Accounting', 'Total'); ?>
<tbody> <tbody>
<?php $count = 0; <?php $count = 0;
foreach ([] as $key => $value) : $count++; ?> foreach ([] as $key => $value) : $count++; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr> <tr>
<td colspan="13" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <td colspan="13" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</section> </section>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Accounting']['CostObject'] ?></caption> <caption><?= $this->l11n->getText('Accounting', 'CostObject') ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang['Accounting']['Account']; ?> <td><?= $this->l11n->getText('Accounting', 'Account'); ?>
<td class="wf-100"><?= $this->l11n->lang['Accounting']['Name']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Name'); ?>
<td><?= $this->l11n->lang['Accounting']['Total']; ?> <td><?= $this->l11n->getText('Accounting', 'Total'); ?>
<tbody> <tbody>
<?php $count = 0; <?php $count = 0;
foreach ([] as $key => $value) : $count++; ?> foreach ([] as $key => $value) : $count++; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr> <tr>
<td colspan="13" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <td colspan="13" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</section> </section>

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,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']['Journal']; ?></caption> <caption><?= $this->l11n->getText('Accounting', 'Journal'); ?></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

@ -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

@ -19,19 +19,19 @@
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']['Stack']; ?></h1></header> <header><h1><?= $this->l11n->getText('Accounting', 'Stack'); ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
<table class="layout wf-100"> <table class="layout wf-100">
<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 id="iName" name="name" type="text"> <tr><td><input id="iName" name="name" type="text">
<tr><td><label for="iType"><?= $this->l11n->lang['Accounting']['Type']; ?></label> <tr><td><label for="iType"><?= $this->l11n->getText('Accounting', 'Type'); ?></label>
<tr><td><select id="iType" name="type"> <tr><td><select id="iType" name="type">
<option value=""><?= $this->l11n->lang['Accounting']['TAccount']; ?> <option value=""><?= $this->l11n->getText('Accounting', 'TAccount'); ?>
<option value=""><?= $this->l11n->lang['Accounting']['Incoming']; ?> <option value=""><?= $this->l11n->getText('Accounting', 'Incoming'); ?>
<option value=""><?= $this->l11n->lang['Accounting']['Outgoing']; ?> <option value=""><?= $this->l11n->getText('Accounting', 'Outgoing'); ?>
</select> </select>
<tr><td><input name="submit" type="submit" value="<?= $this->l11n->lang[0]['Create']; ?>"> <tr><td><input name="submit" 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>

View File

@ -28,10 +28,10 @@ $footerView->setResults(1);
<form> <form>
<table class="layout wf-100"> <table class="layout wf-100">
<tr> <tr>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['Account']; ?></label> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'Account'); ?></label>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['CostCenter']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'CostCenter'); ?>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['CostObject']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'CostObject'); ?>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['EntryDate']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'EntryDate'); ?>
<tr> <tr>
<td><span class="input"><button type="button" id="account-start" formaction="" data-action='[{"type": "popup", "tpl": "entry-list-tpl", "aniIn": "fadeIn", "aniOut": "fadeOut", "stay": 1000}]'><i class="fa fa-book"></i> <td><span class="input"><button type="button" id="account-start" formaction="" data-action='[{"type": "popup", "tpl": "entry-list-tpl", "aniIn": "fadeIn", "aniOut": "fadeOut", "stay": 1000}]'><i class="fa fa-book"></i>
</button><input type="number" id="iId" min="1" name="id" required></span> </button><input type="number" id="iId" min="1" name="id" required></span>
@ -41,10 +41,10 @@ $footerView->setResults(1);
</button><input type="number" id="iId" min="1" name="id" required></span> </button><input type="number" id="iId" min="1" name="id" required></span>
<td><input type="datetime-local" id="iId" min="1" name="id" required> <td><input type="datetime-local" id="iId" min="1" name="id" required>
<tr> <tr>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['To']; ?></label> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'To'); ?></label>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['To']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'To'); ?>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['To']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'To'); ?>
<td><label for="iAccountStart"><?= $this->l11n->lang['Accounting']['To']; ?> <td><label for="iAccountStart"><?= $this->l11n->getText('Accounting', 'To'); ?>
<tr> <tr>
<td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i> <td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i>
</button><input type="number" id="iId" min="1" name="id" required></span> </button><input type="number" id="iId" min="1" name="id" required></span>
@ -54,7 +54,7 @@ $footerView->setResults(1);
</button><input type="number" id="iId" min="1" name="id" required></span> </button><input type="number" id="iId" min="1" name="id" required></span>
<td><input type="datetime-local" id="iId" min="1" name="id" required> <td><input type="datetime-local" id="iId" min="1" name="id" required>
<tr> <tr>
<td colspan="4"><input type="submit" value="<?= $this->l11n->lang[0]['Search'] ?>"> <td colspan="4"><input type="submit" value="<?= $this->l11n->getText(0, 'Search') ?>">
</table> </table>
</form> </form>
</div> </div>
@ -63,31 +63,31 @@ $footerView->setResults(1);
<div class="box w-100"> <div class="box w-100">
<div class="tabular-2"> <div class="tabular-2">
<ul class="tab-links"> <ul class="tab-links">
<li><label for="c-tab2-1"><?= $this->l11n->lang['Accounting']['List']; ?></label></li> <li><label for="c-tab2-1"><?= $this->l11n->getText('Accounting', 'List'); ?></label></li>
<li><label for="c-tab2-2"><?= $this->l11n->lang['Accounting']['Evaluation']; ?></label></li> <li><label for="c-tab2-2"><?= $this->l11n->getText('Accounting', 'Evaluation'); ?></label></li>
<li><label for="c-tab2-3"><?= $this->l11n->lang['Accounting']['Charts']; ?></label></li> <li><label for="c-tab2-3"><?= $this->l11n->getText('Accounting', 'Charts'); ?></label></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<input type="radio" id="c-tab2-1" name="tabular-2" checked> <input type="radio" id="c-tab2-1" name="tabular-2" checked>
<div class="tab"> <div class="tab">
<section class="wf-100"> <section class="wf-100">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Accounting']['Entries'] ?></caption> <caption><?= $this->l11n->getText('Accounting', 'Entries') ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang['Accounting']['EntryDate']; ?> <td><?= $this->l11n->getText('Accounting', 'EntryDate'); ?>
<td><?= $this->l11n->lang['Accounting']['Receipt']; ?> <td><?= $this->l11n->getText('Accounting', 'Receipt'); ?>
<td><?= $this->l11n->lang['Accounting']['Debit']; ?> <td><?= $this->l11n->getText('Accounting', 'Debit'); ?>
<td><?= $this->l11n->lang['Accounting']['Credit']; ?> <td><?= $this->l11n->getText('Accounting', 'Credit'); ?>
<td class="wf-100"><?= $this->l11n->lang['Accounting']['Text']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Text'); ?>
<td><?= $this->l11n->lang['Accounting']['Account']; ?> <td><?= $this->l11n->getText('Accounting', 'Account'); ?>
<td><?= $this->l11n->lang['Accounting']['ContraAccount']; ?> <td><?= $this->l11n->getText('Accounting', 'ContraAccount'); ?>
<td><?= $this->l11n->lang['Accounting']['CostCenter']; ?> <td><?= $this->l11n->getText('Accounting', 'CostCenter'); ?>
<td><?= $this->l11n->lang['Accounting']['CostObject']; ?> <td><?= $this->l11n->getText('Accounting', 'CostObject'); ?>
<td><?= $this->l11n->lang['Accounting']['ReceiptDate']; ?> <td><?= $this->l11n->getText('Accounting', 'ReceiptDate'); ?>
<td><?= $this->l11n->lang['Accounting']['ExternalVoucher']; ?> <td><?= $this->l11n->getText('Accounting', 'ExternalVoucher'); ?>
<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> <tr>
<td colspan="13"><?= $footerView->render(); ?> <td colspan="13"><?= $footerView->render(); ?>
@ -97,7 +97,7 @@ $footerView->setResults(1);
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr> <tr>
<td colspan="13" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <td colspan="13" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</section> </section>
@ -106,55 +106,55 @@ $footerView->setResults(1);
<div class="tab tab-2"> <div class="tab tab-2">
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Accounting']['Accounts'] ?></caption> <caption><?= $this->l11n->getText('Accounting', 'Accounts') ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang['Accounting']['Account']; ?> <td><?= $this->l11n->getText('Accounting', 'Account'); ?>
<td class="wf-100"><?= $this->l11n->lang['Accounting']['Name']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Name'); ?>
<td><?= $this->l11n->lang['Accounting']['Total']; ?> <td><?= $this->l11n->getText('Accounting', 'Total'); ?>
<tbody> <tbody>
<?php $count = 0; <?php $count = 0;
foreach ([] as $key => $value) : $count++; ?> foreach ([] as $key => $value) : $count++; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr> <tr>
<td colspan="13" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <td colspan="13" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</section> </section>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<table class="table floatLeft"> <table class="table floatLeft">
<caption><?= $this->l11n->lang['Accounting']['CostCenter'] ?></caption> <caption><?= $this->l11n->getText('Accounting', 'CostCenter') ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang['Accounting']['CostCenter']; ?> <td><?= $this->l11n->getText('Accounting', 'CostCenter'); ?>
<td class="wf-100"><?= $this->l11n->lang['Accounting']['Name']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Name'); ?>
<td><?= $this->l11n->lang['Accounting']['Total']; ?> <td><?= $this->l11n->getText('Accounting', 'Total'); ?>
<tbody> <tbody>
<?php $count = 0; <?php $count = 0;
foreach ([] as $key => $value) : $count++; ?> foreach ([] as $key => $value) : $count++; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr> <tr>
<td colspan="13" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <td colspan="13" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</section> </section>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Accounting']['CostObject'] ?></caption> <caption><?= $this->l11n->getText('Accounting', 'CostObject') ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang['Accounting']['Account']; ?> <td><?= $this->l11n->getText('Accounting', 'Account'); ?>
<td class="wf-100"><?= $this->l11n->lang['Accounting']['Name']; ?> <td class="wf-100"><?= $this->l11n->getText('Accounting', 'Name'); ?>
<td><?= $this->l11n->lang['Accounting']['Total']; ?> <td><?= $this->l11n->getText('Accounting', 'Total'); ?>
<tbody> <tbody>
<?php $count = 0; <?php $count = 0;
foreach ([] as $key => $value) : $count++; ?> foreach ([] as $key => $value) : $count++; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr> <tr>
<td colspan="13" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <td colspan="13" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</section> </section>

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

@ -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']['Journal']; ?></caption> <caption><?= $this->l11n->getText('Accounting', 'Journal'); ?></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

@ -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

@ -19,19 +19,19 @@
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']['Stack']; ?></h1></header> <header><h1><?= $this->l11n->getText('Accounting', 'Stack'); ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
<table class="layout wf-100"> <table class="layout wf-100">
<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 id="iName" name="name" type="text"> <tr><td><input id="iName" name="name" type="text">
<tr><td><label for="iType"><?= $this->l11n->lang['Accounting']['Type']; ?></label> <tr><td><label for="iType"><?= $this->l11n->getText('Accounting', 'Type'); ?></label>
<tr><td><select id="iType" name="type"> <tr><td><select id="iType" name="type">
<option value=""><?= $this->l11n->lang['Accounting']['TAccount']; ?> <option value=""><?= $this->l11n->getText('Accounting', 'TAccount'); ?>
<option value=""><?= $this->l11n->lang['Accounting']['Incoming']; ?> <option value=""><?= $this->l11n->getText('Accounting', 'Incoming'); ?>
<option value=""><?= $this->l11n->lang['Accounting']['Outgoing']; ?> <option value=""><?= $this->l11n->getText('Accounting', 'Outgoing'); ?>
</select> </select>
<tr><td><input name="submit" type="submit" value="<?= $this->l11n->lang[0]['Create']; ?>"> <tr><td><input name="submit" type="submit" value="<?= $this->l11n->getText(0, 'Create'); ?>">
</table> </table>
</form> </form>
</div> </div>