From 0a89c1560cde02f607ded3b433ce887195cfd784 Mon Sep 17 00:00:00 2001 From: Stanislav Khoshov Date: Sun, 3 Aug 2025 21:19:30 +0300 Subject: [PATCH] add translations --- templates/base.html | 32 ++++++++--------- templates/books/detail.html | 18 +++++----- templates/books/index.html | 46 ++++++++++++------------ templates/books/partials/books_grid.html | 6 ++-- 4 files changed, 51 insertions(+), 51 deletions(-) diff --git a/templates/base.html b/templates/base.html index 4453a85..ae66abf 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,9 +1,9 @@ - + - {% block title %}Python Books{% endblock %} + {% block title %}Книги по Python{% endblock %} @@ -23,31 +23,31 @@ @@ -76,9 +76,9 @@ diff --git a/templates/books/detail.html b/templates/books/detail.html index 569216d..3ce8a1e 100644 --- a/templates/books/detail.html +++ b/templates/books/detail.html @@ -25,7 +25,7 @@

{{ book.title }}

- {{ book.total_pages }} pages + {{ book.total_pages }} стр. @@ -42,7 +42,7 @@

{{ book.title }}

-

Description

+

Описание

{{ book.description }}

@@ -50,11 +50,11 @@

Description

@@ -63,7 +63,7 @@

Description

-

Comments

+

Комментарии

@@ -73,17 +73,17 @@

Comments

hx-swap="afterbegin">
@@ -107,7 +107,7 @@

{{ comment.user.username }}

{% empty %}
-

No comments yet. Be the first to share your thoughts!

+

Комментариев пока нет. Станьте первым, кто поделится своими мыслями!

{% endfor %}
diff --git a/templates/books/index.html b/templates/books/index.html index 1a00ba7..284afb2 100644 --- a/templates/books/index.html +++ b/templates/books/index.html @@ -1,15 +1,15 @@ {% extends 'base.html' %} -{% block title %}Python Books - Find the best Python programming books{% endblock %} +{% block title %}Книги по Python - Найдите лучшие книги по программированию на Python{% endblock %} {% block content %}
-

Python Books

-

Discover the best Python programming books for every skill level. From beginners to experts, find your next great read.

+

Книги по Python

+

Откройте для себя лучшие книги по программированию на Python для любого уровня навыков. От новичков до экспертов - найдите свою следующую отличную книгу.

@@ -18,15 +18,15 @@

Python Books

-

Filter Books

+

Фильтр книг

Filter Books
Filter Books hx-trigger="change" hx-target="#books-container" hx-push-url="true"> - - - - - + + + + +
diff --git a/templates/books/partials/books_grid.html b/templates/books/partials/books_grid.html index f701a2b..7de480f 100644 --- a/templates/books/partials/books_grid.html +++ b/templates/books/partials/books_grid.html @@ -24,7 +24,7 @@

{{ book.title }}

hx-target="#modal-content" hx-swap="innerHTML" onclick="book_modal.showModal()"> - View Details +Подробнее
@@ -87,7 +87,7 @@

{{ book.title }}

-

No books found

-

Try adjusting your search or filter criteria.

+

Книги не найдены

+

Попробуйте изменить критерии поиска или фильтрации.

{% endif %} \ No newline at end of file