diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2024-02-18 02:41:40 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2024-02-18 02:41:40 +0300 |
commit | d79309e498cdc1358c81367ce2a93a5731e517d1 (patch) | |
tree | 675f200a986dfacd7d80787aa08570ef418ffa0a /web/kbn_templates/inverter.j2 | |
parent | 688add1242be632837aad63832ebf7605f424079 (diff) |
web_kbn: use i18n in j2 templates
Diffstat (limited to 'web/kbn_templates/inverter.j2')
-rw-r--r-- | web/kbn_templates/inverter.j2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/kbn_templates/inverter.j2 b/web/kbn_templates/inverter.j2 index 26491f3..e84bffc 100644 --- a/web/kbn_templates/inverter.j2 +++ b/web/kbn_templates/inverter.j2 @@ -1,16 +1,16 @@ {% extends "base.j2" %} {% block content %} -{{ breadcrumbs([{'text': 'Инвертор'}]) }} +{{ breadcrumbs([{'text': 'inverter'|lang}]) }} -<h6 class="text-primary">Статус</h6> +<h6 class="text-primary">{{ "inverter_status"|lang }}</h6> <div id="inverter_status"> {{ html|safe }} </div> <div class="pt-3"> <a href="/inverter.cgi?do=set-osp&value={{ 'sub' if rated.output_source_priority == 'Solar-Battery-Utility' else 'sbu' }}"> - <button type="button" class="btn btn-primary">Переключить на <b>{{ 'Solar-Utility-Battery' if rated.output_source_priority == 'Solar-Battery-Utility' else 'Solar-Battery-Utility' }}</b></button> + <button type="button" class="btn btn-primary">{{ "inverter_switch_to"|lang }} <b>{{ 'Solar-Utility-Battery' if rated.output_source_priority == 'Solar-Battery-Utility' else 'Solar-Battery-Utility' }}</b></button> </a> </div> {% endblock %} |