unify some messages
Unify identical messages by adding '.' or remove/adding spaces if the content of the message is identical to reduce translation effort. Change-Id: Ie611b75fd8891a583fab9e0971a80f329a6793ac Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
9e02468864
commit
a6bd0340d2
|
@ -41,7 +41,7 @@ class VolumeTypesController(wsgi.Controller):
|
|||
try:
|
||||
vol_type = volume_types.get_volume_type(context, id)
|
||||
except exception.NotFound:
|
||||
msg = _("Volume type not found")
|
||||
msg = _("Volume type not found.")
|
||||
raise exc.HTTPNotFound(explanation=msg)
|
||||
|
||||
vol_type['id'] = str(vol_type['id'])
|
||||
|
|
|
@ -70,7 +70,7 @@ class API(base.Base):
|
|||
|
||||
if snapshot is not None:
|
||||
if snapshot['status'] != 'available':
|
||||
msg = _('status must be available')
|
||||
msg = _("status must be 'available'")
|
||||
raise exception.InvalidShareSnapshot(reason=msg)
|
||||
if not size:
|
||||
size = snapshot['size']
|
||||
|
|
|
@ -172,7 +172,7 @@ class GlusterfsShareDriver(driver.ExecuteMixin, driver.GaneshaMixin,
|
|||
except OSError as exc:
|
||||
if exc.errno == errno.ENOENT:
|
||||
raise exception.GlusterfsException(
|
||||
_('mount.glusterfs is not installed'))
|
||||
_('mount.glusterfs is not installed.'))
|
||||
else:
|
||||
raise
|
||||
|
||||
|
|
|
@ -269,7 +269,7 @@ def _publish_local_config(configpath, pre_lines, exports):
|
|||
try:
|
||||
utils.execute(*mvcmd, run_as_root=True)
|
||||
except exception.ProcessExecutionError as e:
|
||||
msg = (_('Failed while publishing ganesha config locally.'
|
||||
msg = (_('Failed while publishing ganesha config locally. '
|
||||
'Error: %s.'), six.text_type(e))
|
||||
LOG.error(msg)
|
||||
raise exception.GPFSGaneshaException(msg)
|
||||
|
|
|
@ -391,7 +391,7 @@ class NetAppClusteredShareDriver(driver.ShareDriver):
|
|||
if share_proto == proto:
|
||||
return self._helpers[proto]
|
||||
|
||||
err_msg = _("Invalid NAS protocol supplied: %s. ") % share_proto
|
||||
err_msg = _("Invalid NAS protocol supplied: %s.") % share_proto
|
||||
|
||||
raise exception.NetAppException(err_msg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue