Dynamic language loading

This commit is contained in:
Dennis Eichhorn 2016-07-05 19:00:30 +02:00
parent aef111fa62
commit b386fbe17c
8 changed files with 68 additions and 68 deletions

View File

@ -20,20 +20,20 @@
echo $this->getData('nav')->render(); ?>
<section class="box w-50">
<header><h1><?= $this->l11n->getText('Marketing', 'Event') ?></h1></header>
<header><h1><?= $this->l11n->getText('Marketing', 'Backend', 'Event') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/reporter/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Type') ?></label>
<tr><td colspan="2"><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Backend', 'Type') ?></label>
<tr><td colspan="2"><select></select>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Title'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Title'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Description'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Description'); ?></label>
<tr><td colspan="2"><textarea></textarea>
<tr><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Start') ?></label><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'End') ?></label>
<tr><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Start') ?></label><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Backend', 'End') ?></label>
<tr><td><input type="datetime-local"><td><input type="datetime-local">
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Budget'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Budget'); ?></label>
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
</table>
</form>

View File

@ -23,18 +23,18 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100">
<table class="table">
<caption><?= $this->l11n->getText('Marketing', 'Events') ?></caption>
<caption><?= $this->l11n->getText('Marketing', 'Backend', 'Events') ?></caption>
<thead>
<tr>
<td><?= $this->l11n->getText('Marketing', 'Status'); ?>
<td><?= $this->l11n->getText('Marketing', 'Type'); ?>
<td class="wf-100"><?= $this->l11n->getText('Marketing', 'Title'); ?>
<td><?= $this->l11n->getText('Marketing', 'Start'); ?>
<td><?= $this->l11n->getText('Marketing', 'End'); ?>
<td><?= $this->l11n->getText('Marketing', 'Location'); ?>
<td><?= $this->l11n->getText('Marketing', 'Expenses'); ?>
<td><?= $this->l11n->getText('Marketing', 'Sales'); ?>
<td><?= $this->l11n->getText('Marketing', 'Budget'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Status'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Type'); ?>
<td class="wf-100"><?= $this->l11n->getText('Marketing', 'Backend', 'Title'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Start'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'End'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Location'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Expenses'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Sales'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Budget'); ?>
<tfoot>
<tr>
<td colspan="9"><?= $footerView->render(); ?>
@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="9" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<tr><td colspan="9" class="empty"><?= $this->l11n->getText(0, 'Backend', 'Empty'); ?>
<?php endif; ?>
</table>
</div>

View File

@ -20,24 +20,24 @@
echo $this->getData('nav')->render(); ?>
<section class="box w-50">
<header><h1><?= $this->l11n->getText('Marketing', 'Promotion') ?></h1></header>
<header><h1><?= $this->l11n->getText('Marketing', 'Backend', 'Promotion') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/reporter/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Type') ?></label>
<tr><td colspan="2"><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Backend', 'Type') ?></label>
<tr><td colspan="2"><select></select>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Title'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Title'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Description'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Description'); ?></label>
<tr><td colspan="2"><textarea></textarea>
<tr><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Start'); ?></label><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'End'); ?></label>
<tr><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Start'); ?></label><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Backend', 'End'); ?></label>
<tr><td><input type="datetime-local"><td><input type="datetime-local">
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Budget'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Budget'); ?></label>
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Limit'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Limit'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><input type="submit" value="<?= $this->l11n->getText(0, 'Create') ?>">
<tr><td colspan="2"><input type="submit" value="<?= $this->l11n->getText(0, 'Backend', 'Create') ?>">
</table>
</form>
</div>

View File

@ -23,16 +23,16 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100">
<table class="table">
<caption><?= $this->l11n->getText('Marketing', 'Events') ?></caption>
<caption><?= $this->l11n->getText('Marketing', 'Backend', 'Events') ?></caption>
<thead>
<tr>
<td><?= $this->l11n->getText('Marketing', 'Status'); ?>
<td class="wf-100"><?= $this->l11n->getText('Marketing', 'Title'); ?>
<td><?= $this->l11n->getText('Marketing', 'Start'); ?>
<td><?= $this->l11n->getText('Marketing', 'End'); ?>
<td><?= $this->l11n->getText('Marketing', 'Expenses'); ?>
<td><?= $this->l11n->getText('Marketing', 'Sales'); ?>
<td><?= $this->l11n->getText('Marketing', 'Budget'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Status'); ?>
<td class="wf-100"><?= $this->l11n->getText('Marketing', 'Backend', 'Title'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Start'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'End'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Expenses'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Sales'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Budget'); ?>
<tfoot>
<tr>
<td colspan="7"><?= $footerView->render(); ?>
@ -40,7 +40,7 @@ echo $this->getData('nav')->render(); ?>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="7" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<tr><td colspan="7" class="empty"><?= $this->l11n->getText(0, 'Backend', 'Empty'); ?>
<?php endif; ?>
</table>
</div>

View File

@ -20,20 +20,20 @@
echo $this->getData('nav')->render(); ?>
<section class="box w-50">
<header><h1><?= $this->l11n->getText('Marketing', 'Event') ?></h1></header>
<header><h1><?= $this->l11n->getText('Marketing', 'Backend', 'Event') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/reporter/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Type') ?></label>
<tr><td colspan="2"><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Backend', 'Type') ?></label>
<tr><td colspan="2"><select></select>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Title'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Title'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Description'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Description'); ?></label>
<tr><td colspan="2"><textarea></textarea>
<tr><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Start') ?></label><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'End') ?></label>
<tr><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Start') ?></label><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Backend', 'End') ?></label>
<tr><td><input type="datetime-local"><td><input type="datetime-local">
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Budget'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Budget'); ?></label>
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
</table>
</form>

