Skip to content

Commit

Permalink
Dev: Translate strings in plugin controller
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 20, 2016
1 parent 46c8273 commit bfed96f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/controllers/PluginsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function actionConfigure($id)

if ($arPlugin === null)
{
Yii::app()->user->setFlash('pluginmanager', 'Plugin not found');
Yii::app()->user->setFlash('pluginmanager', gT('Plugin not found'));
$this->redirect(array('plugins/'));
}

Expand All @@ -102,7 +102,7 @@ public function actionConfigure($id)
$aSave[$name] = App()->request->getPost($name, null);
}
$oPluginObject->saveSettings($aSave);
Yii::app()->user->setFlash('pluginmanager', 'Settings saved');
Yii::app()->user->setFlash('pluginmanager', gT('Settings saved'));
if(App()->request->getPost('redirect'))
{
$this->redirect(App()->request->getPost('redirect'), true);
Expand All @@ -114,7 +114,7 @@ public function actionConfigure($id)
if (empty($aSettings))
{
// And show a message
Yii::app()->user->setFlash('pluginmanager', 'This plugin has no settings');
Yii::app()->user->setFlash('pluginmanager', gT('This plugin has no settings'));
$this->redirect('plugins/index', true);
}

Expand Down

0 comments on commit bfed96f

Please sign in to comment.