more i18n

This commit is contained in:
Your Name 2024-05-19 21:37:12 -04:00 committed by Henri Dickson
parent b730571663
commit 8bdb0d130e
24 changed files with 230 additions and 119 deletions

View file

@ -1,3 +1,4 @@
{% load i18n %}
<p>
<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." %}

View file

@ -36,7 +36,6 @@
<br>
{% endif %} {% endcomment %}
{% include '_people.html' with people=item.other_title role='other title' max=2 %}
{% endif %}
<div>
{% if not hide_brief %}{{ item.brief | linebreaksbr }}{% endif %}
</div>

View file

@ -1,3 +1,4 @@
{% load i18n %}
<ul>
{% for log in mark.logs %}
<li>

View file

@ -1,4 +1,5 @@
{% load user_actions %}
{% load i18n %}
<section>
<h5>
{% trans "my tags" %}

View file

@ -1,3 +1,4 @@
{% load i18n %}
<!DOCTYPE html>
<html lang="en">
<head>

View file

@ -1,3 +1,4 @@
{% load i18n %}
<form style="display:none"
action="{% if featured %}{% url 'journal:collection_remove_featured' collection.uuid %}{% else %}{% url 'journal:collection_add_featured' collection.uuid %}{% endif %}"
method="post"

View file

@ -1,3 +1,4 @@
{% load i18n %}
{% load user_actions %}
{% boosted_post post as boosted %}
<span hx-target="this"

View file

@ -1,3 +1,4 @@
{% load i18n %}
{% load user_actions %}
{% liked_post post as liked %}
<span hx-target="this"

View file

@ -1,3 +1,4 @@
{% load i18n %}
<span>
<a target="_blank"
rel="noopener"

View file

@ -1,3 +1,4 @@
{% load i18n %}
<span>
<a title="{% trans "reply" %}"
{% if href %} href="{{ href }}" {% else %} {% if not request.user.is_authenticated %}hx-disable{% endif %}

View file

@ -1,3 +1,4 @@
{% load i18n %}
<span>
<a hx-get="{% url 'journal:post_replies' post.pk %}"
hx-swap="outerHTML"

View file

