Fix mistakes with writing a phrases

Availability zone replaced to Availability Zone

Neutron Net replaced to Neutron Network

"snapshot list" replaced to "snapshots list"

and remove no need spaces

Change-Id: Iaae2465fb31da8bd3ee9e7b50db0e274e991d921
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
This commit is contained in:
Ivan Anfimov
2025-08-28 00:30:13 +00:00
parent 9f62587916
commit d85383601b
23 changed files with 37 additions and 36 deletions

View File

@@ -69,7 +69,7 @@ class ManageShareGroupTypeAccess(tables.LinkAction):
class UpdateShareGroupType(tables.LinkAction): class UpdateShareGroupType(tables.LinkAction):
name = "update share group type" name = "update share group type"
verbose_name = _("Update Share group Type") verbose_name = _("Update Share Group Type")
url = "horizon:admin:share_group_types:update" url = "horizon:admin:share_group_types:update"
classes = ("ajax-modal", "btn-create") classes = ("ajax-modal", "btn-create")

View File

@@ -17,7 +17,7 @@
<dt>{% trans "Host" %}</dt> <dt>{% trans "Host" %}</dt>
<dd>{{ share_group.host}}</dd> <dd>{{ share_group.host}}</dd>
{% if share_group.source_share_group_snapshot_id %} {% if share_group.source_share_group_snapshot_id %}
<dt>{% trans "Source share group snapshot" %}</dt> <dt>{% trans "Source Share Group Snapshot" %}</dt>
<dd>{{ share_group.source_share_group_snapshot_id}}</dd> <dd>{{ share_group.source_share_group_snapshot_id}}</dd>
{% endif %} {% endif %}
<dt>{% trans "Capabilities" %}</dt> <dt>{% trans "Capabilities" %}</dt>
@@ -70,7 +70,7 @@
{{ st.name }} {{ st.name }}
</div> </div>
<div> <div>
{% trans " Share Type Visibility:" %} {% trans "Share Type Visibility:" %}
{% if st.is_public %}Public{% else %}Private{% endif %} {% if st.is_public %}Public{% else %}Private{% endif %}
</div> </div>
<div> <div>

View File

@@ -19,8 +19,8 @@ import manila_ui.dashboards.project.share_networks.tables as sn_tables
class ShareNetworksFilterAction(tables.FilterAction): class ShareNetworksFilterAction(tables.FilterAction):
filter_type = "server" filter_type = "server"
filter_choices = ( filter_choices = (
('name', _("Name "), True), ('name', _("Name") + " ", True),
('description', _("Description "), True), ('description', _("Description") + " ", True),
) )

View File

@@ -48,7 +48,7 @@ class ShareSnapshotsView(tables.MultiTableView):
for snapshot in snapshots: for snapshot in snapshots:
snapshot.share = share_names.get(snapshot.share_id) snapshot.share = share_names.get(snapshot.share_id)
except Exception: except Exception:
msg = _("Unable to retrieve share snapshot list.") msg = _("Unable to retrieve share snapshots list.")
exceptions.handle(self.request, msg) exceptions.handle(self.request, msg)
# Gather our projects to correlate against IDs # Gather our projects to correlate against IDs

View File

@@ -84,8 +84,8 @@ class UpdateShareType(tables.LinkAction):
class ShareTypesFilterAction(tables.FilterAction): class ShareTypesFilterAction(tables.FilterAction):
filter_type = "server" filter_type = "server"
filter_choices = ( filter_choices = (
('name', _("Name "), True), ('name', _("Name") + " ", True),
('extra_specs', _("Extra Spec "), True), ('extra_specs', _("Extra Spec") + " ", True),
) )

View File

