Modify some locale handling to better handle plurals. Based on a patch by Tobias. re #37

This commit is contained in:
Sébastien Lucas 2013-04-20 15:41:32 +02:00
parent 0682c568b4
commit 560bb69942
13 changed files with 69 additions and 69 deletions

View file

@ -369,7 +369,7 @@ class Book extends Base {
$result = array();
$entry = new Entry (localize ("allbooks.title"),
self::ALL_BOOKS_ID,
str_format (localize ("allbooks.alphabetical"), $nBooks), "text",
str_format (localize ("allbooks.alphabetical", $nBooks), $nBooks), "text",
array ( new LinkNavigation ("?page=".parent::PAGE_ALL_BOOKS)));
array_push ($result, $entry);
$entry = new Entry (localize ("recent.title"),