Skip to content

Commit

Permalink
feat: Translate interface to English
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay-Lysenko committed Jul 5, 2024
1 parent e42bf31 commit 768c55f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
4 changes: 4 additions & 0 deletions readingbricks/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
<nav id="frozen_button_two"><a href="{{ url_for('about') }}" class="button">?</a></nav>
<div id="central">
<div id="short_contents">
{% if language == "en" %}
<h2>Page not found. Please check the URL.</h2>
{% else %}
<h2>Страница не найдена. Проверьте правильность написания адреса.</h2>
{% endif %}
</div>
</div>
</body>
Expand Down
5 changes: 5 additions & 0 deletions readingbricks/templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
<nav id="frozen_button_one"><a href="{{ url_for('index') }}" class="button">/</a></nav>
<div id="central">
<div id="short_contents">
{% if language == "en" %}
<h2>Interface guide</h2>
<p>Once, it will be written... And right now you can look at the <a href="https://github.com/Nikolay-Lysenko/readingbricks/blob/master/README.md#interface-guide">README.md</a> from the GitHub repository of the project.</p>
{% else %}
<h2>Обзор интерфейса</h2>
<p>Когда-нибудь он будет написан... А пока можно обратиться к <a href="https://github.com/Nikolay-Lysenko/readingbricks/blob/master/README.md#interface-guide">README.md</a> из GitHub-репозитория этого проекта.</p>
{% endif %}
</div>
</div>
</body>
Expand Down
7 changes: 7 additions & 0 deletions readingbricks/templates/empty_result.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@
<nav id="frozen_button_three"><a href="{{ url_for('about') }}" class="button">?</a></nav>
<div id="central">
<div id="short_contents">
{% if language == "en" %}
<h2>Nothing found</h2>
<p>The below query has been entered:</p>
<p><span style="background-color: #f1ece8">{{ query }}</span></p>
<p>This query has been processed, but there are no matching notes. Please try to search something else.</p>
{% else %}
<h2>Ничего не найдено</h2>
<p>Введён следующий запрос:</p>
<p><span style="background-color: #f1ece8">{{ query }}</span></p>
<p>Этот запрос корректно обработан, но не нашлось ни одной заметки, соответствующей ему. Попробуйте поискать что-нибудь другое.</p>
{% endif %}
</div>
</div>
</body>
Expand Down
9 changes: 8 additions & 1 deletion readingbricks/templates/invalid_query.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@
<nav id="frozen_button_three"><a href="{{ url_for('about') }}" class="button">?</a></nav>
<div id="central">
<div id="short_contents">
{% if language == "en" %}
<h2>The query can not be processed</h2>
<p>The below query has been entered:</p>
<p><span style="background-color: #f1ece8">{{ query }}</span></p>
<p>Please check the syntax. Only existing tags, parentheses, and logical operators (AND, OR, NOT) are allowed after <span style="background-color: #f1ece8">tags:</span> keyword. Also check spelling of tags. Probably, space is used instead of underscore.</p>
{% else %}
<h2>Запрос не может быть обработан</h2>
<p>Введён следующий запрос:</p>
<p><span style="background-color: #f1ece8">{{ query }}</span></p>
<p>Проверьте синтаксис — разрешены только существующие метки, круглые скобки и операторы AND, OR и NOT. Также проверьте правильность написания меток: возможно, для какой-либо метки использован пробел вместо нижнего подчёркивания.</p>
<p>Проверьте синтаксис — после ключевого слова <span style="background-color: #f1ece8">tags:</span> разрешены только существующие метки, круглые скобки и операторы AND, OR и NOT. Также проверьте правильность написания меток: возможно, для какой-либо метки использован пробел вместо нижнего подчёркивания.</p>
{% endif %}
</div>
</div>
</body>
Expand Down
4 changes: 4 additions & 0 deletions readingbricks/templates/regular_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
<div id="contents">
{% if table_of_contents is defined %}
<div id="table_of_contents">
{% if language == "en" %}
<h2>Contents</h2>
{% else %}
<h2>Содержание</h2>
{% endif %}
{{ table_of_contents }}
</div>
{% endif %}
Expand Down

0 comments on commit 768c55f

Please sign in to comment.