Internationalize strings in template files

This commit is contained in:
Sunil Mohan Adapa committed 2015-11-13 22:02:17 +05:30
1 parent 139db064a9
commit 02cd89b60d
64 files changed
+1331 -815

No files matched your search

+26 -17
View File
@@ -19,32 +19,41 @@
{% endcomment %}
{% load bootstrap %}
{% load i18n %}
{% block content %}
<h2>Date & Time</h2>
<h2>{% trans "Date & Time" %}</h2>
<p>Network time server is a program that maintians the system time in synchronization with servers on the Internet.</p>
<p>
{% blocktrans trimmed %}
Network time server is a program that maintians the system time
in synchronization with servers on the Internet.
{% endblocktrans %}
</p>
<h3>Status</h3>
<h3>{% trans "Status" %}</h3>
<p class="running-status-parent">
{% if status.is_running %}
<span class="running-status active"></span> Network time server is running
{% else %}
<span class="running-status inactive"></span> Network time server is not running
{% endif %}
</p>
{% include "diagnostics_button.html" with module="datetime" %}
<p class="running-status-parent">
{% if status.is_running %}
<span class="running-status active"></span>
{% trans "Network time server is running" %}
{% else %}
<span class="running-status inactive"></span>
{% trans "Network time server is not running" %}
{% endif %}
</p>
{% include "diagnostics_button.html" with module="datetime" %}
<h3>Configuration</h3>
<h3>{% trans "Configuration" %}</h3>
<form class="form" method="post">
{% csrf_token %}
<form class="form" method="post">
{% csrf_token %}
{{ form|bootstrap }}
{{ form|bootstrap }}
<input type="submit" class="btn btn-primary" value="Update setup"/>
</form>
<input type="submit" class="btn btn-primary"
value="{% trans "Update setup" %}"/>
</form>
{% endblock %}