From 04a2543e681526a21fb8e85008bcb6ad7d3b91d4 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 2 Aug 2023 14:53:32 -0400 Subject: [PATCH] Fixes #13351: Fix missing text due to incorrectly applied translation tags --- docs/release-notes/version-3.6.md | 8 +++++++ netbox/templates/core/job.html | 7 +++++- netbox/templates/dcim/bulk_disconnect.html | 6 ++++- netbox/templates/dcim/cable_trace.html | 6 ++++- netbox/templates/dcim/device.html | 4 +++- .../templates/dcim/devicebay_depopulate.html | 12 ++++++++-- .../templates/dcim/inc/nonracked_devices.html | 10 +++++++-- .../templates/dcim/virtualchassis_edit.html | 6 ++++- .../dcim/virtualchassis_remove_member.html | 6 ++++- .../extras/configrevision_restore.html | 2 +- .../templates/generic/bulk_add_component.html | 4 +++- netbox/templates/generic/bulk_delete.html | 4 +++- netbox/templates/generic/bulk_edit.html | 4 +++- netbox/templates/generic/bulk_remove.html | 22 +++++++++++++++---- netbox/templates/generic/bulk_rename.html | 4 +++- netbox/templates/generic/object_delete.html | 4 +++- netbox/templates/generic/object_edit.html | 8 ++++++- netbox/templates/generic/object_list.html | 4 +++- netbox/templates/htmx/delete_form.html | 6 ++++- netbox/templates/htmx/object_selector.html | 2 +- .../templates/inc/missing_prerequisites.html | 6 +++-- netbox/templates/inc/paginator.html | 4 +++- netbox/templates/inc/paginator_htmx.html | 4 +++- .../virtualization/cluster_add_devices.html | 6 ++++- 24 files changed, 120 insertions(+), 29 deletions(-) diff --git a/docs/release-notes/version-3.6.md b/docs/release-notes/version-3.6.md index 314d613ff28..e2fcb1afeee 100644 --- a/docs/release-notes/version-3.6.md +++ b/docs/release-notes/version-3.6.md @@ -1,5 +1,13 @@ # NetBox v3.6 +## v3.6-beta2 (FUTURE) + +### Bug Fixes + +* [#13351](https://github.com/netbox-community/netbox/issues/13351) - Fix missing text due to incorrectly applied translation tags + +--- + ## v3.6-beta1 (2023-08-02) ### Breaking Changes diff --git a/netbox/templates/core/job.html b/netbox/templates/core/job.html index 2f97035949c..1fe3862cd0b 100644 --- a/netbox/templates/core/job.html +++ b/netbox/templates/core/job.html @@ -54,7 +54,12 @@
{% trans "Scheduling" %}
{% trans "Scheduled" %} - {{ object.scheduled|annotated_date|placeholder }}{% if object.interval %} ({% blocktrans %}every {{ object.interval }} seconds{% endblocktrans %}){% endif %} + + {{ object.scheduled|annotated_date|placeholder }} + {% if object.interval %} + ({% blocktrans with interval=object.interval %}every {{ interval }} seconds{% endblocktrans %}) + {% endif %} + {% trans "Started" %} diff --git a/netbox/templates/dcim/bulk_disconnect.html b/netbox/templates/dcim/bulk_disconnect.html index 26becb70bb1..ede0df35760 100644 --- a/netbox/templates/dcim/bulk_disconnect.html +++ b/netbox/templates/dcim/bulk_disconnect.html @@ -5,7 +5,11 @@ {% block title %}{% trans "Disconnect" %} {{ obj_type_plural|bettertitle }}{% endblock %} {% block message %} -

{% blocktrans %}Are you sure you want to disconnect these {{ selected_objects|length }} {{ obj_type_plural }}?{% endblocktrans %}

+

+ {% blocktrans with count=selected_objects|length %} + Are you sure you want to disconnect these {{ count }} {{ obj_type_plural }}? + {% endblocktrans %} +

- {% blocktrans %}Showing {{ page.start_index }}-{{ page.end_index }} of {{ page.paginator.count }}{% endblocktrans %} + {% blocktrans with start=page.start_index end=page.end_index total=page.paginator.count %} + Showing {{ start }}-{{ end }} of {{ total }} + {% endblocktrans %} {% endif %} diff --git a/netbox/templates/virtualization/cluster_add_devices.html b/netbox/templates/virtualization/cluster_add_devices.html index 97d3e420060..0116bbdffe7 100644 --- a/netbox/templates/virtualization/cluster_add_devices.html +++ b/netbox/templates/virtualization/cluster_add_devices.html @@ -5,7 +5,11 @@ {% render_errors form %} -{% block title %}{% blocktrans %}Add Device to Cluster {{ cluster }}{% endblocktrans %}{% endblock %} +{% block title %} + {% blocktrans %} + Add Device to Cluster {{ cluster }} + {% endblocktrans %} +{% endblock %} {% block content %}