Translation fixes (0 still missing)

This commit is contained in:
Dennis Eichhorn 2016-07-27 13:17:50 +02:00
parent 10cbacf466
commit 265b77dec9
2 changed files with 16 additions and 16 deletions

View File

@ -25,13 +25,13 @@ $footerView->setPage(1);
echo $this->getData('nav')->render(); ?>
<div class="box w-100">
<table class="table">
<caption><?= $this->l11n->getText('News', 'Backend', 'Archive') ?></caption>
<caption><?= $this->getText('Archive') ?></caption>
<thead>
<tr>
<td><?= $this->l11n->getText('News', 'Backend', 'Type'); ?>
<td class="wf-100"><?= $this->l11n->getText('News', 'Backend', 'Title'); ?>
<td><?= $this->l11n->getText('News', 'Backend', 'Author'); ?>
<td><?= $this->l11n->getText('News', 'Backend', 'Date'); ?>
<td><?= $this->getText('Type'); ?>
<td class="wf-100"><?= $this->getText('Title'); ?>
<td><?= $this->getText('Author'); ?>
<td><?= $this->getText('Date'); ?>
<tfoot>
<tr>
<td colspan="4"><?= $footerView->render(); ?>
@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="4" class="empty"><?= $this->l11n->getText(0, 'Backend', 'Empty'); ?>
<tr><td colspan="4" class="empty"><?= $this->getText('Empty'); ?>
<?php endif; ?>
</table>
</div>

View File

@ -23,14 +23,14 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100 floatLeft">
<table class="table">
<caption><?= $this->l11n->getText('News', 'Backend', 'News') ?></caption>
<caption><?= $this->getText('News') ?></caption>
<thead>
<tr>
<td>
<td><?= $this->l11n->getText('News', 'Backend', 'Type'); ?>
<td class="wf-100"><?= $this->l11n->getText('News', 'Backend', 'Title'); ?>
<td><?= $this->l11n->getText('News', 'Backend', 'Author'); ?>
<td><?= $this->l11n->getText('News', 'Backend', 'Date'); ?>
<td><?= $this->getText('Type'); ?>
<td class="wf-100"><?= $this->getText('Title'); ?>
<td><?= $this->getText('Author'); ?>
<td><?= $this->getText('Date'); ?>
<tbody>
<?php $count = 0; foreach($newsList as $key => $news) : $count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/news/article?id=' . $news->getId());
@ -41,13 +41,13 @@ echo $this->getData('nav')->render(); ?>
?>
<tr>
<td data-label=""><a href="<?= $url; ?>"><?= $news->isFeatured() ? '<i class="fa fa-star favorite"></i>' : ''; ?></a>
<td data-label="<?= $this->l11n->getText('News', 'Type'); ?>"><a href="<?= $url; ?>"><span class="tag <?= $color; ?>"><?= $this->l11n->getText('News', 'Backend', 'TYPE' . $news->getType()); ?></span></a>
<td data-label="<?= $this->l11n->getText('News', 'Backend', 'Title'); ?>"><a href="<?= $url; ?>"><?= $news->getTitle(); ?></a>
<td data-label="<?= $this->l11n->getText('News', 'Backend', 'Author'); ?>"><a href="<?= $url; ?>"><?= $news->getCreatedBy(); ?></a>
<td data-label="<?= $this->l11n->getText('News', 'Backend', 'Date'); ?>"><a href="<?= $url; ?>"><?= $news->getPublish()->format('Y-m-d'); ?></a>
<td data-label="<?= $this->getText('News', 'Type'); ?>"><a href="<?= $url; ?>"><span class="tag <?= $color; ?>"><?= $this->getText('TYPE' . $news->getType()); ?></span></a>
<td data-label="<?= $this->getText('Title'); ?>"><a href="<?= $url; ?>"><?= $news->getTitle(); ?></a>
<td data-label="<?= $this->getText('Author'); ?>"><a href="<?= $url; ?>"><?= $news->getCreatedBy(); ?></a>
<td data-label="<?= $this->getText('Date'); ?>"><a href="<?= $url; ?>"><?= $news->getPublish()->format('Y-m-d'); ?></a>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->l11n->getText(0, 'Backend', 'Empty'); ?>
<tr><td colspan="5" class="empty"><?= $this->getText('Empty'); ?>
<?php endif; ?>
</table>
</div>