more i18n
This commit is contained in:
parent
b730571663
commit
8bdb0d130e
24 changed files with 230 additions and 119 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
<p>
|
<p>
|
||||||
<i class="fa-solid fa-triangle-exclamation"></i>
|
<i class="fa-solid fa-triangle-exclamation"></i>
|
||||||
{% trans "Unable to fetch from the link, please check again. Some sites may require login for certain links, please manually create them here." %}
|
{% trans "Unable to fetch from the link, please check again. Some sites may require login for certain links, please manually create them here." %}
|
||||||
|
|
|
@ -36,8 +36,7 @@
|
||||||
<br>
|
<br>
|
||||||
{% endif %} {% endcomment %}
|
{% endif %} {% endcomment %}
|
||||||
{% include '_people.html' with people=item.other_title role='other title' max=2 %}
|
{% include '_people.html' with people=item.other_title role='other title' max=2 %}
|
||||||
{% endif %}
|
<div>
|
||||||
<div>
|
{% if not hide_brief %}{{ item.brief | linebreaksbr }}{% endif %}
|
||||||
{% if not hide_brief %}{{ item.brief | linebreaksbr }}{% endif %}
|
</div>
|
||||||
</div>
|
|
||||||
{% endblock full %}
|
{% endblock full %}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for log in mark.logs %}
|
{% for log in mark.logs %}
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{% load user_actions %}
|
{% load user_actions %}
|
||||||
|
{% load i18n %}
|
||||||
<section>
|
<section>
|
||||||
<h5>
|
<h5>
|
||||||
{% trans "my tags" %}
|
{% trans "my tags" %}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
<form style="display:none"
|
<form style="display:none"
|
||||||
action="{% if featured %}{% url 'journal:collection_remove_featured' collection.uuid %}{% else %}{% url 'journal:collection_add_featured' collection.uuid %}{% endif %}"
|
action="{% if featured %}{% url 'journal:collection_remove_featured' collection.uuid %}{% else %}{% url 'journal:collection_add_featured' collection.uuid %}{% endif %}"
|
||||||
method="post"
|
method="post"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
{% load user_actions %}
|
{% load user_actions %}
|
||||||
{% boosted_post post as boosted %}
|
{% boosted_post post as boosted %}
|
||||||
<span hx-target="this"
|
<span hx-target="this"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
{% load user_actions %}
|
{% load user_actions %}
|
||||||
{% liked_post post as liked %}
|
{% liked_post post as liked %}
|
||||||
<span hx-target="this"
|
<span hx-target="this"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
<span>
|
<span>
|
||||||
<a target="_blank"
|
<a target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
<span>
|
<span>
|
||||||
<a title="{% trans "reply" %}"
|
<a title="{% trans "reply" %}"
|
||||||
{% if href %} href="{{ href }}" {% else %} {% if not request.user.is_authenticated %}hx-disable{% endif %}
|
{% if href %} href="{{ href }}" {% else %} {% if not request.user.is_authenticated %}hx-disable{% endif %}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
<span>
|
<span>
|
||||||
<a hx-get="{% url 'journal:post_replies' post.pk %}"
|
<a hx-get="{% url 'journal:post_replies' post.pk %}"
|
||||||
hx-swap="outerHTML"
|
hx-swap="outerHTML"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
{{ calendar_data|json_script:"calendar_data" }}
|
{{ calendar_data|json_script:"calendar_data" }}
|
||||||
<script>
|
<script>
|
||||||
$(".calendar_view").calendar_yearview_blocks({
|
$(".calendar_view").calendar_yearview_blocks({
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
<form hx-post="{% url 'journal:collection_update_item_note' collection.uuid item.uuid %}"
|
<form hx-post="{% url 'journal:collection_update_item_note' collection.uuid item.uuid %}"
|
||||||
hx-target="#collection_items">
|
hx-target="#collection_items">
|
||||||
<input name="note" value="{{ note }}">
|
<input name="note" value="{{ note }}">
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-05-19 13:03-0400\n"
|
"POT-Creation-Date: 2024-05-20 10:41-0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -600,7 +600,7 @@ msgstr "主播"
|
||||||
msgid "Invalid URL"
|
msgid "Invalid URL"
|
||||||
msgstr "无效网址"
|
msgstr "无效网址"
|
||||||
|
|
||||||
#: catalog/templates/_fetch_failed.html:3
|
#: catalog/templates/_fetch_failed.html:4
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unable to fetch from the link, please check again. Some sites may require "
|
"Unable to fetch from the link, please check again. Some sites may require "
|
||||||
"login for certain links, please manually create them here."
|
"login for certain links, please manually create them here."
|
||||||
|
@ -670,39 +670,39 @@ msgstr "写该集短评"
|
||||||
msgid "review"
|
msgid "review"
|
||||||
msgstr "评论"
|
msgstr "评论"
|
||||||
|
|
||||||
#: catalog/templates/_item_user_mark_history.html:14
|
#: catalog/templates/_item_user_mark_history.html:15
|
||||||
msgid "no history."
|
msgid "no history."
|
||||||
msgstr "暂无标记历史"
|
msgstr "暂无标记历史"
|
||||||
|
|
||||||
#: catalog/templates/_item_user_mark_history.html:22
|
#: catalog/templates/_item_user_mark_history.html:23
|
||||||
msgid "sure to clear mark history?"
|
msgid "sure to clear mark history?"
|
||||||
msgstr "确定清除所有标记历史吗?"
|
msgstr "确定清除所有标记历史吗?"
|
||||||
|
|
||||||
#: catalog/templates/_item_user_mark_history.html:22
|
#: catalog/templates/_item_user_mark_history.html:23
|
||||||
msgid "clear mark history"
|
msgid "clear mark history"
|
||||||
msgstr "清除标记历史"
|
msgstr "清除标记历史"
|
||||||
|
|
||||||
#: catalog/templates/_item_user_mark_history.html:24
|
#: catalog/templates/_item_user_mark_history.html:25
|
||||||
msgid "clear history will not remove current mark"
|
msgid "clear history will not remove current mark"
|
||||||
msgstr "清除标记历史不会删除或改变现有标记"
|
msgstr "清除标记历史不会删除或改变现有标记"
|
||||||
|
|
||||||
#: catalog/templates/_item_user_pieces.html:4
|
#: catalog/templates/_item_user_pieces.html:5
|
||||||
msgid "my tags"
|
msgid "my tags"
|
||||||
msgstr "我的标签"
|
msgstr "我的标签"
|
||||||
|
|
||||||
#: catalog/templates/_item_user_pieces.html:39
|
#: catalog/templates/_item_user_pieces.html:40
|
||||||
msgid "my comments"
|
msgid "my comments"
|
||||||
msgstr "我的短评"
|
msgstr "我的短评"
|
||||||
|
|
||||||
#: catalog/templates/_item_user_pieces.html:99
|
#: catalog/templates/_item_user_pieces.html:100
|
||||||
msgid "my review"
|
msgid "my review"
|
||||||
msgstr "我的评论"
|
msgstr "我的评论"
|
||||||
|
|
||||||
#: catalog/templates/_item_user_pieces.html:141
|
#: catalog/templates/_item_user_pieces.html:142
|
||||||
msgid "my collection"
|
msgid "my collection"
|
||||||
msgstr "我的收藏单"
|
msgstr "我的收藏单"
|
||||||
|
|
||||||
#: catalog/templates/_item_user_pieces.html:171
|
#: catalog/templates/_item_user_pieces.html:172
|
||||||
msgid "mark history"
|
msgid "mark history"
|
||||||
msgstr "标记历史"
|
msgstr "标记历史"
|
||||||
|
|
||||||
|
@ -857,12 +857,12 @@ msgid "Are you sure to delete?"
|
||||||
msgstr "确认删除吗?"
|
msgstr "确认删除吗?"
|
||||||
|
|
||||||
#: catalog/templates/catalog_delete.html:47
|
#: catalog/templates/catalog_delete.html:47
|
||||||
#: catalog/templates/catalog_merge.html:91 neodb-takahe/activities/admin.py:25
|
#: catalog/templates/catalog_merge.html:91
|
||||||
msgid "Yes"
|
msgid "Yes"
|
||||||
msgstr "是"
|
msgstr "是"
|
||||||
|
|
||||||
#: catalog/templates/catalog_delete.html:48
|
#: catalog/templates/catalog_delete.html:48
|
||||||
#: catalog/templates/catalog_merge.html:92 neodb-takahe/activities/admin.py:26
|
#: catalog/templates/catalog_merge.html:92
|
||||||
msgid "No"
|
msgid "No"
|
||||||
msgstr "否"
|
msgstr "否"
|
||||||
|
|
||||||
|
@ -1000,7 +1000,7 @@ msgstr "简介"
|
||||||
#: catalog/templates/item_base.html:234 journal/templates/profile.html:109
|
#: catalog/templates/item_base.html:234 journal/templates/profile.html:109
|
||||||
#: journal/templates/profile.html:187 journal/templates/replies.html:46
|
#: journal/templates/profile.html:187 journal/templates/replies.html:46
|
||||||
#: social/templates/events.html:46 users/templates/users/announcements.html:53
|
#: social/templates/events.html:46 users/templates/users/announcements.html:53
|
||||||
#: users/templates/users/relationship_list.html:10
|
#: users/templates/users/relationship_list.html:11
|
||||||
msgid "nothing so far."
|
msgid "nothing so far."
|
||||||
msgstr "暂无内容。"
|
msgstr "暂无内容。"
|
||||||
|
|
||||||
|
@ -1518,12 +1518,12 @@ msgstr "创建者和他们的互相关注"
|
||||||
msgid "Collaborative editing"
|
msgid "Collaborative editing"
|
||||||
msgstr "协作编辑"
|
msgstr "协作编辑"
|
||||||
|
|
||||||
#: journal/importers/letterboxd.py:107
|
#: journal/importers/letterboxd.py:108
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid "a review of {item_title}"
|
msgid "a review of {item_title}"
|
||||||
msgstr "关于 {item_title} 的评论"
|
msgstr "关于 {item_title} 的评论"
|
||||||
|
|
||||||
#: journal/importers/opml.py:35
|
#: journal/importers/opml.py:36
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid "{username}'s podcast subscriptions"
|
msgid "{username}'s podcast subscriptions"
|
||||||
msgstr "{username} 的播客订阅"
|
msgstr "{username} 的播客订阅"
|
||||||
|
@ -1885,24 +1885,24 @@ msgstr "评论过的演出"
|
||||||
msgid "removed mark"
|
msgid "removed mark"
|
||||||
msgstr "移除标记"
|
msgstr "移除标记"
|
||||||
|
|
||||||
#: journal/templates/action_boost_post.html:9
|
#: journal/templates/action_boost_post.html:10
|
||||||
#: users/templates/users/preferences.html:111
|
#: users/templates/users/preferences.html:111
|
||||||
msgid "boost"
|
msgid "boost"
|
||||||
msgstr ""
|
msgstr "转播"
|
||||||
|
|
||||||
#: journal/templates/action_like_post.html:9
|
#: journal/templates/action_like_post.html:10
|
||||||
msgid "liked"
|
msgid "liked"
|
||||||
msgstr ""
|
msgstr "已喜欢"
|
||||||
|
|
||||||
#: journal/templates/action_like_post.html:15
|
#: journal/templates/action_like_post.html:16
|
||||||
msgid "like"
|
msgid "like"
|
||||||
msgstr ""
|
msgstr "喜欢"
|
||||||
|
|
||||||
#: journal/templates/action_open_post.html:6
|
#: journal/templates/action_open_post.html:7
|
||||||
msgid "link for fediverse"
|
msgid "link for fediverse"
|
||||||
msgstr "联邦宇宙分享链接"
|
msgstr "联邦宇宙分享链接"
|
||||||
|
|
||||||
#: journal/templates/action_reply_piece.html:2
|
#: journal/templates/action_reply_piece.html:3
|
||||||
msgid "reply"
|
msgid "reply"
|
||||||
msgstr "回应"
|
msgstr "回应"
|
||||||
|
|
||||||
|
@ -2148,42 +2148,6 @@ msgstr ""
|
||||||
msgid "target site domain name"
|
msgid "target site domain name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: neodb-takahe/activities/admin.py:18
|
|
||||||
msgid "Local Identity"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: neodb-takahe/core/admin.py:8
|
|
||||||
msgid "config options type"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: neodb-takahe/core/admin.py:13
|
|
||||||
msgid "System"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: neodb-takahe/core/admin.py:14
|
|
||||||
msgid "Identity"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: neodb-takahe/core/admin.py:15
|
|
||||||
msgid "User"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: neodb-takahe/users/admin.py:147
|
|
||||||
msgid "Local Source Identity"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: neodb-takahe/users/admin.py:153
|
|
||||||
msgid "Local Target Identity"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: neodb-takahe/users/views/auth.py:20
|
|
||||||
msgid "No account was found with that email and password."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: neodb-takahe/users/views/auth.py:21
|
|
||||||
msgid "This account is inactive."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: social/templates/activity/create_collection.html:17 takahe/utils.py:553
|
#: social/templates/activity/create_collection.html:17 takahe/utils.py:553
|
||||||
msgid "created collection"
|
msgid "created collection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -2511,6 +2475,7 @@ msgstr ""
|
||||||
"\n"
|
"\n"
|
||||||
"如果你还没有联邦宇宙身份,可以访问这里选择实例并创建一个: https://"
|
"如果你还没有联邦宇宙身份,可以访问这里选择实例并创建一个: https://"
|
||||||
"joinmastodon.org/zh/servers"
|
"joinmastodon.org/zh/servers"
|
||||||
|
"\n"
|
||||||
|
|
||||||
#: users/account.py:335
|
#: users/account.py:335
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
|
@ -2628,7 +2593,7 @@ msgstr "必填,限字母数字下划线,最多30个字符。"
|
||||||
msgid "A user with that username already exists."
|
msgid "A user with that username already exists."
|
||||||
msgstr "使用该用户名的用户已存在。"
|
msgstr "使用该用户名的用户已存在。"
|
||||||
|
|
||||||
#: users/models/user.py:93
|
#: users/models/user.py:93 users/templates/users/login.html:60
|
||||||
msgid "email address"
|
msgid "email address"
|
||||||
msgstr "电子邮件地址"
|
msgstr "电子邮件地址"
|
||||||
|
|
||||||
|
@ -2812,7 +2777,7 @@ msgstr ""
|
||||||
msgid "仅自己"
|
msgid "仅自己"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: users/templates/users/fetch_identity_failed.html:3
|
#: users/templates/users/fetch_identity_failed.html:4
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unable to find the user, please check your spelling; or the server may be "
|
"Unable to find the user, please check your spelling; or the server may be "
|
||||||
"busy, please try again later."
|
"busy, please try again later."
|
||||||
|
@ -2823,21 +2788,96 @@ msgstr "无法找到用户,请确认拼写正确;也可能服务器正忙,
|
||||||
msgid "Searching the fediverse"
|
msgid "Searching the fediverse"
|
||||||
msgstr "正在搜索联邦宇宙"
|
msgstr "正在搜索联邦宇宙"
|
||||||
|
|
||||||
#: users/templates/users/login.html:16
|
#: users/templates/users/login.html:16 users/templates/users/login.html:84
|
||||||
msgid "登录"
|
#: users/templates/users/register.html:8
|
||||||
msgstr ""
|
msgid "Register"
|
||||||
|
msgstr "注册"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:16 users/templates/users/login.html:84
|
||||||
|
msgid "Login"
|
||||||
|
msgstr "登录"
|
||||||
|
|
||||||
#: users/templates/users/login.html:51
|
#: users/templates/users/login.html:51
|
||||||
msgid "前往首页"
|
#: users/templates/users/verify_email.html:22
|
||||||
msgstr ""
|
msgid "back to your home page."
|
||||||
|
msgstr "返回首页"
|
||||||
|
|
||||||
#: users/templates/users/login.html:85
|
#: users/templates/users/login.html:69
|
||||||
msgid "登录/注册"
|
msgid "domain name of your instance, e.g. mastodon.social"
|
||||||
msgstr ""
|
msgstr "实例域名(不含@和@之前的部分),如mastodon.social"
|
||||||
|
|
||||||
#: users/templates/users/login.html:146
|
#: users/templates/users/login.html:78
|
||||||
msgid "授权登录"
|
msgid "Login Method"
|
||||||
|
msgstr "选择登录方式"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:79
|
||||||
|
msgid "Fediverse Identity"
|
||||||
|
msgstr "联邦宇宙授权"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:80
|
||||||
|
msgid "Email Verification"
|
||||||
|
msgstr "电子邮件验证"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:112
|
||||||
|
msgid "select or input domain name of your instance (excl. @)"
|
||||||
|
msgstr "输入或选择实例域名(不含@和@之前的部分)"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:145
|
||||||
|
msgid "Authorize"
|
||||||
|
msgstr "授权"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:150
|
||||||
|
msgid "Valid invitation code, please login or register."
|
||||||
|
msgstr "邀请链接有效,可注册新用户"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:152
|
||||||
|
msgid ""
|
||||||
|
"Please use invitation link to register a new account; existing user may "
|
||||||
|
"login."
|
||||||
|
msgstr "本站目前为邀请注册,已有账户可直接登入,新用户请使用有效邀请链接注册"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:154
|
||||||
|
msgid "Invitation code invalid or expired."
|
||||||
|
msgstr "邀请链接无效,已有账户可直接登入,新用户请使用有效邀请链接注册"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:159
|
||||||
|
msgid ""
|
||||||
|
"Select Email Verification if you don't have a <a href=\"https://joinmastodon."
|
||||||
|
"org/servers\" target=\"_blank\">Fediverse account</a>."
|
||||||
|
msgstr "如不便或尚未<a href=\"https://joinmastodon.org/zh/servers\" target=\"_blank\">注册联邦宇宙</a>,也可以在上方选择「电子邮件验证」注册登录本站。"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:161
|
||||||
|
msgid ""
|
||||||
|
"Enter your email address to register or sign in if you don't have a "
|
||||||
|
"Fediverse account, or have associated your email with your Fediverse account "
|
||||||
|
"before; otherwise please sign in via Fediverse, and associate your email "
|
||||||
|
"address once logged in."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"现有用户通过联邦宇宙登录后关联电子邮件地址,即可通过邮件登录本站;如不便使用"
|
||||||
|
"联邦宇宙,也可在此输入邮件地址注册账号,未来再关联到联邦宇宙。"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:166
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"You are visiting an alternative domain for %(site_name)s, please always use "
|
||||||
|
"<a href=\"%(site_url)s%(request.get_full_path)s\">original version</a> if "
|
||||||
|
"possible."
|
||||||
|
msgstr ""
|
||||||
|
"这是%(site_name)s的临时镜像,请尽可能使用<a "
|
||||||
|
"href=\"%(site_url)s%(request.get_full_path)s\">原始站点</a>。"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:168
|
||||||
|
msgid "Loading timed out, please check your network (VPN) settings."
|
||||||
|
msgstr "部分模块加载超时,请检查网络(翻墙)设置。"
|
||||||
|
|
||||||
|
#: users/templates/users/login.html:174
|
||||||
|
msgid ""
|
||||||
|
"Using this site implies consent of our <a href=\"/pages/rules/\">rules</a> "
|
||||||
|
"and <a href=\"/pages/terms/\">terms</a>, and use of cookies to provide "
|
||||||
|
"necessary functionality."
|
||||||
|
msgstr ""
|
||||||
|
"继续访问或注册视为同意<a href=\"/pages/rules/\">站规</a>与<a href=\"/pages/"
|
||||||
|
"terms/\">协议</a>,及使用cookie提供必要功能"
|
||||||
|
|
||||||
#: users/templates/users/preferences.html:26
|
#: users/templates/users/preferences.html:26
|
||||||
msgid "Default view once logged in"
|
msgid "Default view once logged in"
|
||||||
|
@ -2957,9 +2997,61 @@ msgstr "应用程序"
|
||||||
msgid "View authorized applications"
|
msgid "View authorized applications"
|
||||||
msgstr "查看已授权的应用程序"
|
msgstr "查看已授权的应用程序"
|
||||||
|
|
||||||
#: users/templates/users/register.html:8
|
#: users/templates/users/profile_actions.html:6
|
||||||
msgid "Register"
|
msgid "click to unblock"
|
||||||
msgstr "注册"
|
msgstr "点击可取消屏蔽"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:7
|
||||||
|
msgid "are you sure to unblock?"
|
||||||
|
msgstr "确定要取消对该用户的屏蔽吗?"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:10
|
||||||
|
msgid "blocked"
|
||||||
|
msgstr "已屏蔽"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:22
|
||||||
|
msgid "user profile"
|
||||||
|
msgstr "用户资料"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:32
|
||||||
|
msgid "original home"
|
||||||
|
msgstr "原始主页"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:63
|
||||||
|
msgid "accept follow request"
|
||||||
|
msgstr "接受关注请求"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:72
|
||||||
|
msgid "reject follow request"
|
||||||
|
msgstr "拒绝关注请求"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:83
|
||||||
|
msgid "click to unfollow"
|
||||||
|
msgstr "点击可取消关注"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:93
|
||||||
|
msgid "click to cancel follow request"
|
||||||
|
msgstr "点击可取消关注请求"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:103
|
||||||
|
msgid "click to follow"
|
||||||
|
msgstr "点击可关注"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:113
|
||||||
|
msgid "click to mute"
|
||||||
|
msgstr "点击可取消屏蔽"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:122
|
||||||
|
msgid "click to unmute"
|
||||||
|
msgstr "点击可取消静音"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:132
|
||||||
|
msgid "click to block"
|
||||||
|
msgstr "点击可屏蔽"
|
||||||
|
|
||||||
|
#: users/templates/users/profile_actions.html:133
|
||||||
|
msgid "sure to block?"
|
||||||
|
msgstr "确定屏蔽该用户吗?"
|
||||||
|
|
||||||
#: users/templates/users/register.html:18
|
#: users/templates/users/register.html:18
|
||||||
msgid "Welcome"
|
msgid "Welcome"
|
||||||
|
@ -3020,11 +3112,11 @@ msgstr "设置后请查收邮件并点击其中的确认链接"
|
||||||
msgid "Cut the sh*t and get me in!"
|
msgid "Cut the sh*t and get me in!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: users/templates/users/relationship_list.html:16
|
#: users/templates/users/relationship_list.html:17
|
||||||
msgid "export"
|
msgid "export"
|
||||||
msgstr "导出"
|
msgstr "导出"
|
||||||
|
|
||||||
#: users/templates/users/relationship_list.html:20
|
#: users/templates/users/relationship_list.html:21
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "You may download %(name)s on %(site_name)s here."
|
msgid "You may download %(name)s on %(site_name)s here."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -3040,10 +3132,6 @@ msgstr "验证电子邮件"
|
||||||
msgid "verified successfully."
|
msgid "verified successfully."
|
||||||
msgstr "验证成功"
|
msgstr "验证成功"
|
||||||
|
|
||||||
#: users/templates/users/verify_email.html:22
|
|
||||||
msgid "back to your home page."
|
|
||||||
msgstr "返回首页"
|
|
||||||
|
|
||||||
#: users/templates/users/verify_email.html:27
|
#: users/templates/users/verify_email.html:27
|
||||||
msgid "login again"
|
msgid "login again"
|
||||||
msgstr "重新登录"
|
msgstr "重新登录"
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
{% load i18n %}
|
||||||
unsupported notification: announcement
|
unsupported notification: announcement
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
{% load i18n %}
|
||||||
unsupported notification: boost
|
unsupported notification: boost
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
{% load i18n %}
|
||||||
joined {{ site_name }}
|
joined {{ site_name }}
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
{% load i18n %}
|
||||||
unsupported notification: post
|
unsupported notification: post
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
{% if import_status.douban_pending == 2 %}
|
{% if import_status.douban_pending == 2 %}
|
||||||
正在等待
|
正在等待
|
||||||
{% elif import_status.douban_pending == 1 %}
|
{% elif import_status.douban_pending == 1 %}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
<p>
|
<p>
|
||||||
<i class="fa-solid fa-triangle-exclamation"></i>
|
<i class="fa-solid fa-triangle-exclamation"></i>
|
||||||
{% trans "Unable to find the user, please check your spelling; or the server may be busy, please try again later." %}
|
{% trans "Unable to find the user, please check your spelling; or the server may be busy, please try again later." %}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
<dialog open
|
<dialog open
|
||||||
_="on close_dialog add .closing then wait for animationend then remove me">
|
_="on close_dialog add .closing then wait for animationend then remove me">
|
||||||
<article>
|
<article>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta property="og:title" content="{{ site_name }} - 分布式书影音播客游戏收藏评论交流社区">
|
<meta property="og:title" content="{{ site_name }}">
|
||||||
<meta name="description"
|
<meta name="description"
|
||||||
property="og:description"
|
property="og:description"
|
||||||
content="{{ site_description }}">
|
content="{{ site_description }}">
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
<meta property="og:url" content="{{ site_url }}">
|
<meta property="og:url" content="{{ site_url }}">
|
||||||
<meta property="og:image" content="{{ site_logo }}">
|
<meta property="og:image" content="{{ site_logo }}">
|
||||||
<meta property="og:site_name" content="{{ site_name }}">
|
<meta property="og:site_name" content="{{ site_name }}">
|
||||||
<title>{{ site_name }} - {% trans '登录' %}</title>
|
<title>{{ site_name }} - {% trans 'Register' %} / {% trans "Login" %}</title>
|
||||||
{% include "common_libs.html" %}
|
{% include "common_libs.html" %}
|
||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
<script src="{{ cdn_url }}/npm/@tarekraafat/autocomplete.js@10.2.7/dist/autoComplete.min.js"></script>
|
<script src="{{ cdn_url }}/npm/@tarekraafat/autocomplete.js@10.2.7/dist/autoComplete.min.js"></script>
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
</header>
|
</header>
|
||||||
<div>
|
<div>
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<a href="{{ request.session.next_url | default:'/' }}" class="button">{% trans '前往首页' %}</a>
|
<a href="{{ request.session.next_url | default:'/' }}" class="button">{% trans 'back to your home page.' %}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<form action="{% url 'users:connect' %}" method="post">
|
<form action="{% url 'users:connect' %}" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
name="email"
|
name="email"
|
||||||
id="email"
|
id="email"
|
||||||
type="email"
|
type="email"
|
||||||
placeholder="电子邮件地址"
|
placeholder="{% trans "email address" %}"
|
||||||
disabled
|
disabled
|
||||||
autocomplete="email"
|
autocomplete="email"
|
||||||
style="display:none" />
|
style="display:none" />
|
||||||
|
@ -66,8 +66,7 @@
|
||||||
id="domain"
|
id="domain"
|
||||||
autofocus
|
autofocus
|
||||||
pattern="(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,})"
|
pattern="(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,})"
|
||||||
title="实例域名(不含@和@之前的部分),如mastodon.social"
|
placeholder="{% trans "domain name of your instance, e.g. mastodon.social" %}"
|
||||||
placeholder="实例域名(不含@和@之前的部分),如mastodon.social"
|
|
||||||
autocorrect="off"
|
autocorrect="off"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
spellcheck="false" />
|
spellcheck="false" />
|
||||||
|
@ -76,13 +75,13 @@
|
||||||
required
|
required
|
||||||
onchange="switch_login()"
|
onchange="switch_login()"
|
||||||
name="method">
|
name="method">
|
||||||
<option disabled value="">选择登录方式</option>
|
<option disabled value="">{% trans "Login Method" %}</option>
|
||||||
<option selected value="fedi">联邦宇宙授权</option>
|
<option selected value="fedi">{% trans "Fediverse Identity" %}</option>
|
||||||
<option value="email">电子邮件验证</option>
|
<option value="email">{% trans "Email Verification" %}</option>
|
||||||
</select>
|
</select>
|
||||||
<input style="width:100%"
|
<input style="width:100%"
|
||||||
type='submit'
|
type='submit'
|
||||||
value="{% trans '登录/注册' %}"
|
value="{% trans 'Register' %} / {% trans "Login" %}"
|
||||||
id="loginButton"
|
id="loginButton"
|
||||||
disabled />
|
disabled />
|
||||||
</div>
|
</div>
|
||||||
|
@ -110,7 +109,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const sites = JSON.parse(document.getElementById('sites-data').textContent);
|
const sites = JSON.parse(document.getElementById('sites-data').textContent);
|
||||||
const autoCompleteJS = new autoComplete({ placeHolder: "输入或选择实例域名(不含@和@之前的部分)",
|
const autoCompleteJS = new autoComplete({ placeHolder: "{% trans "select or input domain name of your instance (excl. @)" %}",
|
||||||
selector: "#domain",
|
selector: "#domain",
|
||||||
data: {
|
data: {
|
||||||
src: sites
|
src: sites
|
||||||
|
@ -143,33 +142,37 @@
|
||||||
<select name="domain">
|
<select name="domain">
|
||||||
{% for site in sites %}<option value="{{ site }}">@{{ site }}</option>{% endfor %}
|
{% for site in sites %}<option value="{{ site }}">@{{ site }}</option>{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
<input type='submit' value="{% trans '授权登录' %}" id="loginButton" />
|
<input type='submit' value="{% trans 'Authorize' %}" id="loginButton" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if invite_status %}
|
{% if invite_status %}
|
||||||
<small>
|
<small>
|
||||||
{% if invite_status == 1 %}
|
{% if invite_status == 1 %}
|
||||||
<i class="fa-solid fa-circle-check"></i> 邀请链接有效,可注册新用户
|
<i class="fa-solid fa-circle-check"></i> {% trans "Valid invitation code, please login or register." %}
|
||||||
{% elif invite_status == -1 %}
|
{% elif invite_status == -1 %}
|
||||||
<i class="fa-solid fa-person-circle-question"></i> 本站目前为邀请注册,已有账户可直接登入,新用户请使用有效邀请链接注册
|
<i class="fa-solid fa-person-circle-question"></i> {% trans "Please use invitation link to register a new account; existing user may login." %}
|
||||||
{% elif invite_status == -2 %}
|
{% elif invite_status == -2 %}
|
||||||
<i class="fa-solid fa-circle-xmark"></i> 邀请链接无效,已有账户可直接登入,新用户请使用有效邀请链接注册
|
<i class="fa-solid fa-circle-xmark"></i> {% trans "Invitation code invalid or expired." %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</small>
|
</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<small id="fedi-tips">如不便或尚未<a href="https://joinmastodon.org/zh/servers" target="_blank">注册联邦宇宙</a>,也可以在上方选择「电子邮件验证」注册登录本站。</small>
|
<small id="fedi-tips">
|
||||||
<small id="email-tips" style="display:none;">现有用户通过联邦宇宙登录后关联电子邮件地址,即可通过邮件登录本站;如不便使用联邦宇宙,也可在此输入邮件地址注册账号,未来再关联到联邦宇宙。</small>
|
{% blocktrans %}Select Email Verification if you don't have a <a href="https://joinmastodon.org/servers" target="_blank">Fediverse account</a>.{% endblocktrans %}
|
||||||
|
</small>
|
||||||
|
<small id="email-tips" style="display:none;">{% trans "Enter your email address to register or sign in if you don't have a Fediverse account, or have associated your email with your Fediverse account before; otherwise please sign in via Fediverse, and associate your email address once logged in." %}</small>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<small class="hide_unless_alter_domain">
|
<small class="hide_unless_alter_domain">
|
||||||
<br>
|
<br>
|
||||||
这是{{ site_name }}的临时镜像,请尽可能使用<a href="{{ site_url }}{{ request.get_full_path }}">原始站点</a>。
|
{% blocktrans %}You are visiting an alternative domain for {{ site_name }}, please always use <a href="{{ site_url }}{{ request.get_full_path }}">original version</a> if possible.{% endblocktrans %}
|
||||||
</small>
|
</small>
|
||||||
<div class="delayed">部分模块加载超时,请检查网络(翻墙)设置。</div>
|
<div class="delayed">{% trans "Loading timed out, please check your network (VPN) settings." %}</div>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
<footer>
|
<footer>
|
||||||
<br>
|
<br>
|
||||||
<small>继续访问或注册视为同意<a href="/pages/rules/">站规</a>与<a href="/pages/terms/">协议</a>,及使用cookie提供必要功能</small>
|
<small>
|
||||||
|
{% blocktrans %}Using this site implies consent of our <a href="/pages/rules/">rules</a> and <a href="/pages/terms/">terms</a>, and use of cookies to provide necessary functionality.{% endblocktrans %}
|
||||||
|
</small>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
|
{% load i18n %}
|
||||||
{% load mastodon %}
|
{% load mastodon %}
|
||||||
{% current_user_relationship identity as relationship %}
|
{% current_user_relationship identity as relationship %}
|
||||||
{% if relationship.rejecting %}
|
{% if relationship.rejecting %}
|
||||||
<span class="tag-list">
|
<span class="tag-list">
|
||||||
<span><a title="点击可取消屏蔽"
|
<span><a title="{% trans "click to unblock" %}"
|
||||||
hx-confirm="确定要取消对该用户的屏蔽吗?"
|
hx-confirm="{% trans "are you sure to unblock?" %}"
|
||||||
hx-post="{% url 'users:unblock' identity.handle %}"
|
hx-post="{% url 'users:unblock' identity.handle %}"
|
||||||
hx-target="closest .action"
|
hx-target="closest .action"
|
||||||
hx-swap="innerHTML">已屏蔽</a></span>
|
hx-swap="innerHTML">{% trans "blocked" %}</a></span>
|
||||||
</span>
|
</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if relationship.status %}
|
{% if relationship.status %}
|
||||||
|
@ -18,7 +19,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if show_home %}
|
{% if show_home %}
|
||||||
<span>
|
<span>
|
||||||
<a title="用户主页" href="{{ identity.url }}">
|
<a title="{% trans "user profile" %}" href="{{ identity.url }}">
|
||||||
<i class="fa-solid fa-home"></i>
|
<i class="fa-solid fa-home"></i>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
@ -28,7 +29,7 @@
|
||||||
<a href="{{ identity.profile_uri }}"
|
<a href="{{ identity.profile_uri }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
title="用户原始主页">
|
title="{% trans "original home" %}">
|
||||||
<i class="fa-solid fa-circle-nodes"></i>
|
<i class="fa-solid fa-circle-nodes"></i>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
@ -59,7 +60,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if relationship.requested %}
|
{% if relationship.requested %}
|
||||||
<span>
|
<span>
|
||||||
<a title="接受关注请求"
|
<a title="{% trans "accept follow request" %}"
|
||||||
class="activated"
|
class="activated"
|
||||||
hx-post="{% url 'users:accept_follow_request' identity.handle %}"
|
hx-post="{% url 'users:accept_follow_request' identity.handle %}"
|
||||||
hx-target="closest .action"
|
hx-target="closest .action"
|
||||||
|
@ -68,7 +69,7 @@
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
<a title="拒绝关注请求"
|
<a title="{% trans "reject follow request" %}"
|
||||||
class="activated"
|
class="activated"
|
||||||
hx-post="{% url 'users:reject_follow_request' identity.handle %}"
|
hx-post="{% url 'users:reject_follow_request' identity.handle %}"
|
||||||
hx-target="closest .action"
|
hx-target="closest .action"
|
||||||
|
@ -79,7 +80,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if relationship.following %}
|
{% if relationship.following %}
|
||||||
<span>
|
<span>
|
||||||
<a title="已关注,点击可取消关注"
|
<a title="{% trans "click to unfollow" %}"
|
||||||
class="activated"
|
class="activated"
|
||||||
hx-post="{% url 'users:unfollow' identity.handle %}"
|
hx-post="{% url 'users:unfollow' identity.handle %}"
|
||||||
hx-target="closest .action"
|
hx-target="closest .action"
|
||||||
|
@ -89,7 +90,7 @@
|
||||||
</span>
|
</span>
|
||||||
{% elif relationship.requesting %}
|
{% elif relationship.requesting %}
|
||||||
<span>
|
<span>
|
||||||
<a title="已发送关注请求,点击可取消"
|
<a title="{% trans "click to cancel follow request" %}"
|
||||||
class="activated"
|
class="activated"
|
||||||
hx-post="{% url 'users:unfollow' identity.handle %}"
|
hx-post="{% url 'users:unfollow' identity.handle %}"
|
||||||
hx-target="closest .action"
|
hx-target="closest .action"
|
||||||
|
@ -99,7 +100,7 @@
|
||||||
</span>
|
</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span>
|
<span>
|
||||||
<a title="点击可关注该用户"
|
<a title="{% trans "click to follow" %}"
|
||||||
hx-post="{% url 'users:follow' identity.handle %}"
|
hx-post="{% url 'users:follow' identity.handle %}"
|
||||||
hx-target="closest .action"
|
hx-target="closest .action"
|
||||||
hx-swap="innerHTML">
|
hx-swap="innerHTML">
|
||||||
|
@ -109,7 +110,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not relationship.muting %}
|
{% if not relationship.muting %}
|
||||||
<span>
|
<span>
|
||||||
<a title="点击可隐藏该用户"
|
<a title="{% trans "click to mute" %}"
|
||||||
hx-post="{% url 'users:mute' identity.handle %}"
|
hx-post="{% url 'users:mute' identity.handle %}"
|
||||||
hx-target="closest .action"
|
hx-target="closest .action"
|
||||||
hx-swap="innerHTML">
|
hx-swap="innerHTML">
|
||||||
|
@ -118,7 +119,7 @@
|
||||||
</span>
|
</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span>
|
<span>
|
||||||
<a title="已隐藏,点击可取消隐藏"
|
<a title="{% trans "click to unmute" %}"
|
||||||
class="activated"
|
class="activated"
|
||||||
hx-post="{% url 'users:unmute' identity.handle %}"
|
hx-post="{% url 'users:unmute' identity.handle %}"
|
||||||
hx-target="closest .action"
|
hx-target="closest .action"
|
||||||
|
@ -128,8 +129,8 @@
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span>
|
<span>
|
||||||
<a title="点击可屏蔽该用户"
|
<a title="{% trans 'click to block' %}"
|
||||||
hx-confirm="确定要屏蔽该用户吗?"
|
hx-confirm="{% trans 'sure to block?' %}"
|
||||||
hx-post="{% url 'users:block' identity.handle %}"
|
hx-post="{% url 'users:block' identity.handle %}"
|
||||||
hx-target="closest .action"
|
hx-target="closest .action"
|
||||||
hx-swap="innerHTML">
|
hx-swap="innerHTML">
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% load i18n %}
|
||||||
{% for identity in list %}
|
{% for identity in list %}
|
||||||
<p style="border-bottom: gray 1px dashed; padding-bottom:4px;">
|
<p style="border-bottom: gray 1px dashed; padding-bottom:4px;">
|
||||||
<span class="action">{% include 'users/profile_actions.html' with show_home=1 %}</span>
|
<span class="action">{% include 'users/profile_actions.html' with show_home=1 %}</span>
|
||||||
|
|
Loading…
Add table
Reference in a new issue