13102 blocktranslate

This commit is contained in:
Arthur 2023-07-07 13:33:20 +07:00 committed by Jeremy Stretch
parent b029e662d3
commit b530d860e7
34 changed files with 50 additions and 50 deletions

View File

@ -54,7 +54,7 @@
</tr> </tr>
<tr> <tr>
<th scope="row">{% trans "Scheduled" %}</th> <th scope="row">{% trans "Scheduled" %}</th>
<td>{{ object.scheduled|annotated_date|placeholder }}{% if object.interval %} ({% trans "every" %} {{ object.interval }} {% trans "seconds" %}){% endif %}</td> <td>{{ object.scheduled|annotated_date|placeholder }}{% if object.interval %} ({% blocktranslate %}every {{ object.interval }} seconds{% endblocktranslate %}){% endif %}</td>
</tr> </tr>
<tr> <tr>
<th scope="row">{% trans "Started" %}</th> <th scope="row">{% trans "Started" %}</th>

View File

@ -2,7 +2,7 @@
{% load helpers %} {% load helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Cable Trace for" %} {{ object|meta:"verbose_name"|bettertitle }} {{ object }}{% endblock %} {% block title %}{% blocktranslate %}Cable Trace for {{ object|meta:"verbose_name"|bettertitle }} {{ object }}{% endblocktranslate %}{% endblock %}
{% block content %} {% block content %}
<div class="row"> <div class="row">
@ -28,7 +28,7 @@
{% with viewname=next_node|viewname:"trace" %} {% with viewname=next_node|viewname:"trace" %}
<li> <li>
<a href="{% url viewname pk=next_node.pk %}">{{ next_node|meta:"verbose_name"|bettertitle }} {{ next_node }}</a> <a href="{% url viewname pk=next_node.pk %}">{{ next_node|meta:"verbose_name"|bettertitle }} {{ next_node }}</a>
({% trans "Cable" %} {{ next_node.cable|linkify }}) ({% blocktranslate %}Cable {{ next_node.cable|linkify }}{% endblocktranslate %})
</li> </li>
{% endwith %} {% endwith %}
{% else %} {% else %}

View File

@ -2,8 +2,8 @@
{% load form_helpers %} {% load form_helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Delete console port" %} {{ consoleport }}?{% endblock %} {% block title %}{% blocktranslate %}Delete console port {{ consoleport }}?{% endblocktranslate %}{% endblock %}
{% block message %} {% block message %}
<p>{% trans "Are you sure you want to delete this console port from" %} <strong>{{ consoleport.device }}</strong>?</p> <p>{% blocktranslate %}Are you sure you want to delete this console port from <strong>{{ consoleport.device }}</strong>?{% endblocktranslate %}</p>
{% endblock %} {% endblock %}

View File

@ -2,8 +2,8 @@
{% load form_helpers %} {% load form_helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Delete console server port" %} {{ consoleserverport }}?{% endblock %} {% block title %}{% blocktranslate %}Delete console server port {{ consoleserverport }}?{% endblocktranslate %}{% endblock %}
{% block message %} {% block message %}
<p>{% trans "Are you sure you want to delete this console server port from" %} <strong>{{ consoleserverport.device }}</strong>?</p> <p>{% blocktranslate %}Are you sure you want to delete this console server port from <strong>{{ consoleserverport.device }}</strong>?{% endblocktranslate %}</p>
{% endblock %} {% endblock %}

View File

@ -295,7 +295,7 @@
</tr> </tr>
{% for leg in utilization.legs %} {% for leg in utilization.legs %}
<tr> <tr>
<td style="padding-left: 20px">{% trans "Leg" %} {{ leg.name }}</td> <td style="padding-left: 20px">{% blocktranslate %}Leg {{ leg.name }}{% endblocktranslate %}</td>
<td>{{ leg.outlet_count }}</td> <td>{{ leg.outlet_count }}</td>
<td>{{ leg.allocated }}</td> <td>{{ leg.allocated }}</td>
{% if powerfeed.available_power %} {% if powerfeed.available_power %}

View File

@ -2,8 +2,8 @@
{% load form_helpers %} {% load form_helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Delete device bay" %} {{ devicebay }}?{% endblock %} {% block title %}{% blocktranslate %}Delete device bay {{ devicebay }}?{% endblocktranslate %}{% endblock %}
{% block message %} {% block message %}
<p>{% trans "Are you sure you want to delete this device bay from" %} <strong>{{ devicebay.device }}</strong>?</p> <p>{% blocktranslate %}Are you sure you want to delete this device bay from <strong>{{ devicebay.device }}</strong>?{% endblocktranslate %}</p>
{% endblock %} {% endblock %}

View File

@ -2,8 +2,8 @@
{% load form_helpers %} {% load form_helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Remove" %} {{ device_bay.installed_device }} {% trans "from" %} {{ device_bay }}?{% endblock %} {% block title %}{% blocktranslate %}Remove {{ device_bay.installed_device }} from {{ device_bay }}?{% endblocktranslate %}{% endblock %}
{% block message %} {% block message %}
<p>{% trans "Are you sure you want to remove" %} <strong>{{ device_bay.installed_device }}</strong> {% trans "from" %} <strong>{{ device_bay }}</strong>?</p> <p>{% blocktranslate %}Are you sure you want to remove <strong>{{ device_bay.installed_device }}</strong> from <strong>{{ device_bay }}</strong>?{% endblocktranslate %}</p>
{% endblock %} {% endblock %}

View File

@ -27,7 +27,7 @@
<div class="float-end"> <div class="float-end">
<a href="{% url table.Meta.model|viewname:"add" %}?device_type={{ object.pk }}&return_url={{ return_url }}" class="btn btn-primary btn-sm"> <a href="{% url table.Meta.model|viewname:"add" %}?device_type={{ object.pk }}&return_url={{ return_url }}" class="btn btn-primary btn-sm">
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> <i class="mdi mdi-plus-thick" aria-hidden="true"></i>
{% trans "Add" %} {{ title }} {% blocktranslate %}Add {{ title }}{% endblocktranslate %}
</a> </a>
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>

View File

@ -34,11 +34,11 @@
{% if total_nonracked_devices_count > nonracked_devices.count %} {% if total_nonracked_devices_count > nonracked_devices.count %}
{% if object|meta:'verbose_name' == 'site' %} {% if object|meta:'verbose_name' == 'site' %}
<div class="text-muted"> <div class="text-muted">
{% trans "Displaying" %} {{ nonracked_devices.count }} {% trans "of" %} {{ total_nonracked_devices_count }} {% trans "devices" %} (<a href="{% url 'dcim:device_list' %}?site_id={{ object.pk }}&rack_id=null">{% trans "View full list" %}</a>) {% blocktranslate %}Displaying {{ nonracked_devices.count }} of {{ total_nonracked_devices_count }} devices{% endblocktranslate %} (<a href="{% url 'dcim:device_list' %}?site_id={{ object.pk }}&rack_id=null">{% trans "View full list" %}</a>)
</div> </div>
{% elif object|meta:'verbose_name' == 'location' %} {% elif object|meta:'verbose_name' == 'location' %}
<div class="text-muted"> <div class="text-muted">
{% trans "Displaying" %} {{ nonracked_devices.count }} {% trans "of" %} {{ total_nonracked_devices_count }} {% trans "devices" %} (<a href="{% url 'dcim:device_list' %}?location_id={{ object.pk }}&rack_id=null">{% trans "View full list" %}</a>) {% blocktranslate %}Displaying {{ nonracked_devices.count }} of {{ total_nonracked_devices_count }} devices{% endblocktranslate %} (<a href="{% url 'dcim:device_list' %}?location_id={{ object.pk }}&rack_id=null">{% trans "View full list" %}</a>)
</div> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}

View File

@ -2,8 +2,8 @@
{% load form_helpers %} {% load form_helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Delete interface" %} {{ interface }}?{% endblock %} {% block title %}{% blocktranslate %}Delete interface {{ interface }}?{% endblocktranslate %}{% endblock %}
{% block message %} {% block message %}
<p>{% trans "Are you sure you want to delete this interface from" %} <strong>{{ interface.device }}</strong>?</p> <p>{% blocktranslate %}Are you sure you want to delete this interface from <strong>{{ interface.device }}</strong>?{% endblocktranslate %}</p>
{% endblock %} {% endblock %}

View File

@ -2,8 +2,8 @@
{% load form_helpers %} {% load form_helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Delete inventory item" %} {{ inventoryitem }}?{% endblock %} {% block title %}{% blocktranslate %}Delete inventory item {{ inventoryitem }}?{% endblocktranslate %}{% endblock %}
{% block message %} {% block message %}
<p>{% trans "Are you sure you want to delete this inventory item from" %} <strong>{{ inventoryitem.device }}</strong>?</p> <p>{% blocktranslate %}Are you sure you want to delete this inventory item from <strong>{{ inventoryitem.device }}</strong>?{% endblocktranslate %}</p>
{% endblock %} {% endblock %}

View File

@ -27,7 +27,7 @@
<div class="float-end"> <div class="float-end">
<a href="{% url table.Meta.model|viewname:"add" %}?module_type={{ object.pk }}&return_url={{ return_url }}" class="btn btn-primary btn-sm"> <a href="{% url table.Meta.model|viewname:"add" %}?module_type={{ object.pk }}&return_url={{ return_url }}" class="btn btn-primary btn-sm">
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> <i class="mdi mdi-plus-thick" aria-hidden="true"></i>
{% trans "Add" %} {{ title }} {% blocktranslate %}Add {{ title }}{% endblocktranslate %}
</a> </a>
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>

View File

@ -2,8 +2,8 @@
{% load form_helpers %} {% load form_helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Delete power outlet" %} {{ poweroutlet }}?{% endblock %} {% block title %}{% blocktranslate %}Delete power outlet {{ poweroutlet }}?{% endblocktranslate %}{% endblock %}
{% block message %} {% block message %}
<p>{% trans "Are you sure you want to delete this power outlet from" %} <strong>{{ poweroutlet.device }}</strong>?</p> <p>{% blocktranslate %}Are you sure you want to delete this power outlet from <strong>{{ poweroutlet.device }}</strong>?{% endblocktranslate %}</p>
{% endblock %} {% endblock %}

View File

@ -2,8 +2,8 @@
{% load form_helpers %} {% load form_helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Delete power port" %} {{ powerport }}?{% endblock %} {% block title %}{% blocktranslate %}Delete power port {{ powerport }}?{% endblocktranslate %}{% endblock %}
{% block message %} {% block message %}
<p>{% trans "Are you sure you want to delete this power port from" %} <strong>{{ powerport.device }}</strong>?</p> <p>{% blocktranslate %}Are you sure you want to delete this power port from <strong>{{ powerport.device }}</strong>?{% endblocktranslate %}</p>
{% endblock %} {% endblock %}

View File

@ -1,7 +1,7 @@
{% extends 'generic/object.html' %} {% extends 'generic/object.html' %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Rack" %} {{ object }}{% endblock %} {% block title %}{% blocktranslate %}Rack {{ object }}{% endblocktranslate %}{% endblock %}
{% block breadcrumbs %} {% block breadcrumbs %}
{{ block.super }} {{ block.super }}

View File

@ -24,7 +24,7 @@
</div> </div>
<div class="dropdown"> <div class="dropdown">
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="mdi mdi-sort"></i>&nbsp;{% trans "Sort By" %} {{ sort_display_name }} <i class="mdi mdi-sort"></i>&nbsp;{% blocktranslate %}Sort By {{ sort_display_name }}{% endblocktranslate %}
</button> </button>
<ul class="dropdown-menu dropdown-menu-end"> <ul class="dropdown-menu dropdown-menu-end">
{% for sort_key, sort_display_name in sort_choices.items %} {% for sort_key, sort_display_name in sort_choices.items %}

View File

@ -2,7 +2,7 @@
{% load form_helpers %} {% load form_helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Add New Member to Virtual Chassis" %} {{ virtual_chassis }}{% endblock %} {% block title %}{% blocktranslate %}Add New Member to Virtual Chassis {{ virtual_chassis }}{% endblocktranslate %}{% endblock %}
{% block content %} {% block content %}
<form action="" method="post" enctype="multipart/form-data" class="form-object-edit"> <form action="" method="post" enctype="multipart/form-data" class="form-object-edit">

View File

@ -3,7 +3,7 @@
{% load form_helpers %} {% load form_helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Editing Virtual Chassis" %} {{ vc_form.instance }}{% endblock %} {% block title %}{% blocktranslate %}Editing Virtual Chassis {{ vc_form.instance }}{% endblocktranslate %}{% endblock %}
{% block content-wrapper %} {% block content-wrapper %}
<div class="tab-content"> <div class="tab-content">

View File

@ -5,5 +5,5 @@
{% block title %}{% trans "Remove Virtual Chassis Member" %}?{% endblock %} {% block title %}{% trans "Remove Virtual Chassis Member" %}?{% endblock %}
{% block message %} {% block message %}
<p>{% trans "Are you sure you want to remove" %} <strong>{{ device }}</strong> {% trans "from virtual chassis" %} {{ device.virtual_chassis }}?</p> <p>{% blocktranslate %}Are you sure you want to remove <strong>{{ device }}</strong> from virtual chassis {{ device.virtual_chassis }}?{% endblocktranslate %}</p>
{% endblock %} {% endblock %}

View File

@ -9,7 +9,7 @@
{% block subtitle %} {% block subtitle %}
<div class="object-subtitle"> <div class="object-subtitle">
<span>{% trans "Created" %} {{ object.created|annotated_date }}</span> <span>{% blocktranslate %}Created {{ object.created|annotated_date }}{% endblocktranslate %}</span>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -153,7 +153,7 @@
{% include 'inc/panel_table.html' with table=related_changes_table heading='Related Changes' panel_class='default' %} {% include 'inc/panel_table.html' with table=related_changes_table heading='Related Changes' panel_class='default' %}
{% if related_changes_count > related_changes_table.rows|length %} {% if related_changes_count > related_changes_table.rows|length %}
<div class="float-end"> <div class="float-end">
<a href="{% url 'extras:objectchange_list' %}?request_id={{ object.request_id }}" class="btn btn-primary">{% trans "See All" %} {{ related_changes_count|add:"1" }} {% trans "Changes" %}</a> <a href="{% url 'extras:objectchange_list' %}?request_id={{ object.request_id }}" class="btn btn-primary">{% blocktranslate %}See All {{ related_changes_count|add:"1" }} Changes{% endblocktranslate %}</a>
</div> </div>
{% endif %} {% endif %}
</div> </div>

View File

@ -4,7 +4,7 @@
{% load render_table from django_tables2 %} {% load render_table from django_tables2 %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Add" %} {{ model_name|title }}{% endblock %} {% block title %}{% blocktranslate %}Add {{ model_name|title }}{% endblocktranslate %}{% endblock %}
{% block tabs %} {% block tabs %}
<ul class="nav nav-tabs px-3"> <ul class="nav nav-tabs px-3">

View File

@ -14,7 +14,7 @@ Context:
return_url: The URL to which the user is redirected after submitting the form return_url: The URL to which the user is redirected after submitting the form
{% endcomment %} {% endcomment %}
{% block title %}{% trans "Delete" %} {{ table.rows|length }} {{ model|meta:"verbose_name_plural"|bettertitle }}?{% endblock %} {% block title %}{% blocktranslate %}Delete {{ table.rows|length }} {{ model|meta:"verbose_name_plural"|bettertitle }}?{% endblocktranslate %}{% endblock %}
{% block content %} {% block content %}
<div class="container-md px-0"> <div class="container-md px-0">
@ -37,7 +37,7 @@ Context:
{{ field }} {{ field }}
{% endfor %} {% endfor %}
<div class="text-end"> <div class="text-end">
<button type="submit" name="_confirm" class="btn btn-danger">{% trans "Delete" %} {{ table.rows|length }} {{ model|meta:"verbose_name_plural" }}</button> <button type="submit" name="_confirm" class="btn btn-danger">{% blocktranslate %}Delete {{ table.rows|length }} {{ model|meta:"verbose_name_plural" }}{% endblocktranslate %}</button>
<a href="{{ return_url }}" class="btn btn-outline-dark">{% trans "Cancel" %}</a> <a href="{{ return_url }}" class="btn btn-outline-dark">{% trans "Cancel" %}</a>
</div> </div>
</form> </form>

View File

@ -12,7 +12,7 @@ Context:
return_url: The URL to which the user is redirected after submitting the form return_url: The URL to which the user is redirected after submitting the form
{% endcomment %} {% endcomment %}
{% block title %}{% trans "Editing" %} {{ table.rows|length }} {{ model|meta:"verbose_name_plural"|bettertitle }}{% endblock %} {% block title %}{% blocktranslate %}Editing {{ table.rows|length }} {{ model|meta:"verbose_name_plural"|bettertitle }}{% endblocktranslate %}{% endblock %}
{% block tabs %} {% block tabs %}
<ul class="nav nav-tabs px-3"> <ul class="nav nav-tabs px-3">

View File

@ -3,15 +3,15 @@
{% load render_table from django_tables2 %} {% load render_table from django_tables2 %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Remove" %} {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblock %} {% block title %}{% blocktranslate %}Remove {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblocktranslate %}{% endblock %}
{% block content %} {% block content %}
<div class="container-md px-0"> <div class="container-md px-0">
<div class="alert alert-danger" role="alert"> <div class="alert alert-danger" role="alert">
<h4 class="alert-heading">{% trans "Confirm Bulk Removal" %}</h4> <h4 class="alert-heading">{% trans "Confirm Bulk Removal" %}</h4>
<p><strong>{% trans "Warning" %}:</strong> {% trans "The following operation will remove" %} {{ table.rows|length }} {{ obj_type_plural }} {% trans "from" %} {{ parent_obj }}.</p> <p><strong>{% blocktranslate %}Warning:</strong> The following operation will remove {{ table.rows|length }} {{ obj_type_plural }} from {{ parent_obj }}.{% endblocktranslate %}</p>
<hr /> <hr />
<p class="mb-0">{% trans "Please carefully review the" %} {{ obj_type_plural }} {% trans "to be removed and confirm below" %}.</p> <p class="mb-0">{% blocktranslate %}Please carefully review the {{ obj_type_plural }} to be removed and confirm below.{% endblocktranslate %}</p>
</div> </div>
</div> </div>
<div class="container-xl px-0"> <div class="container-xl px-0">
@ -24,7 +24,7 @@
{{ field }} {{ field }}
{% endfor %} {% endfor %}
<div class="text-center"> <div class="text-center">
<button type="submit" name="_confirm" class="btn btn-danger">{% trans "Delete these" %} {{ table.rows|length }} {{ obj_type_plural }}</button> <button type="submit" name="_confirm" class="btn btn-danger">{% blocktranslate %}Delete these {{ table.rows|length }} {{ obj_type_plural }}{% endblocktranslate %}</button>
<a href="{{ return_url }}" class="btn btn-outline-dark">{% trans "Cancel" %}</a> <a href="{{ return_url }}" class="btn btn-outline-dark">{% trans "Cancel" %}</a>
</div> </div>
</form> </form>

View File

@ -3,7 +3,7 @@
{% load form_helpers %} {% load form_helpers %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Renaming" %} {{ selected_objects|length }} {{ obj_type_plural|bettertitle }}{% endblock %} {% block title %}{% blocktranslate %}Renaming {{ selected_objects|length }} {{ obj_type_plural|bettertitle }}{% endblocktranslate %}{% endblock %}
{% block content %} {% block content %}
<div class="row mb-3"> <div class="row mb-3">

View File

@ -11,7 +11,7 @@ Context:
return_url: The URL to which the user is redirected after submitting the form return_url: The URL to which the user is redirected after submitting the form
{% endcomment %} {% endcomment %}
{% block title %}{% trans "Delete" %} {{ object|meta:"verbose_name" }}?{% endblock %} {% block title %}{% blocktranslate %}Delete {{ object|meta:"verbose_name" }}?{% endblocktranslate %}{% endblock %}
{% block header %}{% endblock %} {% block header %}{% endblock %}

View File

@ -13,7 +13,7 @@ Context:
{% endcomment %} {% endcomment %}
{% block title %} {% block title %}
{% if object.pk %}{% trans "Editing" %} {{ object|meta:"verbose_name" }} {{ object }}{% else %}{% trans "Add a new" %} {{ object|meta:"verbose_name" }}{% endif %} {% if object.pk %}{% blocktranslate %}Editing {{ object|meta:"verbose_name" }} {{ object }}{% endblocktranslate %}{% else %}{% blocktranslate %}Add a new {{ object|meta:"verbose_name" }}{% endblocktranslate %}{% endif %}
{% endblock title %} {% endblock title %}
{% block tabs %} {% block tabs %}

View File

@ -91,7 +91,7 @@ Context:
<div class="form-check"> <div class="form-check">
<input type="checkbox" id="select-all" name="_all" class="form-check-input" /> <input type="checkbox" id="select-all" name="_all" class="form-check-input" />
<label for="select-all" class="form-check-label"> <label for="select-all" class="form-check-label">
{% trans "Select" %} <strong>{% trans "all" %} {{ table.rows|length }} {{ table.data.verbose_name_plural }}</strong> {% trans "matching query" %} {% blocktranslate %}Select <strong>all {{ table.rows|length }} {{ table.data.verbose_name_plural }}</strong> matching query{% endblocktranslate %}
</label> </label>
</div> </div>
</div> </div>

View File

@ -2,7 +2,7 @@
{% load i18n %} {% load i18n %}
<div class="modal-header"> <div class="modal-header">
<h5 class="modal-title">{% trans "Select" %} {{ model|meta:"verbose_name"|bettertitle }}</h5> <h5 class="modal-title">{% blocktranslate %}Select {{ model|meta:"verbose_name"|bettertitle }}{% endblocktranslate %}</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div> </div>
<div class="modal-body row"> <div class="modal-body row">
@ -17,7 +17,7 @@
</div> </div>
</div> </div>
<div class="col-9"> <div class="col-9">
<form hx-get="{% url 'htmx_object_selector' %}?_model={{ model|meta:"{% trans "label_lower" %}" }}" hx-target="#selector_results" hx-trigger="load, submit, keyup from:#id_q delay:500ms"> <form hx-get="{% url 'htmx_object_selector' %}?_model={{ model|meta:"label_lower" }}" hx-target="#selector_results" hx-trigger="load, submit, keyup from:#id_q delay:500ms">
<input type="hidden" name="_search" value="true" /> <input type="hidden" name="_search" value="true" />
<div class="tab-content p-1"> <div class="tab-content p-1">
{% for field in form.visible_fields %} {% for field in form.visible_fields %}

View File

@ -3,8 +3,8 @@
<div class="alert alert-warning text-end" role="alert"> <div class="alert alert-warning text-end" role="alert">
<div class="float-start"> <div class="float-start">
<i class="mdi mdi-alert"></i> {% trans "Before you can add a" %} {{ model|meta:"verbose_name" }} {% trans "you must first create a" %} <i class="mdi mdi-alert"></i> {% blocktranslate %}Before you can add a {{ model|meta:"verbose_name" }} you must first create a
<strong>{{ prerequisite_model|meta:"verbose_name" }}</strong>. <strong>{{ prerequisite_model|meta:"verbose_name" }}</strong>.{% endblocktranslate %}
</div> </div>
{% add_button prerequisite_model %} {% add_button prerequisite_model %}
</div> </div>

View File

@ -46,7 +46,7 @@
</ul> </ul>
</div> </div>
<small class="text-end text-muted"> <small class="text-end text-muted">
{% trans "Showing" %} {{ page.start_index }}-{{ page.end_index }} {% trans "of" %} {{ page.paginator.count }} {% blocktranslate %}Showing {{ page.start_index }}-{{ page.end_index }} of {{ page.paginator.count }}{% endblocktranslate %}
</small> </small>
{% endif %} {% endif %}
</div> </div>

View File

@ -66,7 +66,7 @@
</ul> </ul>
</div> </div>
<small class="text-end text-muted"> <small class="text-end text-muted">
{% trans "Showing" %} {{ page.start_index }}-{{ page.end_index }} {% trans "of" %} {{ page.paginator.count }} {% blocktranslate %}Showing {{ page.start_index }}-{{ page.end_index }} of {{ page.paginator.count }}{% endblocktranslate %}
</small> </small>
{% endif %} {% endif %}
</div> </div>

View File

@ -5,7 +5,7 @@
{% render_errors form %} {% render_errors form %}
{% block title %}{% trans "Add Device to Cluster" %} {{ cluster }}{% endblock %} {% block title %}{% blocktranslate %}Add Device to Cluster {{ cluster }}{% endblocktranslate %}{% endblock %}
{% block content %} {% block content %}
<form action="." method="post"> <form action="." method="post">