diff options
| author | 2013-04-27 13:40:48 +0200 | |
|---|---|---|
| committer | 2013-04-27 13:40:48 +0200 | |
| commit | 19407e1ab6df2c239017fb20e47d6201bdaab223 (patch) | |
| tree | 976a70c10a5aead037acab4e732bf9cae26e0c9a /app/controllers/apiController.php | |
| parent | f73d490a640b40abd074a9b2c83c3dae26ecc638 (diff) | |
Structure pour l'internationalisation terminée (voir bug #38) : il reste à faire la traduction en anglais notamment, rajouter une option pour changer la langue, détecter la langue préférée de l'utilisateur et voir si on peut migrer facilement l'installateur aussi
Diffstat (limited to 'app/controllers/apiController.php')
| -rwxr-xr-x | app/controllers/apiController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/apiController.php b/app/controllers/apiController.php index bc08386b5..025908f3e 100755 --- a/app/controllers/apiController.php +++ b/app/controllers/apiController.php @@ -20,11 +20,11 @@ class apiController extends ActionController { $notes = $e->notes (); if ($notes == '') { $feed = $e->feed (true); - $notes = 'Article publié initialement sur <a href="' . $feed->website () . '">' . $feed->name () . '</a>'; if($author != '') { - $notes .= ' par ' . $author; + $notes = Translate::t ('article_published_on_author', $feed->website (), $feed->name (), $author); + } else { + $notes = Translate::t ('article_published_on', $feed->website (), $feed->name ()); } - $notes .= ', mis en favoris dans <a href="https://github.com/marienfressinaud/FreshRSS">FreshRSS</a>'; } $id = $e->id (); |
