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

@@ -18,18 +18,25 @@
#
{% endcomment %}
{% load i18n %}
{% block content %}
<h2>{{ title }}</h2>
<h2>{{ title }}</h2>
<p>This will run unattended-upgrades, which will attempt to upgrade your system
with the latest Debian packages. It may take a few minutes to complete.</p>
<p>
{% blocktrans trimmed %}
This will run unattended-upgrades, which will attempt to upgrade
your system with the latest Debian packages. It may take a few
minutes to complete.
{% endblocktrans %}
</p>
<form class="form" method="post" action="{% url 'upgrades:run' %}">
{% csrf_token %}
<form class="form" method="post" action="{% url 'upgrades:run' %}">
{% csrf_token %}
<input type="submit" class="btn btn-primary" value="Upgrade now &raquo;"/>
</form>
<input type="submit" class="btn btn-primary"
value="{% trans "Upgrade now &raquo;" %}"/>
</form>
{% endblock %}
@@ -19,6 +19,7 @@
{% endcomment %}
{% load bootstrap %}
{% load i18n %}
{% block content %}
@@ -29,8 +30,8 @@
{{ form|bootstrap }}
<input type="submit" class="btn btn-primary btn-md" value="Update setup"/>
<input type="submit" class="btn btn-primary btn-md"
value="{% trans "Update setup" %}"/>
</form>
{% endblock %}
@@ -18,37 +18,42 @@
#
{% endcomment %}
{% load i18n %}
{% block content %}
<h2>{{title}}</h2>
<h2>{{title}}</h2>
{% if upgrades_error %}
<div class="alert alert-danger" role="alert">
There was an error while upgrading.
</div>
<h5>Output from unattended-upgrades:</h5>
<pre>{{ upgrades_error }}</pre>
{% endif %}
{% if upgrades_error %}
<div class="alert alert-danger" role="alert">
{% trans "There was an error while upgrading." %}
</div>
{% if upgrades_output %}
<div class="row">
<div class="col-lg-6">
<div class="alert alert-success" role="alert">
The operating system is up to date now. &nbsp;
<button type="button" class="btn btn-default show-details" style='display:none'>
Show Details
<div class="caret"></div>
</button>
<h5>{% trans "Output from unattended-upgrades:" %}</h5>
<pre>{{ upgrades_error }}</pre>
{% endif %}
{% if upgrades_output %}
<div class="row">
<div class="col-lg-6">
<div class="alert alert-success" role="alert">
{% trans "The operating system is up to date now. &nbsp;" %}
<button type="button" class="btn btn-default show-details"
style='display:none'>
{% trans "Show Details" %}
<div class="caret"></div>
</button>
</div>
</div>
</div>
</div>
<div class="details">
<h5>Output from unattended-upgrades:</h5>
<pre>{{ upgrades_output }}</pre>
</div>
<div class="details">
<h5>{% trans "Output from unattended-upgrades:" %}</h5>
<pre>{{ upgrades_output }}</pre>
</div>
{% endif %}
{% endif %}
{% endblock %}