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

@ -39,7 +39,7 @@ class Author extends Base {
public static function getCount() {
$nAuthors = parent::getDb ()->query('select count(*) from authors')->fetchColumn();
$entry = new Entry (localize("authors.title"), self::ALL_AUTHORS_ID,
str_format (localize("authors.alphabetical"), $nAuthors), "text",
str_format (localize("authors.alphabetical", $nAuthors), $nAuthors), "text",
array ( new LinkNavigation ("?page=".parent::PAGE_ALL_AUTHORS)));
return $entry;
}