diff options
Diffstat (limited to 'themes/default/views/pager.html.php')
| -rw-r--r-- | themes/default/views/pager.html.php | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/themes/default/views/pager.html.php b/themes/default/views/pager.html.php index 1bc746eb..00185711 100644 --- a/themes/default/views/pager.html.php +++ b/themes/default/views/pager.html.php @@ -1,25 +1,30 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <? // See http://docs.kohanaphp.com/libraries/pagination ?> <ul id="gPager"> - <li><?= sprintf(_("Photos %d - %d of %d"), $current_first_item, $current_last_item, $total_items) ?></li> + <? /* XXX: This message isn't easily localizable */ + $from_to_msg = t("Photos {{from_number}} - {{to_number}} of {{total}}", + array("from_number" => $current_first_item, + "to_number" => $current_last_item, + "total" => $total_items)) ?> + <li><?= $from_to_msg ?></li> <? if ($first_page): ?> - <li class="first"><a href="<?= str_replace('{page}', 1, $url) ?>"><?= _("first") ?></a></li> + <li class="first"><a href="<?= str_replace('{page}', 1, $url) ?>"><?= t("first") ?></a></li> <? else: ?> - <li class="first_inactive"><?= _("first") ?></li> + <li class="first_inactive"><?= t("first") ?></li> <? endif ?> <? if ($previous_page): ?> - <li class="previous"><a href="<?= str_replace('{page}', $previous_page, $url) ?>"><?= _("previous") ?></a></li> + <li class="previous"><a href="<?= str_replace('{page}', $previous_page, $url) ?>"><?= t("previous") ?></a></li> <? else: ?> - <li class="previous_inactive"><?= _("previous") ?></li> + <li class="previous_inactive"><?= t("previous") ?></li> <? endif ?> <? if ($next_page): ?> - <li class="next"><a href="<?= str_replace('{page}', $next_page, $url) ?>"><?= _("next") ?></a></li> + <li class="next"><a href="<?= str_replace('{page}', $next_page, $url) ?>"><?= t("next") ?></a></li> <? else: ?> - <li class="next_inactive"><?= _("next") ?></li> + <li class="next_inactive"><?= t("next") ?></li> <? endif ?> <? if ($last_page): ?> - <li class="last"><a href="<?= str_replace('{page}', $last_page, $url) ?>"><?= _("last") ?></a></li> + <li class="last"><a href="<?= str_replace('{page}', $last_page, $url) ?>"><?= t("last") ?></a></li> <? else: ?> - <li class="last_inactive"><?= _("last") ?></li> + <li class="last_inactive"><?= t("last") ?></li> <? endif ?> </ul> |
