mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
service: Fix i18n of strings in service template
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
8059e6d12c
commit
fd3df85ace
@ -36,15 +36,21 @@
|
|||||||
|
|
||||||
{% block status %}
|
{% block status %}
|
||||||
{% if show_status_block %}
|
{% if show_status_block %}
|
||||||
<h3>Status</h3>
|
<h3>{% trans "Status" %}</h3>
|
||||||
<p class="running-status-parent">
|
<p class="running-status-parent">
|
||||||
{% if service.is_running %}
|
{% with service_name=service.name %}
|
||||||
<span class="running-status active"></span>
|
{% if service.is_running %}
|
||||||
Service <i>{{ service.name }}</i> {% trans "is running" %}
|
<span class="running-status active"></span>
|
||||||
{% else %}
|
{% blocktrans trimmed %}
|
||||||
<span class="running-status inactive"></span>
|
Service <em>{{ service_name }}</em> is running.
|
||||||
Service <i>{{ service.name }}</i> {% trans "is not running" %}
|
{% endblocktrans %}
|
||||||
{% endif %}
|
{% else %}
|
||||||
|
<span class="running-status inactive"></span>
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
Service <em>{{ service_name }}</em> is not running.
|
||||||
|
{% endblocktrans %}
|
||||||
|
{% endif %}
|
||||||
|
{% endwith %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -56,7 +62,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
<h3>Configuration</h3>
|
<h3>{% trans "Configuration" %}</h3>
|
||||||
|
|
||||||
<form class="form" method="post">
|
<form class="form" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user