Translation: global translation for view helpers

As our pagination helper is used in multiple domains gettext would
fail if we don't explicitely call the correct translation function
carrying the "global" domain.

refs #6338
This commit is contained in:
Thomas Gelf 2014-05-27 21:48:05 +00:00
parent cfa0251dbf
commit 92d3e4e9f8
1 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@ if ($this->pageCount <= 1) return;
?><ul class="pagination"
<?php
$fromto = $this->translate('%d to %d of %d');
$fromto = t('%d to %d of %d');
$total = $this->totalItemCount;
$limit = $this->itemCountPerPage;
$title_prev = sprintf(
@ -42,10 +42,10 @@ if (isset($this->previous)) {
array('page' => $this->previous)
)->getAbsoluteUrl(),
$title_prev,
'« ' . $this->translate('Prev')
'« ' . t('Prev')
);
} else {
echo ' ><li class="disabled"><span>« ' . $this->translate('Prev') . '</span></li';
echo ' ><li class="disabled"><span>« ' . t('Prev') . '</span></li';
}
foreach ($this->pagesInRange as $page) {
@ -80,10 +80,10 @@ if (isset($this->next)) {
array('page' => $this->next)
)->getAbsoluteUrl(),
$title_next,
$this->translate('Next') . ' »'
t('Next') . ' »'
);
} else {
echo ' ><li class="disabled"><span>' . $this->translate('Next') . ' »</span></li';
echo ' ><li class="disabled"><span>' . t('Next') . ' »</span></li';
}
?>