From 463601660f74ade8ad7740c18221c185db8fbcb3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 20 May 2024 23:17:47 -0400 Subject: [PATCH] i18n --- boofilsic/settings.py | 4 +- catalog/templates/_sidebar_edit.html | 139 +-- catalog/templates/catalog_delete.html | 12 +- catalog/templates/catalog_edit.html | 16 +- catalog/templates/catalog_merge.html | 20 +- catalog/templates/item_mark_list.html | 14 +- catalog/templates/item_review_list.html | 10 +- catalog/templates/performance.html | 2 +- catalog/templates/performanceproduction.html | 2 +- catalog/templates/search_results.html | 13 +- catalog/templates/tvseason.html | 2 +- catalog/templates/tvshow.html | 2 +- common/templates/_footer.html | 2 +- common/templates/_header.html | 2 +- common/templates/_sidebar.html | 28 +- common/templates/common/verify.html | 6 +- compose.yml | 9 +- journal/templates/_feature_stats.html | 7 +- journal/templates/_list_item.html | 8 +- .../collection_update_item_note.html | 4 +- journal/templates/mark.html | 29 +- journal/templates/piece_delete.html | 8 +- journal/templates/profile.html | 2 +- journal/templates/review.html | 17 +- journal/templates/user_item_list_base.html | 2 +- journal/templates/user_mark_list.html | 4 +- journal/templates/user_review_list.html | 4 +- journal/templates/user_tag_list.html | 6 +- journal/templates/user_tagmember_list.html | 9 +- journal/templates/wrapped_share.html | 18 +- locale/zh_Hans/LC_MESSAGES/django.po | 977 ++++++++++++------ pyproject.toml | 2 + .../activity/comment_child_item.html | 4 +- social/templates/activity/mark_item.html | 4 +- social/templates/activity/review_item.html | 4 +- users/data.py | 4 +- users/templates/users/account.html | 105 +- users/templates/users/follow_locked.html | 28 - users/templates/users/relationship_list.html | 2 +- 39 files changed, 945 insertions(+), 586 deletions(-) delete mode 100644 users/templates/users/follow_locked.html diff --git a/boofilsic/settings.py b/boofilsic/settings.py index 733998cb..7f4145e3 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -366,6 +366,8 @@ AUTHENTICATION_BACKENDS = [ "oauth2_provider.backends.OAuth2Backend", ] +LOG_LEVEL = env("NEODB_LOG_LEVEL", default="DEBUG" if DEBUG else "INFO") # type:ignore + LOGGING = { "version": 1, "disable_existing_loggers": False, @@ -375,7 +377,7 @@ LOGGING = { "loggers": { "": { "handlers": ["console"], - "level": env("NEODB_LOG_LEVEL", default="DEBUG" if DEBUG else "INFO"), # type: ignore + "level": LOG_LEVEL, }, }, } diff --git a/catalog/templates/_sidebar_edit.html b/catalog/templates/_sidebar_edit.html index 79eec177..624fe307 100644 --- a/catalog/templates/_sidebar_edit.html +++ b/catalog/templates/_sidebar_edit.html @@ -4,40 +4,41 @@ {% if item %}
- + - - +
-
编辑选项
+
{% trans "Edit Options" %}
{% if item.is_deleted %}

- 条目已被删除 + {% trans "Item has been deleted." %}

{% endif %} {% if item.child_items %}

- 条目下已有子项 + {% trans "Item contains sub-items." %}

{% endif %} {% if item.merged_to_item %}

- 条目已被合并到其他条目 + {% trans "Item has been merged to another item." %}

{% endif %} {% if item.journal_exists %}

- 条目已被用户标记过 + {% trans "Item has been marked by users." %}

{% endif %} {% for i in item.merged_from_items.all %} {% if forloop.first %} - 以下条目被并入本条目: + {% trans "The following items are merged into this item" %}