View File

@ -23,18 +23,18 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100">
<table class="table">
<caption><?= $this->l11n->getText('Marketing', 'Events') ?></caption>
<caption><?= $this->l11n->getText('Marketing', 'Backend', 'Events') ?></caption>
<thead>
<tr>
<td><?= $this->l11n->getText('Marketing', 'Status'); ?>
<td><?= $this->l11n->getText('Marketing', 'Type'); ?>
<td class="wf-100"><?= $this->l11n->getText('Marketing', 'Title'); ?>
<td><?= $this->l11n->getText('Marketing', 'Start'); ?>
<td><?= $this->l11n->getText('Marketing', 'End'); ?>
<td><?= $this->l11n->getText('Marketing', 'Location'); ?>
<td><?= $this->l11n->getText('Marketing', 'Expenses'); ?>
<td><?= $this->l11n->getText('Marketing', 'Sales'); ?>
<td><?= $this->l11n->getText('Marketing', 'Budget'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Status'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Type'); ?>
<td class="wf-100"><?= $this->l11n->getText('Marketing', 'Backend', 'Title'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Start'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'End'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Location'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Expenses'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Sales'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Budget'); ?>
<tfoot>
<tr>
<td colspan="9"><?= $footerView->render(); ?>
@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="9" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<tr><td colspan="9" class="empty"><?= $this->l11n->getText(0, 'Backend', 'Empty'); ?>
<?php endif; ?>
</table>
</div>

View File

@ -20,24 +20,24 @@
echo $this->getData('nav')->render(); ?>
<section class="box w-50">
<header><h1><?= $this->l11n->getText('Marketing', 'Promotion') ?></h1></header>
<header><h1><?= $this->l11n->getText('Marketing', 'Backend', 'Promotion') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/reporter/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Type') ?></label>
<tr><td colspan="2"><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Backend', 'Type') ?></label>
<tr><td colspan="2"><select></select>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Title'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Title'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Description'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Description'); ?></label>
<tr><td colspan="2"><textarea></textarea>
<tr><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Start'); ?></label><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'End'); ?></label>
<tr><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Start'); ?></label><td><label for="iTitle"><?= $this->l11n->getText('Marketing', 'Backend', 'End'); ?></label>
<tr><td><input type="datetime-local"><td><input type="datetime-local">
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Budget'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Budget'); ?></label>
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Limit'); ?></label>
<tr><td colspan="2"><label for="iBudget"><?= $this->l11n->getText('Marketing', 'Backend', 'Limit'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><input type="submit" value="<?= $this->l11n->getText(0, 'Create') ?>">
<tr><td colspan="2"><input type="submit" value="<?= $this->l11n->getText(0, 'Backend', 'Create') ?>">
</table>
</form>
</div>

View File

@ -23,16 +23,16 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100">
<table class="table">
<caption><?= $this->l11n->getText('Marketing', 'Events') ?></caption>
<caption><?= $this->l11n->getText('Marketing', 'Backend', 'Events') ?></caption>
<thead>
<tr>
<td><?= $this->l11n->getText('Marketing', 'Status'); ?>
<td class="wf-100"><?= $this->l11n->getText('Marketing', 'Title'); ?>
<td><?= $this->l11n->getText('Marketing', 'Start'); ?>
<td><?= $this->l11n->getText('Marketing', 'End'); ?>
<td><?= $this->l11n->getText('Marketing', 'Expenses'); ?>
<td><?= $this->l11n->getText('Marketing', 'Sales'); ?>
<td><?= $this->l11n->getText('Marketing', 'Budget'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Status'); ?>
<td class="wf-100"><?= $this->l11n->getText('Marketing', 'Backend', 'Title'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Start'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'End'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Expenses'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Sales'); ?>
<td><?= $this->l11n->getText('Marketing', 'Backend', 'Budget'); ?>
<tfoot>
<tr>
<td colspan="7"><?= $footerView->render(); ?>
@ -40,7 +40,7 @@ echo $this->getData('nav')->render(); ?>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="7" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<tr><td colspan="7" class="empty"><?= $this->l11n->getText(0, 'Backend', 'Empty'); ?>
<?php endif; ?>
</table>
</div>