make templates/banned.html translatable
This commit is contained in:
parent
936bb07fcb
commit
c7d065432b
@ -1,18 +1,18 @@
|
|||||||
{% filter remove_whitespace %}
|
{% filter remove_whitespace %}
|
||||||
{# Automatically removes unnecessary whitespace #}
|
{# Automatically removes unnecessary whitespace #}
|
||||||
<div class="ban">
|
<div class="ban">
|
||||||
<h2>You are banned! ;_;</h2>
|
<h2>{% trans %}You are banned! ;_;{% endtrans %}</h2>
|
||||||
<p>
|
<p>
|
||||||
You have been banned from
|
{% trans %}You have been banned from
|
||||||
{% if ban.uri %}
|
{% if ban.uri %}
|
||||||
<strong>{{ config.board_abbreviation|sprintf(ban.uri) }}</strong>
|
<strong>{{ config.board_abbreviation|sprintf(ban.uri) }}</strong>
|
||||||
{% else %}
|
{% else %}
|
||||||
all boards
|
{% trans %}all boards{% endtrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if ban.reason %}
|
{% if ban.reason %}
|
||||||
for the following reason:
|
{% trans %}for the following reason:{% endtrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
for an unspecified reason.
|
{% trans %}for an unspecified reason.{% endtrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% if ban.reason %}
|
{% if ban.reason %}
|
||||||
@ -21,10 +21,10 @@
|
|||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p>
|
<p>
|
||||||
Your ban was filed on
|
{% trans %}Your ban was filed on{% endtrans %}
|
||||||
<strong>{{ ban.set|date(config.ban_date) }}</strong> and <span id="expires">
|
<strong>{{ ban.set|date(config.ban_date) }}</strong> {% trans %}and{% endtrans %} <span id="expires">
|
||||||
{% if ban.expires %}
|
{% if ban.expires %}
|
||||||
expires <span id="countdown">{{ ban.expires|until }}</span> from now, which is on
|
{% trans %}expires{% endtrans %} <span id="countdown">{{ ban.expires|until }}</span> {% trans %}from now, which is on{% endtrans %}
|
||||||
<strong>
|
<strong>
|
||||||
{{ ban.expires|date(config.ban_date) }}
|
{{ ban.expires|date(config.ban_date) }}
|
||||||
</strong>
|
</strong>
|
||||||
@ -38,7 +38,7 @@
|
|||||||
var now = new Date().getTime();
|
var now = new Date().getTime();
|
||||||
var diff = Math.round((end - now) / 1000);
|
var diff = Math.round((end - now) / 1000);
|
||||||
if (diff < 0) {
|
if (diff < 0) {
|
||||||
document.getElementById("expires").innerHTML = "has since expired. Refresh the page to continue.";
|
document.getElementById("expires").innerHTML = "{% trans %}has since expired. Refresh the page to continue.{% endtrans %}";
|
||||||
clearInterval(int);
|
clearInterval(int);
|
||||||
return "";
|
return "";
|
||||||
} else if (diff < 60) {
|
} else if (diff < 60) {
|
||||||
@ -61,10 +61,10 @@
|
|||||||
var int = setInterval(updateExpiresTime, 1000);
|
var int = setInterval(updateExpiresTime, 1000);
|
||||||
</script>
|
</script>
|
||||||
{% else %}
|
{% else %}
|
||||||
<em>will not expire</em>.
|
<em>{% trans %}will not expire{% endtrans %}</em>.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p>Your IP address is <strong>{{ ban.ip }}</strong>.</p>
|
<p>{% trans %}Your IP address is{% endtrans %} <strong>{{ ban.ip }}</strong>.</p>
|
||||||
</div>
|
</div>
|
||||||
{% endfilter %}
|
{% endfilter %}
|
||||||
|
Loading…
Reference in New Issue
Block a user