Updated the warning text
Remove incorrect underscores and hyphens in warning messages Change-Id: I5eafab496b6cf85f72ce9b3e174876188e7edb70 Signed-off-by: Dmitriy Chubinidze <dcu995@gmail.com>
This commit is contained in:
@@ -136,6 +136,6 @@ class UpdateShareGroupTypeForm(forms.SelfHandlingForm):
|
||||
self.api_error(e.messages[0])
|
||||
return False
|
||||
except Exception:
|
||||
msg = _("Unable to update group_specs for share group type.")
|
||||
msg = _("Unable to update group specs for share group type.")
|
||||
exceptions.handle(request, msg)
|
||||
return False
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
{% block modal-body-right %}
|
||||
<h3>{% trans "Description" %}:</h3>
|
||||
<p>
|
||||
{% trans "Here can be modified group-specs for share group type." %}<br />
|
||||
{% trans "Here can be modified group specs for share group type." %}<br />
|
||||
{% trans "One line - one action. Empty strings will be ignored." %}<br />
|
||||
{% trans "To add group-specs use:" %}
|
||||
{% trans "To add group specs use:" %}
|
||||
<pre>key=value</pre>
|
||||
{% trans "To unset group-specs use:" %}
|
||||
{% trans "To unset group specs use:" %}
|
||||
<pre>key</pre>
|
||||
{% trans "All pairs that are in field for left are set for this share group type." %}
|
||||
</p>
|
||||
|
||||
@@ -107,7 +107,7 @@ class UpdateShareGroupTypeView(forms.ModalFormView):
|
||||
self._object = manila.share_group_type_get(
|
||||
self.request, sgt_id)
|
||||
except Exception:
|
||||
msg = _("Unable to retrieve share_gruop_type.")
|
||||
msg = _("Unable to retrieve share group type.")
|
||||
url = reverse("horizon:admin:share_group_types:index")
|
||||
exceptions.handle(self.request, msg, redirect=url)
|
||||
return self._object
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
<h3>{% trans "Description" %}:</h3>
|
||||
<p>{% trans "From here you can modify name, description, extra specs and visibility of a share type." %}
|
||||
<br /><br /><strong>Extra specs</strong> field:<br />
|
||||
{% trans "Here can be modified extra-specs for share type." %}<br />
|
||||
{% trans "Here can be modified extra specs for share type." %}<br />
|
||||
{% trans "One line - one action. Empty strings will be ignored." %}<br />
|
||||
{% trans "To add extra-specs use:" %}
|
||||
{% trans "To add extra specs use:" %}
|
||||
<pre>key=value</pre>
|
||||
{% trans "To unset extra-specs use:" %}
|
||||
{% trans "To unset extra specs use:" %}
|
||||
<pre>key</pre>
|
||||
{% trans "All pairs that are in field for left are set for this share type." %}
|
||||
{% trans "Extra spec 'driver_handles_share_servers' is required and should have boolean value." %}<br />
|
||||
|
||||
@@ -119,7 +119,7 @@ class UpdateShareTypeView(forms.ModalFormView):
|
||||
try:
|
||||
self._object = manila.share_type_get(self.request, st_id)
|
||||
except Exception:
|
||||
msg = _("Unable to retrieve share_type.")
|
||||
msg = _("Unable to retrieve share type.")
|
||||
url = reverse("horizon:admin:share_types:index")
|
||||
exceptions.handle(self.request, msg, redirect=url)
|
||||
return self._object
|
||||
|
||||
Reference in New Issue
Block a user