Răsfoiți Sursa

Update i18n for limit of feeds

See https://github.com/marienfressinaud/FreshRSS/issues/680
Marien Fressinaud 11 ani în urmă
părinte
comite
cf7350af47
3 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  1. 2 2
      app/Controllers/feedController.php
  2. 1 0
      app/i18n/en.php
  3. 1 0
      app/i18n/fr.php

+ 2 - 2
app/Controllers/feedController.php

@@ -71,8 +71,8 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
 		$limits = Minz_Configuration::limits();
 		$this->view->feeds = $feedDAO->listFeeds();
 		if (count($this->view->feeds) >= $limits['max_feeds']) {
-			Minz_Request::bad(_t('over_max_feeds', $limits['max_feeds']), $url_redirect);
-			return;
+			Minz_Request::bad(_t('sub.feeds.over_max', $limits['max_feeds']),
+			                  $url_redirect);
 		}
 
 		if (Minz_Request::isPost()) {

+ 1 - 0
app/i18n/en.php

@@ -474,6 +474,7 @@
   'steps' => 'Steps',
   'sticky_post' => 'Stick the article to the top when opened',
   'sub.categories.over_max' => 'You have reached your limit of categories (%d)',
+  'sub.feeds.over_max' => 'You have reached your limit of feeds (%d)',
   'submit' => 'Submit',
   'subscription_management' => 'Subscriptions management',
   'sun' => 'Sun',

+ 1 - 0
app/i18n/fr.php

@@ -474,6 +474,7 @@
   'steps' => 'Étapes',
   'sticky_post' => 'Aligner l’article en haut quand il est ouvert',
   'sub.categories.over_max' => 'Vous avez atteint votre limite de catégories (%d)',
+  'sub.feeds.over_max' => 'Vous avez atteint votre limite de flux (%d)',
   'submit' => 'Valider',
   'subscription_management' => 'Gestion des abonnements',
   'sun' => 'dim.',