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:
@@ -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.'));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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.'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -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.'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user