summaryrefslogtreecommitdiff
path: root/web/kbn_templates/sms.j2
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2024-02-19 03:44:40 +0300
committerEvgeny Zinoviev <me@ch1p.io>2024-02-19 03:44:40 +0300
commit840cbe4729ac8960c0dc0d23aca0405335f9ecb4 (patch)
tree3c6c0af54c947c9dac3aa7fafc027e79db8e25b4 /web/kbn_templates/sms.j2
parent838b01c548939158f99529a714fe105249d70675 (diff)
user language support, other important fixes
Diffstat (limited to 'web/kbn_templates/sms.j2')
-rw-r--r--web/kbn_templates/sms.j28
1 files changed, 4 insertions, 4 deletions
diff --git a/web/kbn_templates/sms.j2 b/web/kbn_templates/sms.j2
index cd91610..41be6fc 100644
--- a/web/kbn_templates/sms.j2
+++ b/web/kbn_templates/sms.j2
@@ -7,7 +7,7 @@
<div class="nav nav-tabs" id="nav-tab">
{% for modem in modems.keys() %}
{% if selected_modem != modem %}<a href="/sms.cgi?id={{ modem }}" class="text-decoration-none">{% endif %}
- <button class="nav-link{% if modem == selected_modem %} active{% endif %}" type="button">{{ modems.getshortname(modem) }}</button>
+ <button class="nav-link{% if modem == selected_modem %} active{% endif %}" type="button">{{ (modem|lang('modems'))['short'] }}</button>
{% if selected_modem != modem %}</a>{% endif %}
{% endfor %}
</div>
@@ -43,11 +43,11 @@
</div>
<h6 class="text-primary mt-4">
- Последние
+ {{ "sms_latest"|lang }}
{% if not is_outbox %}
- <b>входящие</b> <span class="text-black-50">|</span> <a href="/sms.cgi?id={{ selected_modem }}&amp;outbox=1">исходящие</a>
+ <b>{{ "sms_inbox"|lang }}</b> <span class="text-black-50">|</span> <a href="/sms.cgi?id={{ selected_modem }}&amp;outbox=1">{{ "sms_outbox"|lang }}</a>
{% else %}
- <a href="/sms.cgi?id={{ selected_modem }}">входящие</a> <span class="text-black-50">|</span> <b>исходящие</b>
+ <a href="/sms.cgi?id={{ selected_modem }}">{{ "sms_inbox"|lang }}</a> <span class="text-black-50">|</span> <b>{{ "sms_outbox"|lang }}</b>
{% endif %}
</h6>