@ -1,3 +1,4 @@
{% load i18n %}
{{ calendar_data|json_script:"calendar_data" }}
<script>
$(".calendar_view").calendar_yearview_blocks({

View file

@ -1,3 +1,4 @@
{% load i18n %}
<form hx-post="{% url 'journal:collection_update_item_note' collection.uuid item.uuid %}"
hx-target="#collection_items">
<input name="note" value="{{ note }}">

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -600,7 +600,7 @@ msgstr "主播"
msgid "Invalid URL"
msgstr "无效网址"
#: catalog/templates/_fetch_failed.html:3
#: catalog/templates/_fetch_failed.html:4
msgid ""
"Unable to fetch from the link, please check again. Some sites may require "
"login for certain links, please manually create them here."
@ -670,39 +670,39 @@ msgstr "写该集短评"
msgid "review"
msgstr "评论"
#: catalog/templates/_item_user_mark_history.html:14
#: catalog/templates/_item_user_mark_history.html:15
msgid "no history."
msgstr "暂无标记历史"
#: catalog/templates/_item_user_mark_history.html:22
#: catalog/templates/_item_user_mark_history.html:23
msgid "sure to clear mark history?"
msgstr "确定清除所有标记历史吗?"
#: catalog/templates/_item_user_mark_history.html:22
#: catalog/templates/_item_user_mark_history.html:23
msgid "clear mark history"
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"
msgstr "清除标记历史不会删除或改变现有标记"
#: catalog/templates/_item_user_pieces.html:4
#: catalog/templates/_item_user_pieces.html:5
msgid "my tags"
msgstr "我的标签"
#: catalog/templates/_item_user_pieces.html:39
#: catalog/templates/_item_user_pieces.html:40
msgid "my comments"
msgstr "我的短评"
#: catalog/templates/_item_user_pieces.html:99
#: catalog/templates/_item_user_pieces.html:100
msgid "my review"
msgstr "我的评论"
#: catalog/templates/_item_user_pieces.html:141
#: catalog/templates/_item_user_pieces.html:142
msgid "my collection"
msgstr "我的收藏单"
#: catalog/templates/_item_user_pieces.html:171
#: catalog/templates/_item_user_pieces.html:172
msgid "mark history"
msgstr "标记历史"
@ -857,12 +857,12 @@ msgid "Are you sure to delete?"
msgstr "确认删除吗?"
#: 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"
msgstr "是"
#: 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"
msgstr "否"
@ -1000,7 +1000,7 @@ msgstr "简介"
#: catalog/templates/item_base.html:234 journal/templates/profile.html:109
#: journal/templates/profile.html:187 journal/templates/replies.html:46
#: 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."
msgstr "暂无内容。"
@ -1518,12 +1518,12 @@ msgstr "创建者和他们的互相关注"
msgid "Collaborative editing"
msgstr "协作编辑"
#: journal/importers/letterboxd.py:107
#: journal/importers/letterboxd.py:108
#, python-brace-format
msgid "a review of {item_title}"
msgstr "关于 {item_title} 的评论"
#: journal/importers/opml.py:35
#: journal/importers/opml.py:36
#, python-brace-format
msgid "{username}'s podcast subscriptions"
msgstr "{username} 的播客订阅"
@ -1885,24 +1885,24 @@ msgstr "评论过的演出"
msgid "removed mark"
msgstr "移除标记"
#: journal/templates/action_boost_post.html:9
#: journal/templates/action_boost_post.html:10
#: users/templates/users/preferences.html:111
msgid "boost"
msgstr ""
msgstr "转播"
#: journal/templates/action_like_post.html:9
#: journal/templates/action_like_post.html:10
msgid "liked"
msgstr ""
msgstr "已喜欢"
#: journal/templates/action_like_post.html:15
#: journal/templates/action_like_post.html:16
msgid "like"
msgstr ""
msgstr "喜欢"
#: journal/templates/action_open_post.html:6
#: journal/templates/action_open_post.html:7
msgid "link for fediverse"
msgstr "联邦宇宙分享链接"
#: journal/templates/action_reply_piece.html:2
#: journal/templates/action_reply_piece.html:3
msgid "reply"
msgstr "回应"
@ -2148,42 +2148,6 @@ msgstr ""
msgid "target site domain name"
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
msgid "created collection"
msgstr ""
@ -2511,6 +2475,7 @@ msgstr ""
"\n"
"如果你还没有联邦宇宙身份,可以访问这里选择实例并创建一个: https://"
"joinmastodon.org/zh/servers"
"\n"
#: users/account.py:335
#, python-brace-format
@ -2628,7 +2593,7 @@ msgstr "必填限字母数字下划线最多30个字符。"
msgid "A user with that username already exists."
msgstr "使用该用户名的用户已存在。"
#: users/models/user.py:93
#: users/models/user.py:93 users/templates/users/login.html:60
msgid "email address"
msgstr "电子邮件地址"
@ -2812,7 +2777,7 @@ msgstr ""
msgid "仅自己"
msgstr ""
#: users/templates/users/fetch_identity_failed.html:3
#: users/templates/users/fetch_identity_failed.html:4
msgid ""
"Unable to find the user, please check your spelling; or the server may be "
"busy, please try again later."
@ -2823,21 +2788,96 @@ msgstr "无法找到用户,请确认拼写正确;也可能服务器正忙,
msgid "Searching the fediverse"
msgstr "正在搜索联邦宇宙"
#: users/templates/users/login.html:16
msgid "登录"
msgstr ""
#: users/templates/users/login.html:16 users/templates/users/login.html:84
#: users/templates/users/register.html:8
msgid "Register"
msgstr "注册"
#: users/templates/users/login.html:16 users/templates/users/login.html:84
msgid "Login"
msgstr "登录"
#: users/templates/users/login.html:51
msgid "前往首页"
msgstr ""
#: users/templates/users/verify_email.html:22
msgid "back to your home page."
msgstr "返回首页"
#: users/templates/users/login.html:85
msgid "登录/注册"
msgstr ""
#: users/templates/users/login.html:69
msgid "domain name of your instance, e.g. mastodon.social"
msgstr "实例域名(不含@和@之前的部分)如mastodon.social"
#: users/templates/users/login.html:146
msgid "授权登录"
#: users/templates/users/login.html:78
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 ""
"现有用户通过联邦宇宙登录后关联电子邮件地址,即可通过邮件登录本站;如不便使用"
"联邦宇宙,也可在此输入邮件地址注册账号,未来再关联到联邦宇宙。"
#: 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
msgid "Default view once logged in"
@ -2957,9 +2997,61 @@ msgstr "应用程序"
msgid "View authorized applications"
msgstr "查看已授权的应用程序"
#: users/templates/users/register.html:8
msgid "Register"
msgstr "注册"
#: users/templates/users/profile_actions.html:6
msgid "click to unblock"
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
msgid "Welcome"
@ -3020,11 +3112,11 @@ msgstr "设置后请查收邮件并点击其中的确认链接"
msgid "Cut the sh*t and get me in!"
msgstr ""
#: users/templates/users/relationship_list.html:16
#: users/templates/users/relationship_list.html:17
msgid "export"
msgstr "导出"
#: users/templates/users/relationship_list.html:20
#: users/templates/users/relationship_list.html:21
#, python-format
msgid "You may download %(name)s on %(site_name)s here."
msgstr ""
@ -3040,10 +3132,6 @@ msgstr "验证电子邮件"
msgid "verified successfully."
msgstr "验证成功"
#: users/templates/users/verify_email.html:22
msgid "back to your home page."
msgstr "返回首页"
#: users/templates/users/verify_email.html:27
msgid "login again"
msgstr "重新登录"

View file

@ -1 +1,2 @@
{% load i18n %}
unsupported notification: announcement

View file

@ -1 +1,2 @@
{% load i18n %}
unsupported notification: boost

View file

@ -1 +1,2 @@
{% load i18n %}
joined {{ site_name }}

View file

@ -1 +1,2 @@
{% load i18n %}
unsupported notification: post

View file

@ -1,3 +1,4 @@
{% load i18n %}
{% if import_status.douban_pending == 2 %}
正在等待
{% elif import_status.douban_pending == 1 %}

View file

@ -1,3 +1,4 @@
{% load i18n %}
<p>
<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." %}

View file

@ -1,3 +1,4 @@
{% load i18n %}
<dialog open
_="on close_dialog add .closing then wait for animationend then remove me">
<article>

View file

@ -5,7 +5,7 @@
<head>
<meta charset="UTF-8">
<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"
property="og:description"
content="{{ site_description }}">
@ -13,7 +13,7 @@
<meta property="og:url" content="{{ site_url }}">
<meta property="og:image" content="{{ site_logo }}">
<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" %}
<meta name="robots" content="noindex">
<script src="{{ cdn_url }}/npm/@tarekraafat/autocomplete.js@10.2.7/dist/autoComplete.min.js"></script>
@ -48,7 +48,7 @@
</header>
<div>
{% 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 %}
<form action="{% url 'users:connect' %}" method="post">
{% csrf_token %}
@ -57,7 +57,7 @@
name="email"
id="email"
type="email"
placeholder="电子邮件地址"
placeholder="{% trans "email address" %}"
disabled
autocomplete="email"
style="display:none" />
@ -66,8 +66,7 @@
id="domain"
autofocus
pattern="(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,})"
title="实例域名(不含@和@之前的部分)如mastodon.social"
placeholder="实例域名(不含@和@之前的部分)如mastodon.social"
placeholder="{% trans "domain name of your instance, e.g. mastodon.social" %}"
autocorrect="off"
autocapitalize="off"
spellcheck="false" />
@ -76,13 +75,13 @@
required
onchange="switch_login()"
name="method">
<option disabled value="">选择登录方式</option>
<option selected value="fedi">联邦宇宙授权</option>
<option value="email">电子邮件验证</option>
<option disabled value="">{% trans "Login Method" %}</option>
<option selected value="fedi">{% trans "Fediverse Identity" %}</option>
<option value="email">{% trans "Email Verification" %}</option>
</select>
<input style="width:100%"
type='submit'
value="{% trans '登录/注册' %}"
value="{% trans 'Register' %} / {% trans "Login" %}"
id="loginButton"
disabled />
</div>
@ -110,7 +109,7 @@
}
}
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",
data: {
src: sites
@ -143,33 +142,37 @@
<select name="domain">
{% for site in sites %}<option value="{{ site }}">@{{ site }}</option>{% endfor %}
</select>
<input type='submit' value="{% trans '授权登录' %}" id="loginButton" />
<input type='submit' value="{% trans 'Authorize' %}" id="loginButton" />
{% endif %}
{% if invite_status %}
<small>
{% 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 %}
<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 %}
<i class="fa-solid fa-circle-xmark"></i> 邀请链接无效,已有账户可直接登入,新用户请使用有效邀请链接注册
<i class="fa-solid fa-circle-xmark"></i> {% trans "Invitation code invalid or expired." %}
{% endif %}
</small>
{% endif %}
<small id="fedi-tips">如不便或尚未<a href="https://joinmastodon.org/zh/servers" target="_blank">注册联邦宇宙</a>,也可以在上方选择「电子邮件验证」注册登录本站。</small>
<small id="email-tips" style="display:none;">现有用户通过联邦宇宙登录后关联电子邮件地址,即可通过邮件登录本站;如不便使用联邦宇宙,也可在此输入邮件地址注册账号,未来再关联到联邦宇宙。</small>
<small id="fedi-tips">
{% 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>
{% endif %}
<small class="hide_unless_alter_domain">
<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>
<div class="delayed">部分模块加载超时,请检查网络(翻墙)设置。</div>
<div class="delayed">{% trans "Loading timed out, please check your network (VPN) settings." %}</div>
</div>
</article>
<footer>
<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>
</body>
</html>

View file

@ -1,12 +1,13 @@
{% load i18n %}
{% load mastodon %}
{% current_user_relationship identity as relationship %}
{% if relationship.rejecting %}
<span class="tag-list">
<span><a title="点击可取消屏蔽"
hx-confirm="确定要取消对该用户的屏蔽吗?"
<span><a title="{% trans "click to unblock" %}"
hx-confirm="{% trans "are you sure to unblock?" %}"
hx-post="{% url 'users:unblock' identity.handle %}"
hx-target="closest .action"
hx-swap="innerHTML">已屏蔽</a></span>
hx-swap="innerHTML">{% trans "blocked" %}</a></span>
</span>
{% else %}
{% if relationship.status %}
@ -18,7 +19,7 @@
{% endif %}
{% if show_home %}
<span>
<a title="用户主页" href="{{ identity.url }}">
<a title="{% trans "user profile" %}" href="{{ identity.url }}">
<i class="fa-solid fa-home"></i>
</a>
</span>
@ -28,7 +29,7 @@
<a href="{{ identity.profile_uri }}"
target="_blank"
rel="noopener"
title="用户原始主页">
title="{% trans "original home" %}">
<i class="fa-solid fa-circle-nodes"></i>
</a>
</span>
@ -59,7 +60,7 @@
{% endif %}
{% if relationship.requested %}
<span>
<a title="接受关注请求"
<a title="{% trans "accept follow request" %}"
class="activated"
hx-post="{% url 'users:accept_follow_request' identity.handle %}"
hx-target="closest .action"
@ -68,7 +69,7 @@
</a>
</span>
<span>
<a title="拒绝关注请求"
<a title="{% trans "reject follow request" %}"
class="activated"
hx-post="{% url 'users:reject_follow_request' identity.handle %}"
hx-target="closest .action"
@ -79,7 +80,7 @@
{% endif %}
{% if relationship.following %}
<span>
<a title="已关注,点击可取消关注"
<a title="{% trans "click to unfollow" %}"
class="activated"
hx-post="{% url 'users:unfollow' identity.handle %}"
hx-target="closest .action"
@ -89,7 +90,7 @@
</span>
{% elif relationship.requesting %}
<span>
<a title="已发送关注请求,点击可取消"
<a title="{% trans "click to cancel follow request" %}"
class="activated"
hx-post="{% url 'users:unfollow' identity.handle %}"
hx-target="closest .action"
@ -99,7 +100,7 @@
</span>
{% else %}
<span>
<a title="点击可关注该用户"
<a title="{% trans "click to follow" %}"
hx-post="{% url 'users:follow' identity.handle %}"
hx-target="closest .action"
hx-swap="innerHTML">
@ -109,7 +110,7 @@
{% endif %}
{% if not relationship.muting %}
<span>
<a title="点击可隐藏该用户"
<a title="{% trans "click to mute" %}"
hx-post="{% url 'users:mute' identity.handle %}"
hx-target="closest .action"
hx-swap="innerHTML">
@ -118,7 +119,7 @@
</span>
{% else %}
<span>
<a title="已隐藏,点击可取消隐藏"
<a title="{% trans "click to unmute" %}"
class="activated"
hx-post="{% url 'users:unmute' identity.handle %}"
hx-target="closest .action"
@ -128,8 +129,8 @@
</span>
{% endif %}
<span>
<a title="点击可屏蔽该用户"
hx-confirm="确定要屏蔽该用户吗?"
<a title="{% trans 'click to block' %}"
hx-confirm="{% trans 'sure to block?' %}"
hx-post="{% url 'users:block' identity.handle %}"
hx-target="closest .action"
hx-swap="innerHTML">

View file

@ -1,3 +1,4 @@
{% load i18n %}
{% for identity in list %}
<p style="border-bottom: gray 1px dashed; padding-bottom:4px;">
<span class="action">{% include 'users/profile_actions.html' with show_home=1 %}</span>