@@ -49,8 +49,8 @@ class MigrationStart(forms.SelfHandlingForm):
force_host_assisted_migration = forms.BooleanField( force_host_assisted_migration = forms.BooleanField(
label=_("Force Host Assisted Migration"), label=_("Force Host Assisted Migration"),
required=False, initial=False, required=False, initial=False,
help_text=_("Enforces the use of the host-assisted migration approach," help_text=_("Enforces the use of the host-assisted migration "
" which bypasses driver optimizations.")) "approach, which bypasses driver optimizations."))
nondisruptive = forms.BooleanField( nondisruptive = forms.BooleanField(
label=_("Nondisruptive"), label=_("Nondisruptive"),
required=False, initial=True, required=False, initial=True,
@@ -69,8 +69,8 @@ class MigrationStart(forms.SelfHandlingForm):
preserve_snapshots = forms.BooleanField( preserve_snapshots = forms.BooleanField(
label=_("Preserve Snapshots"), required=False, initial=True, label=_("Preserve Snapshots"), required=False, initial=True,
help_text=_("Enforces migration of the share snapshots to the " help_text=_("Enforces migration of the share snapshots to the "
"destination. If set to True, host-assisted migration will" "destination. If set to True, host-assisted migration "
" not be attempted.")) "will not be attempted."))
new_share_network = forms.ChoiceField( new_share_network = forms.ChoiceField(
label=_("New share network to be set in migrated share"), label=_("New share network to be set in migrated share"),
required=False, required=False,
@@ -143,7 +143,7 @@ class MigrationComplete(MigrationForms):
messages.success( messages.success(
request, request,
_('Successfully sent the request to complete migration of ' _('Successfully sent the request to complete migration of '
' share: %s.') % share_name) 'share: %s.') % share_name)
return True return True
except Exception: except Exception:
exceptions.handle(request, _("Unable to complete migration " exceptions.handle(request, _("Unable to complete migration "
@@ -180,11 +180,11 @@ class MigrationCancel(MigrationForms):
messages.success( messages.success(
request, request,
_('Successfully sent the request to cancel migration of ' _('Successfully sent the request to cancel migration of '
' share: %s.') % share_name) 'share: %s.') % share_name)
return True return True
except Exception: except Exception:
exceptions.handle(request, _("Unable to cancel migration of share" exceptions.handle(request, _("Unable to cancel migration of share "
" %s at this moment.") % share_name) "%s at this moment.") % share_name)
return False return False

View File

@@ -42,7 +42,7 @@
{% else %} {% else %}
<dd>{{ 'private' }}</dd> <dd>{{ 'private' }}</dd>
{% endif %} {% endif %}
<dt>{% trans "Availability zone" %}</dt> <dt>{% trans "Availability Zone" %}</dt>
<dd>{{ share.availability_zone }}</dd> <dd>{{ share.availability_zone }}</dd>
<dt>{% trans "Size" %}</dt> <dt>{% trans "Size" %}</dt>
<dd>{{ share.size }} {% trans "GiB" %}</dd> <dd>{{ share.size }} {% trans "GiB" %}</dd>

View File

@@ -27,7 +27,7 @@
{% endif %} {% endif %}
</p></dd> </p></dd>
{% endfor %} {% endfor %}
<dt>{% trans "Availability zone" %}</dt> <dt>{% trans "Availability Zone" %}</dt>
<dd>{{ replica.availability_zone }}</dd> <dd>{{ replica.availability_zone }}</dd>
<dt>{% trans "Created" %}</dt> <dt>{% trans "Created" %}</dt>

View File

@@ -209,7 +209,7 @@ class MigrationGetProgressView(forms.ModalFormView):
modal_header = _("Confirm Obtaining migration progress of Share") modal_header = _("Confirm Obtaining migration progress of Share")
form_id = "migration_get_progress_share" form_id = "migration_get_progress_share"
modal_id = "migration_get_progress_share_modal" modal_id = "migration_get_progress_share_modal"
submit_label = _("Obtain Progress") submit_label = _("Obtain Migration Progress")
success_url = reverse_lazy('horizon:admin:shares:index') success_url = reverse_lazy('horizon:admin:shares:index')
submit_url = 'horizon:admin:shares:migration_get_progress' submit_url = 'horizon:admin:shares:migration_get_progress'
cancel_url = reverse_lazy('horizon:admin:shares:index') cancel_url = reverse_lazy('horizon:admin:shares:index')

View File

@@ -66,7 +66,7 @@ class UpdateView(forms.ModalFormView):
self._object = manila.security_service_get( self._object = manila.security_service_get(
self.request, sec_service_id) self.request, sec_service_id)
except Exception: except Exception:
msg = _('Unable to retrieve security_service.') msg = _('Unable to retrieve security service.')
url = reverse('horizon:project:security_services:index') url = reverse('horizon:project:security_services:index')
exceptions.handle(self.request, msg, redirect=url) exceptions.handle(self.request, msg, redirect=url)
return self._object return self._object

View File

@@ -2,5 +2,5 @@
{% load i18n %} {% load i18n %}
{% block modal-body-right %} {% block modal-body-right %}
<h3>{% trans "Description" %}:</h3> <h3>{% trans "Description" %}:</h3>
<p>{% trans "Select parameters of share group you want to create. " %}</p> <p>{% trans "Select parameters of share group you want to create." %}</p>
{% endblock %} {% endblock %}

View File

@@ -15,7 +15,7 @@
<dt>{% trans "Created" %}</dt> <dt>{% trans "Created" %}</dt>
<dd>{{ share_group.created_at|parse_date }}</dd> <dd>{{ share_group.created_at|parse_date }}</dd>
{% if share_group.source_share_group_snapshot_id %} {% if share_group.source_share_group_snapshot_id %}
<dt>{% trans "Source SG Snapshot" %}</dt> <dt>{% trans "Source Share Group Snapshot" %}</dt>
{% url 'horizon:project:share_group_snapshots:detail' share_group.source_share_group_snapshot_id as ssgs_url%} {% url 'horizon:project:share_group_snapshots:detail' share_group.source_share_group_snapshot_id as ssgs_url%}
<dd><a href="{{ ssgs_url }}">{{ share_group.source_share_group_snapshot_id }}</a></dd> <dd><a href="{{ ssgs_url }}">{{ share_group.source_share_group_snapshot_id }}</a></dd>
{% endif %} {% endif %}

View File

@@ -39,7 +39,7 @@ class Create(forms.SelfHandlingForm):
choices=[(' ', ' ')] + choices=[(' ', ' ')] +
[(utils.transform_dashed_name(choice.id), [(utils.transform_dashed_name(choice.id),
choice.name_or_id) for choice in net_choices], choice.name_or_id) for choice in net_choices],
label=_("Neutron Net"), widget=forms.Select( label=_("Neutron Network"), widget=forms.Select(
attrs={'class': 'switchable', 'data-slug': 'net'})) attrs={'class': 'switchable', 'data-slug': 'net'}))
for net in net_choices: for net in net_choices:
# For each network create switched choice field with # For each network create switched choice field with

View File

@@ -97,8 +97,8 @@ class UpdateRow(tables.Row):
class ShareNetworksFilterAction(tables.FilterAction): class ShareNetworksFilterAction(tables.FilterAction):
filter_type = "server" filter_type = "server"
filter_choices = ( filter_choices = (
('name', _("Name "), True), ('name', _("Name") + " ", True),
('description', _("Description "), True), ('description', _("Description") + " ", True),
) )

View File

@@ -4,6 +4,7 @@
<h3>{% trans "Description" %}:</h3> <h3>{% trans "Description" %}:</h3>
<p>{% blocktrans trimmed %} <p>{% blocktrans trimmed %}
Share networks contain network data, that will be used Share networks contain network data, that will be used
for creation of service VM, where will be hosted shares. for creation of service instance, where will be
hosted shares.
{% endblocktrans %}</p> {% endblocktrans %}</p>
{% endblock %} {% endblock %}

View File

@@ -49,11 +49,11 @@ class AddShareNetworkSubnetAction(workflows.MembershipAction):
neutron_net_id = forms.ChoiceField( neutron_net_id = forms.ChoiceField(
required=False, required=False,
label=_('Neutron Net'), label=_('Neutron Network'),
widget=forms.ThemableSelectWidget(attrs={ widget=forms.ThemableSelectWidget(attrs={
'class': 'switchable', 'class': 'switchable',
'data-slug': 'neutron_net_id', 'data-slug': 'neutron_net_id',
'data-neutron_net_id': _('Neutron Net')})) 'data-neutron_net_id': _('Neutron Network')}))
class Meta(object): class Meta(object):
name = _("Subnet") name = _("Subnet")

View File

@@ -2,7 +2,7 @@
<h3>{% trans "Description" %}:</h3> <h3>{% trans "Description" %}:</h3>
<p>{% trans "Share Snapshots are used for storing share changes and creating shares. " %}</p> <p>{% trans "Share Snapshots are used for storing share changes and creating shares." %}</p>
<h3>{% trans "Share Limits" %}</h3> <h3>{% trans "Share Limits" %}</h3>

View File

@@ -385,7 +385,7 @@ class UpdateRuleMetadataForm(forms.SelfHandlingForm):
manila.share_rule_set_metadata(request, rule, set_dict) manila.share_rule_set_metadata(request, rule, set_dict)
if unset_list: if unset_list:
manila.share_rule_unset_metadata(request, rule, unset_list) manila.share_rule_unset_metadata(request, rule, unset_list)
message = _('Updating share access rule metadata ') message = _('Updating share access rule metadata')
messages.success(request, message) messages.success(request, message)
return True return True
except ValidationError as e: except ValidationError as e:
@@ -473,7 +473,7 @@ class ResizeForm(forms.SelfHandlingForm):
messages.success(request, message) messages.success(request, message)
return True return True
raise exceptions.WorkflowError(_( raise exceptions.WorkflowError(_(
"Unable to resize share. ")) "Unable to resize share."))
class RevertForm(forms.SelfHandlingForm): class RevertForm(forms.SelfHandlingForm):

View File

@@ -66,7 +66,7 @@ class DeleteShare(tables.DeleteAction):
manila.share_delete( manila.share_delete(
request, share.id, share_group_id=share.share_group_id) request, share.id, share_group_id=share.share_group_id)
except Exception: except Exception:
msg = _('Unable to delete share "%s". ') % obj_id msg = _('Unable to delete share "%s".') % obj_id
messages.error(request, msg) messages.error(request, msg)
def allowed(self, request, share=None): def allowed(self, request, share=None):

View File

@@ -42,7 +42,7 @@
{% else %} {% else %}
<dd>{{ 'private' }}</dd> <dd>{{ 'private' }}</dd>
{% endif %} {% endif %}
<dt>{% trans "Availability zone" %}</dt> <dt>{% trans "Availability Zone" %}</dt>
<dd>{{ share.availability_zone }}</dd> <dd>{{ share.availability_zone }}</dd>
<dt>{% trans "Size" %}</dt> <dt>{% trans "Size" %}</dt>
<dd>{{ share.size }} {% trans "GiB" %}</dd> <dd>{{ share.size }} {% trans "GiB" %}</dd>

View File

@@ -2,7 +2,7 @@
<h3>{% trans "Description" %}:</h3> <h3>{% trans "Description" %}:</h3>
<p>{% trans "Select parameters of share you want to create. " %}</p> <p>{% trans "Select parameters of share you want to create." %}</p>
<h3>{% trans "Metadata" %}:</h3> <h3>{% trans "Metadata" %}:</h3>
<p> <p>

View File

@@ -2,7 +2,7 @@
<h3>{% trans "Description" %}:</h3> <h3>{% trans "Description" %}:</h3>
<p>{% trans "Resize the size of a share. " %}</p> <p>{% trans "Resize the size of a share." %}</p>
<h3>{% trans "Share Limits" %}</h3> <h3>{% trans "Share Limits" %}</h3>

View File

@@ -29,7 +29,7 @@
</p></dd> </p></dd>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<dt>{% trans "Availability zone" %}</dt> <dt>{% trans "Availability Zone" %}</dt>
<dd>{{ replica.availability_zone }}</dd> <dd>{{ replica.availability_zone }}</dd>
<dt>{% trans "Created" %}</dt> <dt>{% trans "Created" %}</dt>