mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
improve filter overview display; replace ngettext with php gettext
This commit is contained in:
@@ -58,7 +58,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
|
||||
$cat['items'] = $this->get_category_items($line['id']);
|
||||
|
||||
$cat['param'] = vsprintf(ngettext('(%d feed)', '(%d feeds)', count($cat['items'])), count($cat['items']));
|
||||
$cat['param'] = vsprintf(_ngettext('(%d feed)', '(%d feeds)', count($cat['items'])), count($cat['items']));
|
||||
|
||||
if (count($cat['items']) > 0 || $show_empty_cats)
|
||||
array_push($items, $cat);
|
||||
@@ -206,7 +206,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
|
||||
$cat['items'] = $this->get_category_items($line['id']);
|
||||
|
||||
$cat['param'] = vsprintf(ngettext('(%d feed)', '(%d feeds)', count($cat['items'])), count($cat['items']));
|
||||
$cat['param'] = vsprintf(_ngettext('(%d feed)', '(%d feeds)', count($cat['items'])), count($cat['items']));
|
||||
|
||||
if (count($cat['items']) > 0 || $show_empty_cats)
|
||||
array_push($root['items'], $cat);
|
||||
@@ -248,13 +248,13 @@ class Pref_Feeds extends Handler_Protected {
|
||||
array_push($cat['items'], $feed);
|
||||
}
|
||||
|
||||
$cat['param'] = vsprintf(ngettext('(%d feed)', '(%d feeds)', count($cat['items'])), count($cat['items']));
|
||||
$cat['param'] = vsprintf(_ngettext('(%d feed)', '(%d feeds)', count($cat['items'])), count($cat['items']));
|
||||
|
||||
if (count($cat['items']) > 0 || $show_empty_cats)
|
||||
array_push($root['items'], $cat);
|
||||
|
||||
$root['param'] += count($cat['items']);
|
||||
$root['param'] = vsprintf(ngettext('(%d feed)', '(%d feeds)', count($cat['items'])), count($cat['items']));
|
||||
$root['param'] = vsprintf(_ngettext('(%d feed)', '(%d feeds)', count($cat['items'])), count($cat['items']));
|
||||
|
||||
} else {
|
||||
$feed_result = db_query($this->link, "SELECT id, title, last_error,
|
||||
@@ -279,7 +279,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
array_push($root['items'], $feed);
|
||||
}
|
||||
|
||||
$root['param'] = vsprintf(ngettext('(%d feed)', '(%d feeds)', count($cat['items'])), count($cat['items']));
|
||||
$root['param'] = vsprintf(_ngettext('(%d feed)', '(%d feeds)', count($cat['items'])), count($cat['items']));
|
||||
}
|
||||
|
||||
$fl = array();
|
||||
|
||||
Reference in New Issue
Block a user