From 04c52d20c3ef67c41b9e495fd29732578eaa9bd9 Mon Sep 17 00:00:00 2001 From: Kiril Kovachev Date: Mon, 14 Oct 2024 12:02:11 +0100 Subject: [PATCH] Finish localizing all current strings --- kanken_online/lang.py | 15 ++++++++++++--- kanken_online/templates/auth/login.html | 8 ++++---- kanken_online/templates/index.html | 2 +- kanken_online/templates/options.html | 2 +- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/kanken_online/lang.py b/kanken_online/lang.py index ebc144f..c0b5635 100644 --- a/kanken_online/lang.py +++ b/kanken_online/lang.py @@ -3,7 +3,10 @@ EXISTING_STRINGS = { "options", "log_in", "register", - "log_out" + "log_out", + "main_page", + "username", + "password" } ENGLISH = { @@ -13,7 +16,10 @@ ENGLISH = { "register": "Register", "log_out": "Log out", "kanji": "Kanji", - "forum": "Forum" + "forum": "Forum", + "main_page": "Main Page", + "username": "Username", + "password": "Password" } JAPANESE = { @@ -23,7 +29,10 @@ JAPANESE = { "register": "登録", "log_out": "ログアウト", "kanji": "漢字", - "forum": "掲示板" + "forum": "掲示板", + "main_page": "ホームページ", + "username": "ユーザー名", + "password": "パスワード" } LANGUAGES = [ diff --git a/kanken_online/templates/auth/login.html b/kanken_online/templates/auth/login.html index bdf4547..2a53d73 100644 --- a/kanken_online/templates/auth/login.html +++ b/kanken_online/templates/auth/login.html @@ -1,15 +1,15 @@ {% extends 'base.html' %} {% block header %} -

{% block title %}Log In{% endblock %}

+

{% block title %}{{ localize("log_in") }}{% endblock %}

{% endblock %} {% block content %}
- + - + - +
{% endblock %} \ No newline at end of file diff --git a/kanken_online/templates/index.html b/kanken_online/templates/index.html index 9230368..ad6ab13 100644 --- a/kanken_online/templates/index.html +++ b/kanken_online/templates/index.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% block header %} -

{% block title %}Main Page{% endblock %}

+

{% block title %}{{ localize("main_page") }}{% endblock %}

{% endblock %} {% block content %} diff --git a/kanken_online/templates/options.html b/kanken_online/templates/options.html index d8c665a..8350068 100644 --- a/kanken_online/templates/options.html +++ b/kanken_online/templates/options.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% block header %} -

{% block title %}Options{% endblock %}

+

{% block title %}{{ localize("options") }}{% endblock %}

{% endblock %} {% block content %}