mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-23 23:08:42 +00:00
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:
parent
1550be1ef6
commit
8463fe1aae
|
|
@ -30,9 +30,9 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="box w-100">
|
||||
<div class="tabular">
|
||||
<ul class="tab-links">
|
||||
<li><label for="c-tab-1"><?= $this->l11n->lang['Editor']['Start'] ?></label>
|
||||
<li><label for="c-tab-2"><?= $this->l11n->lang['Editor']['Insert'] ?></label>
|
||||
<li><label for="c-tab-3"><?= $this->l11n->lang['Editor']['Layout'] ?></label>
|
||||
<li><label for="c-tab-1"><?= $this->l11n->getText('Editor', 'Start') ?></label>
|
||||
<li><label for="c-tab-2"><?= $this->l11n->getText('Editor', 'Insert') ?></label>
|
||||
<li><label for="c-tab-3"><?= $this->l11n->getText('Editor', 'Layout') ?></label>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<input type="radio" id="c-tab-1" name="tabular-1" checked>
|
||||
|
|
@ -89,8 +89,8 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="box w-100">
|
||||
<div class="tabular">
|
||||
<ul class="tab-links">
|
||||
<li><label for="c-tab2-1"><?= $this->l11n->lang['Editor']['Text'] ?></label>
|
||||
<li><label for="c-tab2-2"><?= $this->l11n->lang['Editor']['Preview'] ?></label>
|
||||
<li><label for="c-tab2-1"><?= $this->l11n->getText('Editor', 'Text') ?></label>
|
||||
<li><label for="c-tab2-2"><?= $this->l11n->getText('Editor', 'Preview') ?></label>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<input type="radio" id="c-tab2-1" name="tabular-2" checked>
|
||||
|
|
@ -108,12 +108,12 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout">
|
||||
<tr><td colspan="2"><label><?= $this->l11n->lang['Editor']['Permission'] ?></label>
|
||||
<tr><td colspan="2"><label><?= $this->l11n->getText('Editor', 'Permission') ?></label>
|
||||
<tr><td><select>
|
||||
<option>
|
||||
</select>
|
||||
<tr><td colspan="2"><label><?= $this->l11n->lang['Editor']['GroupUser'] ?></label>
|
||||
<tr><td><input id="iPermission" name="group" type="text" placeholder=""><td><button><?= $this->l11n->lang[0]['Add'] ?></button>
|
||||
<tr><td colspan="2"><label><?= $this->l11n->getText('Editor', 'GroupUser') ?></label>
|
||||
<tr><td><input id="iPermission" name="group" type="text" placeholder=""><td><button><?= $this->l11n->getText(0, 'Add') ?></button>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -25,12 +25,12 @@ $footerView->setPage(1);
|
|||
echo $this->getData('nav')->render(); ?>
|
||||
<div class="box">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Editor']['Documents']; ?></caption>
|
||||
<caption><?= $this->l11n->getText('Editor', 'Documents'); ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="wf-100"><?= $this->l11n->lang['Editor']['Name']; ?>
|
||||
<td><?= $this->l11n->lang['Editor']['Creator']; ?>
|
||||
<td><?= $this->l11n->lang['Editor']['Created']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('Editor', 'Name'); ?>
|
||||
<td><?= $this->l11n->getText('Editor', 'Creator'); ?>
|
||||
<td><?= $this->l11n->getText('Editor', 'Created'); ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3"><?= $footerView->render(); ?>
|
||||
|
|
@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count === 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; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -25,12 +25,12 @@ $footerView->setPage(1);
|
|||
echo $this->getData('nav')->render(); ?>
|
||||
<div class="box">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Editor']['Documents']; ?></caption>
|
||||
<caption><?= $this->l11n->getText('Editor', 'Documents'); ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="wf-100"><?= $this->l11n->lang['Editor']['Name']; ?>
|
||||
<td><?= $this->l11n->lang['Editor']['Creator']; ?>
|
||||
<td><?= $this->l11n->lang['Editor']['Created']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('Editor', 'Name'); ?>
|
||||
<td><?= $this->l11n->getText('Editor', 'Creator'); ?>
|
||||
<td><?= $this->l11n->getText('Editor', 'Created'); ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3"><?= $footerView->render(); ?>
|
||||
|
|
@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count === 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; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user