diff --git a/index.php b/index.php index d415c94..4d11bd4 100644 --- a/index.php +++ b/index.php @@ -374,7 +374,12 @@ Router\get_action('feeds', function() { $listing[] = '"'.$feed['title'].'"'; } - $message = t('The following feeds are empty, there is maybe an error: %s', implode(', ', $listing)); + $message = t( + 'There is %d empty feeds, there is maybe an error: %s...', + count($empty_feeds), + implode(', ', array_slice($listing, 0, 5)) + ); + Session\flash_error($message); } diff --git a/locales/cs_CZ/translations.php b/locales/cs_CZ/translations.php index 8387991..197058c 100644 --- a/locales/cs_CZ/translations.php +++ b/locales/cs_CZ/translations.php @@ -3,8 +3,8 @@ return array( 'No item' => 'Žádný článěk', 'items' => 'články', - 'The following feeds are empty, there is maybe an error: %s' => - 'Následující zdroje jsou prázdně, možná je tu chyba: %s', + 'There is %d empty feeds, there is maybe an error: %s...' => + 'K dispozici je %d prázdné kanály, je možná chyba: %s...', 'Items per page' => 'Článků na stránku', 'Previous page' => 'Předchozí stránka', 'Next page' => 'Další stránka', diff --git a/locales/fr_FR/translations.php b/locales/fr_FR/translations.php index 8e18c5b..94bc247 100644 --- a/locales/fr_FR/translations.php +++ b/locales/fr_FR/translations.php @@ -3,8 +3,8 @@ return array( 'No item' => 'Aucun élément', 'items' => 'éléments', - 'The following feeds are empty, there is maybe an error: %s' => - 'Les abonnements suivants sont vides, il y a peut-être une erreur : %s', + 'There is %d empty feeds, there is maybe an error: %s...' => + 'Il y a %d abonnements vides, il y a peut-être un problème : %s...', 'Items per page' => 'Nombre d\'éléments par page', 'Previous page' => 'Page précédente', 'Next page' => 'Page suivante', diff --git a/model.php b/model.php index 713062b..8121ca4 100644 --- a/model.php +++ b/model.php @@ -256,7 +256,7 @@ function get_empty_feeds() ->columns('feeds.id', 'feeds.title', 'COUNT(items.id) AS nb_items') ->join('items', 'feed_id', 'id') ->isNull('feeds.last_checked') - ->groupBy('items.feed_id') + ->groupBy('feeds.id') ->findAll(); foreach ($feeds as $key => &$feed) {