Fix i18n issue in volume_action and admin_action
In the files admin_action.py and volume_action.py, we
still missed some i18n issues required to be fixed.
Closes-bug:
@@ -229,8 +229,8 @@ class VolumeAdminController(AdminController):
except messaging.RemoteError as error:
if error.exc_type in ['VolumeAttachmentNotFound',
'InvalidVolume']:
- msg = "Error force detaching volume - %(err_type)s: " \
- "%(err_msg)s" % {'err_type': error.exc_type,
+ msg = _("Error force detaching volume - %(err_type)s: "
+ "%(err_msg)s") % {'err_type': error.exc_type,
'err_msg': error.value}
raise webob.exc.HTTPBadRequest(explanation=msg)
else:
