mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-11 08:23:49 +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 %}
|
||||
{% if show_status_block %}
|
||||
<h3>Status</h3>
|
||||
<h3>{% trans "Status" %}</h3>
|
||||
<p class="running-status-parent">
|
||||
{% if service.is_running %}
|
||||
<span class="running-status active"></span>
|
||||
Service <i>{{ service.name }}</i> {% trans "is running" %}
|
||||
{% else %}
|
||||
<span class="running-status inactive"></span>
|
||||
Service <i>{{ service.name }}</i> {% trans "is not running" %}
|
||||
{% endif %}
|
||||
{% with service_name=service.name %}
|
||||
{% if service.is_running %}
|
||||
<span class="running-status active"></span>
|
||||
{% blocktrans trimmed %}
|
||||
Service <em>{{ service_name }}</em> is running.
|
||||
{% endblocktrans %}
|
||||
{% else %}
|
||||
<span class="running-status inactive"></span>
|
||||
{% blocktrans trimmed %}
|
||||
Service <em>{{ service_name }}</em> is not running.
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
@ -56,7 +62,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block configuration %}
|
||||
<h3>Configuration</h3>
|
||||
<h3>{% trans "Configuration" %}</h3>
|
||||
|
||||
<form class="form" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user