From 27f570cd7855cc6da8cc4fee7f1246a848901698 Mon Sep 17 00:00:00 2001 From: lijiejie Date: Sun, 10 Apr 2022 01:36:18 +0800 Subject: [PATCH] fix --- dnslog/settings.py | 2 +- locale/{en_us => en}/LC_MESSAGES/django.mo | Bin locale/{en_us => en}/LC_MESSAGES/django.po | 4 ++-- templates/login.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename locale/{en_us => en}/LC_MESSAGES/django.mo (100%) rename locale/{en_us => en}/LC_MESSAGES/django.po (99%) diff --git a/dnslog/settings.py b/dnslog/settings.py index 370162a..13a5b34 100644 --- a/dnslog/settings.py +++ b/dnslog/settings.py @@ -77,7 +77,7 @@ USE_L10N = True USE_TZ = True LANGUAGES = ( ('zh-hans', _('中文')), - ('en-us', _('English')), + ('en', _('English')), ) LOCALE_PATHS = (os.path.join(BASE_DIR, 'locale'),) diff --git a/locale/en_us/LC_MESSAGES/django.mo b/locale/en/LC_MESSAGES/django.mo similarity index 100% rename from locale/en_us/LC_MESSAGES/django.mo rename to locale/en/LC_MESSAGES/django.mo diff --git a/locale/en_us/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po similarity index 99% rename from locale/en_us/LC_MESSAGES/django.po rename to locale/en/LC_MESSAGES/django.po index 957e622..dfba2a4 100644 --- a/locale/en_us/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-04-09 23:51+0800\n" +"POT-Creation-Date: 2022-04-10 01:26+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,7 +22,7 @@ msgid "中文" msgstr "" #: .\dnslog\settings.py:80 -msgid "English" +msgid "English-American" msgstr "" #: .\logview\views.py:87 .\templates\login.html:64 diff --git a/templates/login.html b/templates/login.html index c97fbed..5bcfe7d 100644 --- a/templates/login.html +++ b/templates/login.html @@ -106,7 +106,7 @@ } $('#confirmModal').modal(); } - $('.form-check-input').change(function (e){ + $('.form-check-input').click(function (e){ if (e.target.id === 'lang_zh'){ $("[name='language']").val('zh-hans'); } else {