aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/updateController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-08-10 10:35:17 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-08-10 10:35:17 +0200
commit7ed111b1bf152613d17254808a4fcf89f5774297 (patch)
treecb6e1ec05a3b5ff0625657924acd22d742246584 /app/Controllers/updateController.php
parente7dba0ce7cfaf5e84687593a8b0d58d89fbff302 (diff)
Add translations for update system
Diffstat (limited to 'app/Controllers/updateController.php')
-rw-r--r--app/Controllers/updateController.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/Controllers/updateController.php b/app/Controllers/updateController.php
index a15cb9fd5..a94af4417 100644
--- a/app/Controllers/updateController.php
+++ b/app/Controllers/updateController.php
@@ -11,6 +11,7 @@ class FreshRSS_update_Controller extends Minz_ActionController {
}
Minz_View::prependTitle(_t('update_system') . ' ยท ');
+ $this->view->last_update_time = 'unknown'; // TODO
}
public function indexAction() {
@@ -61,7 +62,7 @@ class FreshRSS_update_Controller extends Minz_ActionController {
$this->view->message = array(
'status' => 'bad',
'title' => _t('damn'),
- 'body' => _t('update_problem')
+ 'body' => _t('update_problem', 'Cannot save the update script')
);
}
} else {
@@ -88,6 +89,8 @@ class FreshRSS_update_Controller extends Minz_ActionController {
if ($res === true) {
@unlink(UPDATE_FILENAME);
+ // TODO: record last update
+
Minz_Session::_param('notification', array(
'type' => 'good',
'content' => Minz_Translate::t('update_finished')
@@ -97,7 +100,7 @@ class FreshRSS_update_Controller extends Minz_ActionController {
} else {
Minz_Session::_param('notification', array(
'type' => 'bad',
- 'content' => Minz_Translate::t('update_failed', $res)
+ 'content' => Minz_Translate::t('update_problem', $res)
));
Minz_Request::forward(array('c' => 'update'), true);