2024-10-15 15:52:22 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
2024-10-15 18:02:26 +00:00
|
|
|
{% block scripts %}
|
|
|
|
<script src="/static/translations.js" defer></script>
|
|
|
|
{% endblock %}
|
|
|
|
|
2024-10-15 15:52:22 +00:00
|
|
|
{% block header %}
|
|
|
|
<h1>{% block title %}{{ localize("translations") }}{% endblock %}</h1>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2024-10-15 18:02:26 +00:00
|
|
|
<button id="add-string-button">Add string</button>
|
2024-10-15 15:52:22 +00:00
|
|
|
<form method="post">
|
|
|
|
{% for language, data in strings.items() %}
|
2024-10-15 18:02:26 +00:00
|
|
|
<div id="{{language}}-translation-section" class="translation-section" lang="{{language}}">
|
|
|
|
<h2>{{ language }}</h2>
|
|
|
|
{% for string, translation in data.items() %}
|
|
|
|
<label lang="en" for="{{ string }}">{{ string }}</label>
|
|
|
|
<input type="text" id="{{ string }}" name="{{ string }}" value="{{ translation }}">
|
|
|
|
<br>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
<button type="submit">Submit</button>
|
|
|
|
|
2024-10-15 15:52:22 +00:00
|
|
|
</form>
|
|
|
|
{% endblock %}
|