From 9e1af99b2c0374c6db3067806589395e0c1a2fda Mon Sep 17 00:00:00 2001 From: Nikolay Mamashin Date: Fri, 22 Mar 2024 13:40:51 +0100 Subject: [PATCH] Init simple translation --- apps/core/templates/main.html | 13 ++++++++++++- apps/core/templates/qr_link.html | 8 +++++++- apps/core/templates/qr_ok.html | 8 ++++++-- apps/qr/forms.py | 1 + apps/qr/models.py | 1 + conf/settings.py | 1 + 6 files changed, 28 insertions(+), 4 deletions(-) diff --git a/apps/core/templates/main.html b/apps/core/templates/main.html index 9481186..336121c 100644 --- a/apps/core/templates/main.html +++ b/apps/core/templates/main.html @@ -1,4 +1,4 @@ -{% load static %} +{% load static %}{% load i18n %} @@ -106,6 +106,7 @@ } +{% get_current_language as LANGUAGE_CODE %}
@@ -113,6 +114,7 @@ {% block get_qr %}
+ {% if LANGUAGE_CODE == 'ru' %}

С помощью этого сервиса вы можете сканировать QR-коды формата UPN (Словения) и получать информацию о платежах в формате EPC (Revolut, WISE и т.д.)

@@ -122,6 +124,15 @@

После сканирования QR-кода, вы можете скопировать ссылку на этот код, чтобы поделиться ей.

+ {% else %} +

With this service, you can scan QR codes in the UPN format (Slovenia) and receive payment information in the EPC format (Revolut, WISE, etc.).

+

Scan - scan QR with a camera

+

Enter - manually enter payment details

+

Edit - edit the scanned code

+

+ After scanning the QR code, you can copy the link to this code to share it. +

+ {% endif %}
{% endblock get_qr %} diff --git a/apps/core/templates/qr_link.html b/apps/core/templates/qr_link.html index 331505f..9b08f9a 100644 --- a/apps/core/templates/qr_link.html +++ b/apps/core/templates/qr_link.html @@ -1,4 +1,10 @@ -
Ссылка для копирования
+{% load i18n %} +{% get_current_language as LANGUAGE_CODE %} +{% if LANGUAGE_CODE == 'ru' %} +
Ссылка для копирования
+{% else %} +
Link for sharing QR
+{% endif %}