summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-03-10 20:16:41 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-03-10 20:16:41 +0100
commit608b3a8656d986ff177e97e968256bcbf6785c13 (patch)
treed7f16c399d15d33d497ba0f7a6ed26b28aedd5b1 /app
parented328ae69c186148d30d458268ddc66be3dd7e72 (diff)
Link to logs in case of error when adding new feed
https://github.com/marienfressinaud/FreshRSS/issues/453
Diffstat (limited to 'app')
-rwxr-xr-xapp/Controllers/feedController.php4
-rw-r--r--app/i18n/en.php2
-rw-r--r--app/i18n/fr.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index 9996725e4..16516ad39 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -136,7 +136,7 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
Minz_Log::record ($e->getMessage (), Minz_Log::WARNING);
$notif = array (
'type' => 'bad',
- 'content' => Minz_Translate::t ('internal_problem_feed')
+ 'content' => Minz_Translate::t ('internal_problem_feed', Minz_Url::display(array('a' => 'logs')))
);
Minz_Session::_param ('notification', $notif);
} catch (Minz_FileNotExistException $e) {
@@ -144,7 +144,7 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
Minz_Log::record ($e->getMessage (), Minz_Log::ERROR);
$notif = array (
'type' => 'bad',
- 'content' => Minz_Translate::t ('internal_problem_feed')
+ 'content' => Minz_Translate::t ('internal_problem_feed', Minz_Url::display(array('a' => 'logs')))
);
Minz_Session::_param ('notification', $notif);
}
diff --git a/app/i18n/en.php b/app/i18n/en.php
index 69247165f..7f95500ad 100644
--- a/app/i18n/en.php
+++ b/app/i18n/en.php
@@ -89,7 +89,7 @@ return array (
'already_subscribed' => 'You have already subscribed to <em>%s</em>',
'feed_added' => 'RSS feed <em>%s</em> has been added',
'feed_not_added' => '<em>%s</em> could not be added',
- 'internal_problem_feed' => 'The RSS feed could not be added. Check FressRSS logs for details.',
+ 'internal_problem_feed' => 'The RSS feed could not be added. <a href="%s">Check FressRSS logs</a> for details.',
'invalid_url' => 'URL <em>%s</em> is invalid',
'feed_actualized' => '<em>%s</em> has been updated',
'n_feeds_actualized' => '%d feeds have been updated',
diff --git a/app/i18n/fr.php b/app/i18n/fr.php
index e364ed130..91daa4f51 100644
--- a/app/i18n/fr.php
+++ b/app/i18n/fr.php
@@ -89,7 +89,7 @@ return array (
'already_subscribed' => 'Vous êtes déjà abonné à <em>%s</em>',
'feed_added' => 'Le flux <em>%s</em> a bien été ajouté',
'feed_not_added' => '<em>%s</em> n’a pas pu être ajouté',
- 'internal_problem_feed' => 'Le flux n’a pas pu être ajouté. Consulter les logs de FreshRSS pour plus de détails.',
+ 'internal_problem_feed' => 'Le flux n’a pas pu être ajouté. <a href="%s">Consulter les logs de FreshRSS</a> pour plus de détails.',
'invalid_url' => 'L’url <em>%s</em> est invalide',
'feed_actualized' => '<em>%s</em> a été mis à jour',
'n_feeds_actualized' => '%d flux ont été mis à jour',