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:
Dmitriy Chubinidze
2025-08-12 12:20:29 +00:00
parent 198a93850a
commit 322fb3791a
5 changed files with 9 additions and 9 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -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

View File

@@ -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 />

View File

@@ -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