more i18n
This commit is contained in:
parent
9ab4dee3bd
commit
f69883c58c
13 changed files with 189 additions and 175 deletions
|
@ -9,7 +9,7 @@
|
|||
<div class="modal-underlay" _="on click trigger closeModal"></div>
|
||||
<div class="modal-content">
|
||||
<div class="add-to-list-modal__head">
|
||||
<span class="add-to-list-modal__title">{% trans '添加到收藏单' %}</span>
|
||||
<span class="add-to-list-modal__title">{% trans 'Add to collection' %}</span>
|
||||
<span class="add-to-list-modal__close-button modal-close"
|
||||
_="on click trigger closeModal">
|
||||
<i class="fa-solid fa-xmark"></i>
|
||||
|
@ -26,13 +26,13 @@
|
|||
{% if collection.visibility > 0 %}🔒{% endif %}
|
||||
</option>
|
||||
{% endfor %}
|
||||
<option value="0">新建收藏单</option>
|
||||
<option value="0">({% trans "Create a new collection" %})</option>
|
||||
</select>
|
||||
<div>
|
||||
<textarea type="text" name="note" placeholder="条目备注"></textarea>
|
||||
<textarea type="text" name="note" placeholder="{% trans "Note" %}"></textarea>
|
||||
</div>
|
||||
<div class="add-to-list-modal__confirm-button">
|
||||
<input type="submit" class="button float-right" value="{% trans '保存' %}">
|
||||
<input type="submit" class="button float-right" value="{% trans 'Save' %}">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -12,14 +12,14 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="og:title"
|
||||
content="{{ site_name }}{% trans '收藏单' %} - {{ collection.title }}">
|
||||
content="{{ collection.title }} - {% trans 'Collection' %} - {{ site_name }}">
|
||||
<meta property="og:description" content="{{ collection.description }}">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:article:author"
|
||||
content="{{ collection.owner.display_name }}">
|
||||
<meta property="og:url" content="{{ request.build_absolute_uri }}">
|
||||
<meta property="og:image" content="{{ collection.cover|thumb:'normal' }}">
|
||||
<title>{{ site_name }} {% trans '收藏单' %} - {{ collection.title }}</title>
|
||||
<title>{{ site_name }} - {% trans 'Collection' %} - {{ collection.title }}</title>
|
||||
{% include "common_libs.html" %}
|
||||
</head>
|
||||
<body>
|
||||
|
@ -37,7 +37,7 @@
|
|||
hx-get="{% url 'journal:collection_share' collection.uuid %}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend"
|
||||
title="分享到联邦宇宙"><i class="fa-solid fa-share-nodes"></i></a>
|
||||
title="{% trans "Share" %}"><i class="fa-solid fa-share-nodes"></i></a>
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if collection.latest_post %}
|
||||
|
@ -121,18 +121,18 @@
|
|||
hx-trigger="click once"
|
||||
hx-target="#replies_{{ collection.latest_post.pk }}">
|
||||
{{ collection.latest_post.stats.replies | default:'' }}
|
||||
回应
|
||||
{% trans "Reply" %}
|
||||
</a>
|
||||
</span>
|
||||
{% if request.user.identity == collection.owner %}
|
||||
<span>
|
||||
<a href="{% url 'journal:collection_edit' collection.uuid %}">{% trans '编辑' %}</a>
|
||||
<a href="{% url 'journal:collection_edit' collection.uuid %}">{% trans 'Edit' %}</a>
|
||||
</span>
|
||||
<span>
|
||||
<a href="{% url 'journal:collection_delete' collection.uuid %}">{% trans '删除' %}</a>
|
||||
<a href="{% url 'journal:collection_delete' collection.uuid %}">{% trans 'Delete' %}</a>
|
||||
</span>
|
||||
{% elif editable %}
|
||||
<a href="{% url 'journal:collection_edit' collection.uuid %}">{% trans '协助整理' %}</a>
|
||||
<a href="{% url 'journal:collection_edit' collection.uuid %}">{% trans 'Collaborative editing' %}</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
@ -142,9 +142,9 @@
|
|||
rel="noopener"
|
||||
href="{{ collection.shared_link }}"
|
||||
onclick="navigator.share({url:'{{ collection.shared_link|escapejs }}'});event.preventDefault();"
|
||||
title="联邦宇宙分享链接"><i class="fa-solid {% if collection.visibility > 0 %} fa-lock {% else %} fa-globe {% endif %}"></i></a>
|
||||
title="link for fediverse"><i class="fa-solid {% if collection.visibility > 0 %} fa-lock {% else %} fa-globe {% endif %}"></i></a>
|
||||
</span>
|
||||
<span><a>创建于 {{ collection.created_time|date }}</a></span>
|
||||
<span><a>{% trans "Created date" %}: {{ collection.created_time|date }}</a></span>
|
||||
</span>
|
||||
</section>
|
||||
<section id="replies_{{ collection.latest_post.pk }}">
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ site_name }} - 编辑收藏单 - {{ title }}</title>
|
||||
<title>{{ site_name }} - {% trans "Collection" %} - {{ title }} - {% trans "Edit" %}</title>
|
||||
{% include "common_libs.html" %}
|
||||
<script src="{{ cdn_url }}/npm/html5sortable@0.13.3/dist/html5sortable.min.js"></script>
|
||||
<style type="text/css">
|
||||
|
@ -22,27 +22,27 @@
|
|||
<div class="grid__main">
|
||||
<h4>
|
||||
{% if collection %}
|
||||
编辑 <a href="{{ collection.url }}">{{ collection.title }}</a>
|
||||
{% trans "Edit" %} <a href="{{ collection.url }}">{{ collection.title }}</a>
|
||||
{% else %}
|
||||
创建收藏单
|
||||
{% trans "Create a new collection" %}
|
||||
{% endif %}
|
||||
</h4>
|
||||
<hr>
|
||||
<details {% if not collection %}open{% endif %}>
|
||||
<summary>标题和描述</summary>
|
||||
<summary>{% trans "Title and Description" %}</summary>
|
||||
<form class="entity-form markdown-content"
|
||||
method="post"
|
||||
enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
<input class="button" type="submit" value="{% trans '保存' %}">
|
||||
<input class="button" type="submit" value="{% trans 'Save' %}">
|
||||
</form>
|
||||
{{ form.media }}
|
||||
</details>
|
||||
{% if collection %}
|
||||
<hr>
|
||||
<details open>
|
||||
<summary>条目</summary>
|
||||
<summary>{% trans "Items" %}</summary>
|
||||
<div id="collection_items"
|
||||
hx-get="{% url 'journal:collection_retrieve_items' collection.uuid %}?edit=1"
|
||||
hx-trigger="load"></div>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{% for member in collection.ordered_members %}
|
||||
{% include '_list_item.html' with item=member.item mark=None collection_member=member %}
|
||||
{% empty %}
|
||||
暂无条目
|
||||
{% trans "nothing so far." %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if collection_edit %}
|
||||
|
@ -21,9 +21,11 @@
|
|||
required>
|
||||
<input type="text"
|
||||
name="comment"
|
||||
placeholder="{% trans '备注' %}"
|
||||
placeholder="{% trans 'Note' %}"
|
||||
style="min-width:24rem">
|
||||
<input class="button" type="submit" value="{% trans '添加站内条目到收藏夹' %}">
|
||||
<input class="button"
|
||||
type="submit"
|
||||
value="{% trans 'Add an item to this collection' %}">
|
||||
</form>
|
||||
<script>
|
||||
$(function () {
|
||||
|
@ -49,7 +51,9 @@
|
|||
method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="member_ids" id="member_ids" required>
|
||||
<input type="submit" class="secondary" value="拖拽修改条目顺序后点击这里保存">
|
||||
<input type="submit"
|
||||
class="secondary"
|
||||
value="{% trans "Drag and drop to change the order order and click here to save" %}">
|
||||
</form>
|
||||
{% endif %}
|
||||
{% if msg %}<script type="text/javascript">alert("{{ msg|escapejs }}");</script>{% endif %}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div class="modal-underlay" _="on click trigger closeModal"></div>
|
||||
<div class="modal-content">
|
||||
<div class="add-to-list-modal__head">
|
||||
<span class="add-to-list-modal__title">{% trans '分享收藏单' %} - {{ collection.title }}</span>
|
||||
<span class="add-to-list-modal__title">{% trans 'Collection' %} - {{ collection.title }} - {% trans 'Share' %}</span>
|
||||
<span class="add-to-list-modal__close-button modal-close"
|
||||
_="on click trigger closeModal">
|
||||
<i class="fa-solid fa-xmark"></i>
|
||||
|
@ -20,7 +20,9 @@
|
|||
method="post">
|
||||
{% csrf_token %}
|
||||
<div>
|
||||
<label for="id_visibility_0">分享可见性(不同于收藏单本身的权限):</label>
|
||||
<label for="id_visibility_0">
|
||||
{% trans "Visibility" %} ({% trans "for the sharing post only, not visibility of the collection" %})
|
||||
</label>
|
||||
<ul id="id_visibility">
|
||||
<li>
|
||||
<label for="id_visibility_0">
|
||||
|
@ -30,7 +32,7 @@
|
|||
required=""
|
||||
id="id_visibility_0"
|
||||
{% if collection.visibility == 0 %}checked{% endif %}>
|
||||
公开
|
||||
{% trans "Public" %}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -41,7 +43,7 @@
|
|||
required=""
|
||||
id="id_visibility_1"
|
||||
{% if collection.visibility == 1 %}checked{% endif %}>
|
||||
仅关注者
|
||||
{% trans "Followers Only" %}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -52,16 +54,16 @@
|
|||
required=""
|
||||
id="id_visibility_2"
|
||||
{% if collection.visibility == 2 %}checked{% endif %}>
|
||||
仅自己
|
||||
{% trans "Mentioned Only" %}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<textarea type="text" name="comment" placeholder="分享附言"></textarea>
|
||||
<textarea type="text" name="comment" placeholder="{% trans "note" %}"></textarea>
|
||||
</div>
|
||||
<div class="add-to-list-modal__confirm-button">
|
||||
<input type="submit" class="button float-right" value="{% trans '提交' %}">
|
||||
<input type="submit" class="button float-right" value="{% trans 'Share' %}">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
aria-label="Close"
|
||||
class="close"
|
||||
_="on click trigger close_dialog" />
|
||||
<strong>{% trans '评论' %} {{ item.parent_item.title }}: {{ item.title }}</strong>
|
||||
<strong>{% trans 'Comment' %} - {{ item.parent_item.title }}: {{ item.title }}</strong>
|
||||
</header>
|
||||
<div>
|
||||
<form action="{% url 'journal:comment' item.uuid %}" method="post">
|
||||
|
@ -21,7 +21,7 @@
|
|||
<textarea name="text"
|
||||
cols="40"
|
||||
rows="10"
|
||||
placeholder="提示: 善用 >!文字!< 标记可隐藏剧透; 超过360字可能无法分享到联邦宇宙实例时间轴。"
|
||||
placeholder="{% trans "Tips: use >!text!< for spoilers; some instances may not be able to show posts longer than 360 charactors." %}"
|
||||
id="id_text">{% if comment.text %}{{ comment.text }}{% endif %}</textarea>
|
||||
<div class="grid">
|
||||
<div>
|
||||
|
@ -32,21 +32,21 @@
|
|||
required=""
|
||||
id="id_visibility_0"
|
||||
{% if comment.visibility == 0 or not comment %}checked{% endif %}>
|
||||
<label for="id_visibility_0">公开</label>
|
||||
<label for="id_visibility_0">{% trans "Public" %}</label>
|
||||
<input type="radio"
|
||||
name="visibility"
|
||||
value="1"
|
||||
required=""
|
||||
id="id_visibility_1"
|
||||
{% if comment.visibility == 1 %}checked{% endif %}>
|
||||
<label for="id_visibility_1">仅关注者</label>
|
||||
<label for="id_visibility_1">{% trans "Followers Only" %}</label>
|
||||
<input type="radio"
|
||||
name="visibility"
|
||||
value="2"
|
||||
required=""
|
||||
id="id_visibility_2"
|
||||
{% if comment.visibility == 2 %}checked{% endif %}>
|
||||
<label for="id_visibility_2">仅自己</label>
|
||||
<label for="id_visibility_2">{% trans "Mentioned Only" %}</label>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div>
|
||||
|
@ -59,7 +59,7 @@
|
|||
id="id_share_to_mastodon"
|
||||
value="1"
|
||||
{% if request.user.preference.mastodon_default_repost %}checked{% endif %}>
|
||||
转发到<em data-tooltip="@{{ request.user.mastodon_acct }}">主ID</em>时间轴
|
||||
{% trans "Repost to your timeline" %}
|
||||
</label>
|
||||
{% endif %}
|
||||
</fieldset>
|
||||
|
@ -72,7 +72,7 @@
|
|||
<div role="group">
|
||||
<div>
|
||||
<input type="checkbox" name="share_position" value="1" id="share_position">
|
||||
<label for="share_position">分享播放位置:</label>
|
||||
<label for="share_position">{% trans "share with playback position" %}</label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="input"
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
role="group"
|
||||
hx-post="{% url 'journal:post_reply' post.pk %}"
|
||||
hx-trigger="submit once">
|
||||
<input name="content" type="text" placeholder="{% trans "your reply" %}" />
|
||||
<input name="content" type="text" placeholder="{% trans "add a reply" %}" />
|
||||
<details class="dropdown">
|
||||
<summary>
|
||||
<i class="fa-solid fa-users-gear"></i>
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
hx-trigger="click once"
|
||||
hx-target="#replies_{{ review.latest_post.pk }}">
|
||||
{{ review.latest_post.stats.replies | default:'' }}
|
||||
{% trans "reply" %}
|
||||
{% trans "Reply" %}
|
||||
</a>
|
||||
</span>
|
||||
{% if request.user.identity == review.owner %}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div class="modal-underlay" _="on click trigger closeModal"></div>
|
||||
<div class="modal-content">
|
||||
<div class="add-to-list-modal__head">
|
||||
<span class="add-to-list-modal__title">{% trans '编辑标签' %} {{ item.title }}</span>
|
||||
<span class="add-to-list-modal__title">{% trans 'Tag' %} - {{ item.title }} - {% trans 'Edit' %}</span>
|
||||
<span class="add-to-list-modal__close-button modal-close"
|
||||
_="on click trigger closeModal">
|
||||
<i class="fa-solid fa-xmark"></i>
|
||||
|
@ -27,7 +27,7 @@
|
|||
</div>
|
||||
<div class="mark-modal__option">
|
||||
<div class="mark-modal__visibility-radio">
|
||||
<span>可见性:
|
||||
<span>{% trans "Visibility" %}
|
||||
<ul id="id_visibility">
|
||||
<li>
|
||||
<label for="id_visibility_0">
|
||||
|
@ -37,7 +37,7 @@
|
|||
required=""
|
||||
id="id_visibility_0"
|
||||
{% if tag.visibility == 0 %}checked{% endif %}>
|
||||
公共
|
||||
{% trans "Public" %}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -48,23 +48,23 @@
|
|||
required=""
|
||||
id="id_visibility_2"
|
||||
{% if tag.visibility != 0 %}checked{% endif %}>
|
||||
个人
|
||||
{% trans "Personal" %}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</span>
|
||||
</div>
|
||||
<i>个人标签仅限于在个人主页的标签列表里不向他人展示,如果公开标记一个条目时使用这个标签仍会被别人看到。</i>
|
||||
<i>{% trans "Personal tags are not shown to others when they view your tag list. However, if you use this tag when marking an item publicly, it might still be visible to others." %}</i>
|
||||
</div>
|
||||
<div class="mark-modal__confirm-button">
|
||||
<input type="submit" class="button float-right" value="保存">
|
||||
<input type="submit" class="button float-right" value="{% trans "Save" %}">
|
||||
</div>
|
||||
<div class="mark-modal__option">
|
||||
<div class="mark-modal__visibility-radio">
|
||||
<span>
|
||||
<label for="_delete" title="无法撤销">
|
||||
<label for="_delete">
|
||||
<input type="checkbox" name="delete" value="1" id="_delete">
|
||||
删除这个标签
|
||||
{% trans "Delete this tag" %}
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
@ -6,7 +6,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-05-22 18:06-0400\n"
|
||||
"POT-Creation-Date: 2024-05-23 11:27-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"
|
||||
|
@ -332,6 +332,9 @@ msgid "Exhibition"
|
|||
msgstr "展览"
|
||||
|
||||
#: catalog/common/models.py:123 catalog/common/models.py:136
|
||||
#: journal/templates/collection.html:15 journal/templates/collection.html:22
|
||||
#: journal/templates/collection_edit.html:9
|
||||
#: journal/templates/collection_share.html:12
|
||||
msgid "Collection"
|
||||
msgstr "收藏单"
|
||||
|
||||
|
@ -707,7 +710,7 @@ msgstr "标记历史"
|
|||
|
||||
#: catalog/templates/_sidebar_edit.html:7
|
||||
msgid "edit"
|
||||
msgstr ""
|
||||
msgstr "编辑"
|
||||
|
||||
#: catalog/templates/_sidebar_edit.html:11
|
||||
#: catalog/templates/catalog_history.html:9
|
||||
|
@ -864,8 +867,8 @@ msgstr "合并到另一条目"
|
|||
#: catalog/templates/_sidebar_edit.html:210
|
||||
#: catalog/templates/catalog_delete.html:11
|
||||
#: developer/templates/oauth2_provider/application_detail.html:42
|
||||
#: journal/templates/mark.html:157 journal/templates/piece_delete.html:9
|
||||
#: journal/templates/review.html:83
|
||||
#: journal/templates/collection.html:133 journal/templates/mark.html:157
|
||||
#: journal/templates/piece_delete.html:9 journal/templates/review.html:83
|
||||
msgid "Delete"
|
||||
msgstr "删除"
|
||||
|
||||
|
@ -1017,7 +1020,10 @@ msgstr "否"
|
|||
|
||||
#: catalog/templates/catalog_edit.html:11
|
||||
#: developer/templates/oauth2_provider/application_detail.html:40
|
||||
#: journal/templates/review.html:80
|
||||
#: journal/templates/collection.html:130
|
||||
#: journal/templates/collection_edit.html:9
|
||||
#: journal/templates/collection_edit.html:25 journal/templates/review.html:80
|
||||
#: journal/templates/tag_edit.html:12
|
||||
msgid "Edit"
|
||||
msgstr "编辑"
|
||||
|
||||
|
@ -1027,7 +1033,9 @@ msgstr "创建"
|
|||
|
||||
#: catalog/templates/catalog_edit.html:50
|
||||
#: developer/templates/oauth2_provider/application_form.html:35
|
||||
#: journal/templates/mark.html:142 journal/templates/review_edit.html:40
|
||||
#: journal/templates/add_to_collection.html:35
|
||||
#: journal/templates/collection_edit.html:38 journal/templates/mark.html:142
|
||||
#: journal/templates/review_edit.html:40 journal/templates/tag_edit.html:60
|
||||
#: users/templates/users/account.html:43 users/templates/users/account.html:104
|
||||
#: users/templates/users/preferences.html:170
|
||||
#: users/templates/users/preferences.html:195
|
||||
|
@ -1156,9 +1164,9 @@ msgstr "简介"
|
|||
#: catalog/templates/item_base.html:234
|
||||
#: catalog/templates/item_mark_list.html:54
|
||||
#: catalog/templates/item_review_list.html:50 common/templates/_sidebar.html:97
|
||||
#: common/templates/_sidebar.html:197 journal/templates/profile.html:109
|
||||
#: journal/templates/profile.html:151 journal/templates/profile.html:187
|
||||
#: journal/templates/replies.html:46
|
||||
#: common/templates/_sidebar.html:197 journal/templates/collection_items.html:8
|
||||
#: journal/templates/profile.html:109 journal/templates/profile.html:151
|
||||
#: journal/templates/profile.html:187 journal/templates/replies.html:46
|
||||
#: journal/templates/user_item_list_base.html:25
|
||||
#: journal/templates/user_tag_list.html:29 social/templates/events.html:46
|
||||
#: users/templates/users/announcements.html:53
|
||||
|
@ -1539,7 +1547,7 @@ msgstr "注册或登录"
|
|||
|
||||
#: common/templates/_header.html:117
|
||||
msgid "Set a username."
|
||||
msgstr ""
|
||||
msgstr "设置用户名"
|
||||
|
||||
#: common/templates/_sidebar.html:13
|
||||
msgid "Unread Announcements"
|
||||
|
@ -1687,8 +1695,9 @@ msgid "Post to Fediverse"
|
|||
msgstr "发布到联邦宇宙"
|
||||
|
||||
#: journal/forms.py:25 journal/forms.py:45
|
||||
#: journal/templates/wrapped_share.html:36 users/templates/users/data.html:40
|
||||
#: users/templates/users/data.html:132
|
||||
#: journal/templates/collection_share.html:24
|
||||
#: journal/templates/tag_edit.html:30 journal/templates/wrapped_share.html:36
|
||||
#: users/templates/users/data.html:40 users/templates/users/data.html:132
|
||||
msgid "Visibility"
|
||||
msgstr "可见性"
|
||||
|
||||
|
@ -1700,7 +1709,7 @@ msgstr "仅创建者"
|
|||
msgid "creator and their mutuals"
|
||||
msgstr "创建者和他们的互相关注"
|
||||
|
||||
#: journal/forms.py:52
|
||||
#: journal/forms.py:52 journal/templates/collection.html:136
|
||||
msgid "Collaborative editing"
|
||||
msgstr "协作编辑"
|
||||
|
||||
|
@ -1714,25 +1723,29 @@ msgstr "关于 {item_title} 的评论"
|
|||
msgid "{username}'s podcast subscriptions"
|
||||
msgstr "{username} 的播客订阅"
|
||||
|
||||
#: journal/models/collection.py:25 journal/templates/wrapped_share.html:29
|
||||
#: journal/models/collection.py:25 journal/templates/collection_share.html:63
|
||||
#: journal/templates/wrapped_share.html:29
|
||||
msgid "note"
|
||||
msgstr "备注"
|
||||
|
||||
#: journal/models/common.py:26 journal/templates/mark.html:88
|
||||
#: journal/templates/wrapped_share.html:43 users/templates/users/data.html:49
|
||||
#: users/templates/users/data.html:141
|
||||
#: journal/models/common.py:26 journal/templates/collection_share.html:35
|
||||
#: journal/templates/comment.html:35 journal/templates/mark.html:88
|
||||
#: journal/templates/tag_edit.html:40 journal/templates/wrapped_share.html:43
|
||||
#: users/templates/users/data.html:49 users/templates/users/data.html:141
|
||||
#: users/templates/users/preferences.html:54
|
||||
msgid "Public"
|
||||
msgstr "公开"
|
||||
|
||||
#: journal/models/common.py:27 journal/templates/mark.html:95
|
||||
#: journal/models/common.py:27 journal/templates/collection_share.html:46
|
||||
#: journal/templates/comment.html:42 journal/templates/mark.html:95
|
||||
#: journal/templates/wrapped_share.html:49 users/templates/users/data.html:57
|
||||
#: users/templates/users/data.html:149
|
||||
#: users/templates/users/preferences.html:61
|
||||
msgid "Followers Only"
|
||||
msgstr "仅关注者"
|
||||
|
||||
#: journal/models/common.py:28 journal/templates/mark.html:102
|
||||
#: journal/models/common.py:28 journal/templates/collection_share.html:57
|
||||
#: journal/templates/comment.html:49 journal/templates/mark.html:102
|
||||
#: journal/templates/wrapped_share.html:55 users/templates/users/data.html:65
|
||||
#: users/templates/users/data.html:157
|
||||
#: users/templates/users/preferences.html:68
|
||||
|
@ -2119,58 +2132,82 @@ msgstr "喜欢"
|
|||
msgid "link for fediverse"
|
||||
msgstr "联邦宇宙分享链接"
|
||||
|
||||
#: journal/templates/action_reply_piece.html:3 journal/templates/review.html:75
|
||||
#: journal/templates/action_reply_piece.html:3
|
||||
msgid "reply"
|
||||
msgstr "回应"
|
||||
|
||||
#: journal/templates/add_to_collection.html:12
|
||||
msgid "添加到收藏单"
|
||||
msgstr ""
|
||||
msgid "Add to collection"
|
||||
msgstr "添加到收藏单"
|
||||
|
||||
#: journal/templates/add_to_collection.html:35
|
||||
#: journal/templates/collection_edit.html:38
|
||||
msgid "保存"
|
||||
msgstr ""
|
||||
|
||||
#: journal/templates/collection.html:15 journal/templates/collection.html:22
|
||||
msgid "收藏单"
|
||||
msgstr ""
|
||||
|
||||
#: journal/templates/collection.html:130
|
||||
msgid "编辑"
|
||||
msgstr ""
|
||||
|
||||
#: journal/templates/collection.html:133
|
||||
msgid "删除"
|
||||
msgstr ""
|
||||
|
||||
#: journal/templates/collection.html:136
|
||||
msgid "协助整理"
|
||||
msgstr ""
|
||||
#: journal/templates/add_to_collection.html:29
|
||||
#: journal/templates/collection_edit.html:27
|
||||
msgid "Create a new collection"
|
||||
msgstr "创建新收藏单"
|
||||
|
||||
#: journal/templates/add_to_collection.html:32
|
||||
#: journal/templates/collection_items.html:24
|
||||
msgid "备注"
|
||||
msgstr ""
|
||||
|
||||
#: journal/templates/collection_items.html:26
|
||||
msgid "添加站内条目到收藏夹"
|
||||
msgstr ""
|
||||
msgid "Note"
|
||||
msgstr "备注"
|
||||
|
||||
#: journal/templates/collection.html:40
|
||||
#: journal/templates/collection_share.html:12
|
||||
msgid "分享收藏单"
|
||||
msgstr ""
|
||||
#: journal/templates/collection_share.html:66
|
||||
#: journal/templates/wrapped_share.html:59
|
||||
msgid "Share"
|
||||
msgstr "分享"
|
||||
|
||||
#: journal/templates/collection_share.html:64
|
||||
msgid "提交"
|
||||
msgstr ""
|
||||
#: journal/templates/collection.html:125 journal/templates/review.html:75
|
||||
msgid "Reply"
|
||||
msgstr "回应"
|
||||
|
||||
#: journal/templates/collection.html:148
|
||||
msgid "Created date"
|
||||
msgstr "创建日期"
|
||||
|
||||
#: journal/templates/collection_edit.html:32
|
||||
msgid "Title and Description"
|
||||
msgstr "标题和描述"
|
||||
|
||||
#: journal/templates/collection_edit.html:45
|
||||
msgid "Items"
|
||||
msgstr "条目"
|
||||
|
||||
#: journal/templates/collection_items.html:28
|
||||
msgid "Add an item to this collection"
|
||||
msgstr "添加站内条目到收藏夹"
|
||||
|
||||
#: journal/templates/collection_items.html:56
|
||||
msgid "Drag and drop to change the order order and click here to save"
|
||||
msgstr "拖拽修改条目顺序后点击这里保存"
|
||||
|
||||
#: journal/templates/collection_share.html:24
|
||||
msgid "for the sharing post only, not visibility of the collection"
|
||||
msgstr "分享帖文的可见性,不同于收藏单本身的权限"
|
||||
|
||||
#: journal/templates/collection_update_item_note.html:5
|
||||
msgid "Update"
|
||||
msgstr "更新"
|
||||
|
||||
#: journal/templates/comment.html:16
|
||||
msgid "评论"
|
||||
msgid "Comment"
|
||||
msgstr "写短评"
|
||||
|
||||
#: journal/templates/comment.html:24 journal/templates/mark.html:66
|
||||
msgid ""
|
||||
"Tips: use >!text!< for spoilers; some instances may not be able to "
|
||||
"show posts longer than 360 charactors."
|
||||
msgstr ""
|
||||
"提示: 善用 >!文字!< 标记可隐藏剧透; 超过360字可能无法分享到联邦宇宙实"
|
||||
"例时间轴。"
|
||||
|
||||
#: journal/templates/comment.html:62 journal/templates/mark.html:115
|
||||
msgid "Repost to your timeline"
|
||||
msgstr "转发到时间轴"
|
||||
|
||||
#: journal/templates/comment.html:75
|
||||
msgid "share with playback position"
|
||||
msgstr "分享播放位置"
|
||||
|
||||
#: journal/templates/mark.html:17
|
||||
msgid "Mark"
|
||||
|
@ -2181,22 +2218,10 @@ msgstr "标记"
|
|||
msgid "not rated"
|
||||
msgstr "未评分"
|
||||
|
||||
#: journal/templates/mark.html:66
|
||||
msgid ""
|
||||
"Tips: use >!text!< for spoilers; some instances may not be able to "
|
||||
"show posts longer than 360 charactors."
|
||||
msgstr ""
|
||||
"提示: 善用 >!文字!< 标记可隐藏剧透; 超过360字可能无法分享到联邦宇宙实"
|
||||
"例时间轴。"
|
||||
|
||||
#: journal/templates/mark.html:74
|
||||
msgid "add a tag and press Enter"
|
||||
msgstr "回车增加标签"
|
||||
|
||||
#: journal/templates/mark.html:115
|
||||
msgid "Repost to your timeline"
|
||||
msgstr "转发到时间轴"
|
||||
|
||||
#: journal/templates/mark.html:130
|
||||
msgid "change mark date"
|
||||
msgstr "指定标记日期"
|
||||
|
@ -2221,6 +2246,10 @@ msgstr "收藏单"
|
|||
msgid "liked collection"
|
||||
msgstr "喜欢的收藏单"
|
||||
|
||||
#: journal/templates/replies.html:53
|
||||
msgid "add a reply"
|
||||
msgstr "添加回应"
|
||||
|
||||
#: journal/templates/review.html:14 journal/templates/review.html:22
|
||||
#: journal/templates/review.html:52 journal/templates/review_edit.html:10
|
||||
#: journal/templates/user_review_list.html:7
|
||||
|
@ -2244,8 +2273,25 @@ msgid "Markdown format references"
|
|||
msgstr "Markdown语法参考"
|
||||
|
||||
#: journal/templates/tag_edit.html:12
|
||||
msgid "编辑标签"
|
||||
msgid "Tag"
|
||||
msgstr "标签"
|
||||
|
||||
#: journal/templates/tag_edit.html:51
|
||||
msgid "Personal"
|
||||
msgstr "个人"
|
||||
|
||||
#: journal/templates/tag_edit.html:57
|
||||
msgid ""
|
||||
"Personal tags are not shown to others when they view your tag list. However, "
|
||||
"if you use this tag when marking an item publicly, it might still be visible "
|
||||
"to others."
|
||||
msgstr ""
|
||||
"个人标签仅限于在个人主页的标签列表里不向他人展示,如果公开标记一个条目时使用"
|
||||
"这个标签仍会被别人看到。"
|
||||
|
||||
#: journal/templates/tag_edit.html:67
|
||||
msgid "Delete this tag"
|
||||
msgstr "删除这个标签"
|
||||
|
||||
#: journal/templates/user_tag_list.html:12
|
||||
#: journal/templates/user_tagmember_list.html:4
|
||||
|
@ -2270,10 +2316,6 @@ msgstr "分享年度小结"
|
|||
msgid "#%(year)s_report"
|
||||
msgstr "#我的#%(year)s书影音"
|
||||
|
||||
#: journal/templates/wrapped_share.html:59
|
||||
msgid "Share"
|
||||
msgstr "分享"
|
||||
|
||||
#: journal/templatetags/collection.py:35
|
||||
#, python-format
|
||||
msgid "%(count)d book"
|
||||
|
@ -2337,7 +2379,7 @@ msgstr "{0} 的收藏单"
|
|||
|
||||
#: journal/views/collection.py:190
|
||||
msgid "Unable to find the item, please use item url from this site."
|
||||
msgstr ""
|
||||
msgstr "找不到条目,请使用本站条目网址。"
|
||||
|
||||
#: journal/views/collection.py:303 journal/views/collection.py:324
|
||||
#: journal/views/review.py:124
|
||||
|
@ -2470,7 +2512,7 @@ msgstr "目标实例域名"
|
|||
|
||||
#: neodb-takahe/activities/admin.py:18
|
||||
msgid "Local Identity"
|
||||
msgstr ""
|
||||
msgstr "本地身份"
|
||||
|
||||
#: neodb-takahe/core/admin.py:8
|
||||
msgid "config options type"
|
||||
|
@ -2486,23 +2528,23 @@ msgstr "联邦宇宙身份"
|
|||
|
||||
#: neodb-takahe/core/admin.py:15
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
msgstr "用户"
|
||||
|
||||
#: neodb-takahe/users/admin.py:147
|
||||
msgid "Local Source Identity"
|
||||
msgstr ""
|
||||
msgstr "本地源身份"
|
||||
|
||||
#: neodb-takahe/users/admin.py:153
|
||||
msgid "Local Target Identity"
|
||||
msgstr ""
|
||||
msgstr "本地目标身份"
|
||||
|
||||
#: neodb-takahe/users/views/auth.py:20
|
||||
msgid "No account was found with that email and password."
|
||||
msgstr ""
|
||||
msgstr "账号未找到"
|
||||
|
||||
#: neodb-takahe/users/views/auth.py:21
|
||||
msgid "This account is inactive."
|
||||
msgstr ""
|
||||
msgstr "账号已失效"
|
||||
|
||||
#: social/templates/activity/comment_child_item.html:13
|
||||
msgid "play"
|
||||
|
@ -2713,18 +2755,6 @@ msgstr "提及"
|
|||
msgid "follow"
|
||||
msgstr "关注"
|
||||
|
||||
#: takahe/models.py:44
|
||||
msgid "session key"
|
||||
msgstr ""
|
||||
|
||||
#: takahe/models.py:45
|
||||
msgid "session data"
|
||||
msgstr ""
|
||||
|
||||
#: takahe/models.py:46
|
||||
msgid "expire date"
|
||||
msgstr ""
|
||||
|
||||
#: takahe/models.py:427
|
||||
msgid "Display Name"
|
||||
msgstr "昵称"
|
||||
|
@ -2963,15 +2993,15 @@ msgstr "无效文件。"
|
|||
msgid ""
|
||||
"Enter a valid username. This value may contain only unaccented lowercase a-z "
|
||||
"and uppercase A-Z letters, numbers, and _ characters."
|
||||
msgstr ""
|
||||
msgstr "输入用户名,限英文字母数字下划线,最多30个字符。"
|
||||
|
||||
#: users/models/user.py:82
|
||||
msgid "username"
|
||||
msgstr ""
|
||||
msgstr "用户名"
|
||||
|
||||
#: users/models/user.py:86
|
||||
msgid "Required. 50 characters or fewer. Letters, digits and _ only."
|
||||
msgstr "必填,限字母数字下划线,最多30个字符。"
|
||||
msgstr "必填,限英文字母数字下划线,最多30个字符。"
|
||||
|
||||
#: users/models/user.py:89
|
||||
msgid "A user with that username already exists."
|
||||
|
@ -3022,7 +3052,6 @@ msgid "Associated identities"
|
|||
msgstr "已关联社交身份"
|
||||
|
||||
#: users/templates/users/account.html:58
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"If you have not yet registered with any Federated instance, you may <a "
|
||||
"href=\"https://joinmastodon.org/zh/servers\" target=\"_blank\">choose an "
|
||||
|
@ -3257,26 +3286,6 @@ msgstr "下载"
|
|||
msgid "View Annual Summary"
|
||||
msgstr "查看年度小结"
|
||||
|
||||
#: users/templates/users/data.html:238
|
||||
msgid "重置所有标记和短评可见性"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/data.html:241
|
||||
msgid "重置"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/data.html:244
|
||||
msgid "公开"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/data.html:246
|
||||
msgid "仅关注者"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/data.html:248
|
||||
msgid "仅自己"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/fetch_identity_failed.html:4
|
||||
msgid ""
|
||||
"Unable to find the user, please check your spelling; or the server may be "
|
||||
|
|
|
@ -40,13 +40,13 @@ def set_migration_mode(disable: bool):
|
|||
_migration_mode = disable
|
||||
|
||||
|
||||
class TakaheSession(models.Model):
|
||||
session_key = models.CharField(_("session key"), max_length=40, primary_key=True)
|
||||
session_data = models.TextField(_("session data"))
|
||||
expire_date = models.DateTimeField(_("expire date"), db_index=True)
|
||||
# class TakaheSession(models.Model):
|
||||
# session_key = models.CharField(_("session key"), max_length=40, primary_key=True)
|
||||
# session_data = models.TextField(_("session data"))
|
||||
# expire_date = models.DateTimeField(_("expire date"), db_index=True)
|
||||
|
||||
class Meta:
|
||||
db_table = "django_session"
|
||||
# class Meta:
|
||||
# db_table = "django_session"
|
||||
|
||||
|
||||
class Snowflake:
|
||||
|
|
|
@ -10,7 +10,6 @@ from loguru import logger
|
|||
|
||||
from common.utils import user_identity_required
|
||||
|
||||
from .models import TakaheSession
|
||||
from .utils import Takahe
|
||||
|
||||
|
||||
|
|
|
@ -232,25 +232,25 @@
|
|||
</div>
|
||||
</details>
|
||||
</article>
|
||||
<!--
|
||||
{% comment %}
|
||||
<article>
|
||||
<details>
|
||||
<summary>{% trans '重置所有标记和短评可见性' %}</summary>
|
||||
<summary>{% trans 'Reset visibility for all marks' %}</summary>
|
||||
<form action="{% url 'users:reset_visibility' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="{% trans '重置' %}" />
|
||||
<input type="submit" value="{% trans 'Reset' %}" />
|
||||
<div>
|
||||
<input type="radio" name="visibility" id="visPublic" value="0" checked>
|
||||
<label for="visPublic">{% trans '公开' %}</label>
|
||||
<label for="visPublic">{% trans 'Public' %}</label>
|
||||
<input type="radio" name="visibility" id="visFollower" value="1">
|
||||
<label for="visFollower">{% trans '仅关注者' %}</label>
|
||||
<label for="visFollower">{% trans 'Followers Only' %}</label>
|
||||
<input type="radio" name="visibility" id="visSelf" value="2">
|
||||
<label for="visSelf">{% trans '仅自己' %}</label>
|
||||
<label for="visSelf">{% trans 'Mentioned Only' %}</label>
|
||||
</div>
|
||||
</form>
|
||||
</details>
|
||||
</article>
|
||||
-->
|
||||
{% endcomment %}
|
||||
</div>
|
||||
{% include "_sidebar.html" with show_profile=1 identity=request.user.identity %}
|
||||
</main>
|
||||
|
|
Loading…
Add table
Reference in a new issue