mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Handle plurals in translations
Use ngettext() to handle plurals properly. Also, split pagination captions into two strings. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
b113764b0b
commit
7f29756196
4 changed files with 26 additions and 7 deletions
|
@ -12,7 +12,10 @@ if (!$result): ?>
|
|||
<?php else: ?>
|
||||
<div id="pkglist-results" class="box">
|
||||
<div class="pkglist-stats">
|
||||
<p><?= __('%d packages found. Page %d of %d.', $total, $current, $pages) ?></p>
|
||||
<p>
|
||||
<?= _n('%d package found.', '%d packages found.', $total) ?>
|
||||
<?= __('Page %d of %d.', $current, $pages) ?>
|
||||
</p>
|
||||
<?php if (count($templ_pages) > 1): ?>
|
||||
<p class="pkglist-nav">
|
||||
<?php foreach ($templ_pages as $pagenr => $pagestart): ?>
|
||||
|
@ -89,7 +92,10 @@ if (!$result): ?>
|
|||
</table>
|
||||
|
||||
<div class="pkglist-stats">
|
||||
<p><?= __('%d packages found. Page %d of %d.', $total, $current, $pages) ?></p>
|
||||
<p>
|
||||
<?= _n('%d package found.', '%d packages found.', $total) ?>
|
||||
<?= __('Page %d of %d.', $current, $pages) ?>
|
||||
</p>
|
||||
<?php if (count($templ_pages) > 1): ?>
|
||||
<p class="pkglist-nav">
|
||||
<?php foreach ($templ_pages as $pagenr => $pagestart): ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue