0
0
mirror of https://github.com/urlgrey/hsmm-pi synced 2025-10-06 00:12:53 +02:00

Add missing localization calls.

This commit is contained in:
Clayton Smith
2016-04-02 15:26:16 -04:00
parent 5c41e6c74a
commit 0511c994e3
4 changed files with 9 additions and 9 deletions

View File

@@ -22,9 +22,9 @@ class LocationSettingsController extends AppController {
$this->render_gpsd_config($latest_location);
$this->render_ntp_config($network_setting, $latest_location);
$this->set('location_source', $latest_location['LocationSetting']['location_source']);
$this->Flash->reboot('Your settings have been saved and will take effect on the next reboot.');
$this->Flash->reboot(__('Your settings have been saved and will take effect on the next reboot.'));
} else {
$this->Flash->error('Unable to update your settings, please review any validation errors.');
$this->Flash->error(__('Unable to update your settings, please review any validation errors.'));
}
}

View File

@@ -23,7 +23,7 @@ class NetworkServicesController extends AppController {
$this->render_olsrd_config($network_setting, $network_services, $location);
$this->render_rclocal_config($network_setting, $network_services);
$this->Flash->reboot('The service has been deleted, and will take effect on the next reboot.');
$this->Flash->reboot(__('The service has been deleted, and will take effect on the next reboot.'));
$this->redirect(array('action' => 'index'));
}
}
@@ -41,10 +41,10 @@ class NetworkServicesController extends AppController {
$this->render_olsrd_config($network_setting, $network_services, $location);
$this->render_rclocal_config($network_setting, $network_services);
$this->Flash->reboot('The service has been added, and will take effect on the next reboot.');
$this->Flash->reboot(__('The service has been added, and will take effect on the next reboot.'));
$this->redirect(array('action' => 'index'));
} else {
$this->Flash->error('Unable to add your service.');
$this->Flash->error(__('Unable to add your service.'));
}
}
}

View File

@@ -27,9 +27,9 @@ class NetworkSettingsController extends AppController {
$this->render_callsign_announcement_config($latest_network_setting);
$this->render_ntp_config($latest_network_setting, $location);
$this->Flash->reboot('Your settings have been saved and will take effect on the next reboot.');
$this->Flash->reboot(__('Your settings have been saved and will take effect on the next reboot.'));
} else {
$this->Flash->error('Unable to update your settings, please review any validation errors.');
$this->Flash->error(__('Unable to update your settings, please review any validation errors.'));
}
} else {
// perform some checks in the case of an HTTP GET

View File

@@ -40,9 +40,9 @@ class UsersController extends AppController {
$admin_user['User']['password'] = $this->request->data['User']['password'];
if ($this->User->save($admin_user)) {
$this->Flash->success('Password changed successfully.');
$this->Flash->success(__('Password changed successfully.'));
} else {
$this->Flash->error('Unable to update your settings, please review any validation errors.');
$this->Flash->error(__('Unable to update your settings, please review any validation errors.'));
}
}
}