diff --git a/locales/fr_FR/translations.php b/locales/fr_FR/translations.php index 326403c..7567bf8 100644 --- a/locales/fr_FR/translations.php +++ b/locales/fr_FR/translations.php @@ -231,11 +231,11 @@ return array( 'Original link marks article as read' => 'Marquer les articles comme lu lors d\'un clic sur le lien original', 'Cloak the image referrer' => 'Falsifier le référent pour les images', 'This subscription already exists.' => 'Cet abonnement existe déjà.', - 'Connection timeout.' => 'Connection timeout.', - 'Error occured.' => 'Error occured.', - 'Feed is malformed.' => 'Feed is malformed.', - 'Invalid SSL certificate.' => 'Invalid SSL certificate.', - 'Maximum number of HTTP redirections exceeded.' => 'Maximum number of HTTP redirections exceeded.', - 'The content size exceeds to maximum allowed size.' => 'The content size exceeds to maximum allowed size.', - 'Unable to detect the feed format.' => 'Unable to detect the feed format.', + 'Connection timeout.' => 'Délai de connexion expiré.', + 'Error occured.' => 'Une erreur est survenue.', + 'Feed is malformed.' => 'Le flux XML est mal-formé.', + 'Invalid SSL certificate.' => 'Le certificat SSL est invalide.', + 'Maximum number of HTTP redirections exceeded.' => 'Nombre maximal de redirections HTTP dépassé.', + 'The content size exceeds to maximum allowed size.' => 'La taille du contenu dépasse la taille maximale autorisée.', + 'Unable to detect the feed format.' => 'Impossible de détecter le format du flux.', ); diff --git a/models/feed.php b/models/feed.php index 7d65e7a..d361694 100644 --- a/models/feed.php +++ b/models/feed.php @@ -2,6 +2,7 @@ namespace Model\Feed; +use UnexpectedValueException; use Model\Config; use Model\Item; use SimpleValidator\Validator; @@ -161,7 +162,7 @@ function create($url, $enable_grabber = false, $force_rtl = false, $cloak_referr // Feed already there if ($db->table('feeds')->eq('feed_url', $resource->getUrl())->count()) { - throw new \UnexpectedValueException; + throw new UnexpectedValueException; } // Parse the feed