mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-01-22 16:48:40 +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
da9b311d5e
commit
c05f5e0a21
|
|
@ -29,15 +29,15 @@ echo $this->getData('nav')->render(); ?>
|
|||
<section class="wf-75 floatLeft">
|
||||
<div class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['RiskManagement']['TopRisks']; ?></caption>
|
||||
<caption><?= $this->l11n->getText('RiskManagement', 'TopRisks'); ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang['RiskManagement']['Severity']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['RiskManagement']['Name']; ?>
|
||||
<td><?= $this->l11n->lang['RiskManagement']['Department']; ?>
|
||||
<td><?= $this->l11n->lang['RiskManagement']['Category']; ?>
|
||||
<td><?= $this->l11n->lang['RiskManagement']['Process']; ?>
|
||||
<td><?= $this->l11n->lang['RiskManagement']['Project']; ?>
|
||||
<td><?= $this->l11n->getText('RiskManagement', 'Severity'); ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('RiskManagement', 'Name'); ?>
|
||||
<td><?= $this->l11n->getText('RiskManagement', 'Department'); ?>
|
||||
<td><?= $this->l11n->getText('RiskManagement', 'Category'); ?>
|
||||
<td><?= $this->l11n->getText('RiskManagement', 'Process'); ?>
|
||||
<td><?= $this->l11n->getText('RiskManagement', 'Project'); ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="6"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
|
|
@ -51,40 +51,40 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="6" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<tr><td colspan="6" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<section class="wf-25 floatLeft">
|
||||
<section class="box w-100">
|
||||
<header><h1><?= $this->l11n->lang['RiskManagement']['Statistics']; ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('RiskManagement', 'Statistics'); ?></h1></header>
|
||||
<div class="inner">
|
||||
<table class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Risks']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Risks'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Causes']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Causes'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Solutions']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Solutions'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Department']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Department'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Category']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Category'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Process']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Process'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Project']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Project'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Total']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Total'); ?>
|
||||
<td>0
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -29,15 +29,15 @@ echo $this->getData('nav')->render(); ?>
|
|||
<section class="wf-75 floatLeft">
|
||||
<div class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['RiskManagement']['TopRisks']; ?></caption>
|
||||
<caption><?= $this->l11n->getText('RiskManagement', 'TopRisks'); ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang['RiskManagement']['Severity']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['RiskManagement']['Name']; ?>
|
||||
<td><?= $this->l11n->lang['RiskManagement']['Department']; ?>
|
||||
<td><?= $this->l11n->lang['RiskManagement']['Category']; ?>
|
||||
<td><?= $this->l11n->lang['RiskManagement']['Process']; ?>
|
||||
<td><?= $this->l11n->lang['RiskManagement']['Project']; ?>
|
||||
<td><?= $this->l11n->getText('RiskManagement', 'Severity'); ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('RiskManagement', 'Name'); ?>
|
||||
<td><?= $this->l11n->getText('RiskManagement', 'Department'); ?>
|
||||
<td><?= $this->l11n->getText('RiskManagement', 'Category'); ?>
|
||||
<td><?= $this->l11n->getText('RiskManagement', 'Process'); ?>
|
||||
<td><?= $this->l11n->getText('RiskManagement', 'Project'); ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="6"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
|
|
@ -51,40 +51,40 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr><td colspan="6" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<tr><td colspan="6" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<section class="wf-25 floatLeft">
|
||||
<section class="box w-100">
|
||||
<header><h1><?= $this->l11n->lang['RiskManagement']['Statistics']; ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('RiskManagement', 'Statistics'); ?></h1></header>
|
||||
<div class="inner">
|
||||
<table class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Risks']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Risks'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Causes']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Causes'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Solutions']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Solutions'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Department']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Department'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Category']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Category'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Process']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Process'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Project']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Project'); ?>
|
||||
<td>0
|
||||
<tr>
|
||||
<th><?= $this->l11n->lang['RiskManagement']['Total']; ?>
|
||||
<th><?= $this->l11n->getText('RiskManagement', 'Total'); ?>
|
||||
<td>0
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user