From 07a930cac32e6c29057680e19d8e09faa67837c5 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 11 Apr 2015 10:42:23 -0400 Subject: [PATCH] Update French translation --- locales/fr_FR/translations.php | 14 +++++++------- models/feed.php | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) 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