more i18n
This commit is contained in:
parent
29d699de48
commit
bf804b80dd
21 changed files with 666 additions and 393 deletions
common/templates
locale/zh_Hans/LC_MESSAGES
social/templates/event
_post.htmlboosted.htmlboosted_collection.htmlboosted_comment.htmlboosted_review.htmlboosted_shelfmember.htmlfollow_requested.htmlfollowed.htmlliked.htmlliked_collection.htmlliked_comment.htmlliked_review.htmlliked_shelfmember.htmlmentioned.htmlmentioned_collection.htmlmentioned_comment.htmlmentioned_review.htmlmentioned_shelfmember.html
|
@ -1,19 +1,16 @@
|
|||
{% load i18n %}
|
||||
<footer class="footer">
|
||||
<hr>
|
||||
<div class="grid">
|
||||
{% for link in site_links %}
|
||||
<a class="footer__link"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
href="{{ link.url }}">{{ link.title }}</a>
|
||||
{% endfor %}
|
||||
<a class="footer__link" href="{% url 'users:announcements' %}">公告栏</a>
|
||||
<a class="footer__link" href="{% url 'oauth2_provider:developer' %}">应用开发</a>
|
||||
<a class="footer__link"
|
||||
title="{{ neodb_version }}"
|
||||
{% for link in site_links %}<a target="_blank" rel="noopener" href="{{ link.url }}">{{ link.title }}</a>{% endfor %}
|
||||
<!-- <a href="/pages/rules/">{% trans 'Rules' %}</a> -->
|
||||
<!-- <a href="/pages/terms/">{% trans 'Terms' %}</a> -->
|
||||
<a href="{% url 'users:announcements' %}">{% trans 'Announcements' %}</a>
|
||||
<a href="{% url 'oauth2_provider:developer' %}">{% trans 'Developer' %}</a>
|
||||
<a title="{{ neodb_version }}"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
href="https://github.com/neodb-social">源代码</a>
|
||||
href="https://github.com/neodb-social">{% trans 'Source Code' %}</a>
|
||||
</div>
|
||||
<div class="hide_unless_alter_domain" style="padding-top: 1em;">
|
||||
这是{{ site_name }}的临时镜像,请尽可能使用<a href="{{ site_url }}{{ request.get_full_path }}">原始站点</a>。
|
||||
|
|
|
@ -14,35 +14,35 @@
|
|||
<input type="search"
|
||||
name="q"
|
||||
id="q"
|
||||
placeholder="标题、创作者、ISBN、站外条目链接、@用户名、@用户名@实例"
|
||||
placeholder="{% trans 'title, creator, ISBN, item url, @user, @user@instance' %}"
|
||||
class="search"
|
||||
value="{{ request.GET.q|default:'' }}" />
|
||||
<select name="c">
|
||||
{% visible_categories as cats %}
|
||||
<option value="all">全部</option>
|
||||
<option value="all">{% trans 'Everything' %}</option>
|
||||
{% if 'book' in cats %}
|
||||
<option {% if request.GET.c == 'book' or '/book/' in request.path %}selected{% endif %}
|
||||
value="book">书籍</option>
|
||||
value="book">{% trans 'Book' %}</option>
|
||||
{% endif %}
|
||||
{% if 'movie' in cats or 'tv' in cats %}
|
||||
<option {% if request.GET.c and request.GET.c == 'movietv' or '/movie/' in request.path or '/tv/' in request.path %}selected{% endif %}
|
||||
value="movietv">影视</option>
|
||||
value="movietv">{% trans 'Movie & TV' %}</option>
|
||||
{% endif %}
|
||||
{% if 'podcast' in cats %}
|
||||
<option {% if request.GET.c and request.GET.c == 'podcast' or '/podcast/' in request.path %}selected{% endif %}
|
||||
value="podcast">播客</option>
|
||||
value="podcast">{% trans 'Podcast' %}</option>
|
||||
{% endif %}
|
||||
{% if 'music' in cats %}
|
||||
<option {% if request.GET.c and request.GET.c == 'music' or '/album/' in request.path %}selected{% endif %}
|
||||
value="music">音乐</option>
|
||||
value="music">{% trans 'Music' %}</option>
|
||||
{% endif %}
|
||||
{% if 'game' in cats %}
|
||||
<option {% if request.GET.c and request.GET.c == 'game' or '/game/' in request.path %}selected{% endif %}
|
||||
value="game">游戏</option>
|
||||
value="game">{% trans 'Game' %}</option>
|
||||
{% endif %}
|
||||
{% if 'performance' in cats %}
|
||||
<option {% if request.GET.c == 'performance' or '/performance/' in request.path %}selected{% endif %}
|
||||
value="performance">演出</option>
|
||||
value="performance">{% trans 'Performance' %}</option>
|
||||
{% endif %}
|
||||
</select>
|
||||
<input type="submit" value="" class="fa-solid" />
|
||||
|
@ -51,19 +51,19 @@
|
|||
</ul>
|
||||
<ul>
|
||||
<li class="small-only">
|
||||
<a _="on click toggle .unhide on .nav-search then call #q.focus()">搜索</a>
|
||||
<a _="on click toggle .unhide on .nav-search then call #q.focus()">{% trans 'Search' %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{% if current == 'discover' %}secondary{% endif %}"
|
||||
href="{% url 'catalog:discover' %}">发现</a>
|
||||
href="{% url 'catalog:discover' %}">{% trans 'Explore' %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{% if current == 'timeline' %}secondary{% endif %}"
|
||||
href="{% url 'social:feed' %}">动态</a>
|
||||
href="{% url 'social:feed' %}">{% trans 'Feed' %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{% if current == 'home' %}secondary{% endif %}"
|
||||
href="{% url 'common:me' %}">个人</a>
|
||||
href="{% url 'common:me' %}">{% trans 'Home' %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="nav-dropdown">
|
||||
|
@ -78,31 +78,31 @@
|
|||
<ul role="listbox" style="min-width:-webkit-max-content;" dir="rtl">
|
||||
{% if request.user.is_authenticated %}
|
||||
<li>
|
||||
<a href="{% url 'social:notification' %}">通知</a>
|
||||
<a href="{% url 'social:notification' %}">{% trans 'Notification' %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'users:data' %}">数据</a>
|
||||
<a href="{% url 'users:data' %}">{% trans 'Data' %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'users:preferences' %}">设置</a>
|
||||
<a href="{% url 'users:preferences' %}">{% trans 'Preferences' %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'users:info' %}">账号</a>
|
||||
<a href="{% url 'users:info' %}">{% trans 'Account' %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'users:logout' %}">登出</a>
|
||||
<a href="{% url 'users:logout' %}">{% trans 'Logout' %}</a>
|
||||
</li>
|
||||
{% if request.user.is_superuser %}
|
||||
<li>
|
||||
<a href="/neodb-admin/">django</a>
|
||||
<a href="/neodb-admin/">{% trans 'Database' %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/admin/">admin</a>
|
||||
<a href="/admin/">{% trans 'Manage' %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<li>
|
||||
<a href="{% url 'users:login' %}?next={{ request.path }}">登录</a>
|
||||
<a href="{% url 'users:login' %}?next={{ request.path }}">{% trans 'Sign up or Login' %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,6 @@
|
|||
{% load i18n %}
|
||||
{% load bleach_tags %}
|
||||
boosted your post
|
||||
{% trans 'boosted your post' %}
|
||||
<blockquote class="tldr" _="on click toggle .tldr on me">
|
||||
{{ event.post.content|bleach:"a,p,span,br,div,img"|default:"<br>" }}
|
||||
</blockquote>
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
boosted your collection <a href="{{ event.piece.url }}">{{ event.piece.title }}</a>
|
||||
{% load i18n %}
|
||||
{% blocktrans with piece_url=event.piece.url piece_title=event.piece.title %}
|
||||
boosted your collection <a href="{{ piece_url }}">{{ piece_title }}</a>
|
||||
{% endblocktrans %}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{% load i18n %}
|
||||
{% load duration %}
|
||||
boost your comment on <a href="{{ event.item.url }}">{{ event.item.display_title }}</a>
|
||||
{% blocktrans with item_url=event.item.url item_title=event.item.display_title %}
|
||||
boosted your comment on <a href="{{ item_url }}">{{ item_title }}</a>
|
||||
{% endblocktrans %}
|
||||
<blockquote class="tldr" _="on click toggle .tldr on me">
|
||||
<span>
|
||||
{% if event.piece.rating_grade %}{{ event.piece.rating_grade|rating_star }}{% endif %}
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
boosted your review <a href="{{ event.piece.url }}">{{ event.piece.title }}</a> on <a href="{{ event.item.url }}">{{ event.item.display_title }}</a>
|
||||
{% load i18n %}
|
||||
{% blocktrans with item_url=event.item.url item_title=event.item.display_title piece_url=event.piece.url piece_title=event.piece.title %}
|
||||
boosted your review <a href="{{ piece_url }}">{{ piece_title }}</a> on <a href="{{ item_url }}">{{ item_title }}</a>
|
||||
{% endblocktrans %}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{% load i18n %}
|
||||
{% load duration %}
|
||||
boosted your mark on <a href="{{ event.item.url }}">{{ event.item.display_title }}</a>
|
||||
{% blocktrans with item_url=event.item.url item_title=event.item.display_title %}
|
||||
boosted your mark on <a href="{{ item_url }}">{{ item_title }}</a>
|
||||
{% endblocktrans %}
|
||||
<blockquote class="tldr" _="on click toggle .tldr on me">
|
||||
<span>
|
||||
{% if event.piece.mark.rating_grade %}{{ event.piece.mark.rating_grade|rating_star }}{% endif %}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{% load i18n %}
|
||||
{% load bleach_tags %}
|
||||
requested to follow you
|
||||
{% trans 'requested to follow you' %}
|
||||
<blockquote class="tldr" _="on click toggle .tldr on me">
|
||||
<div>
|
||||
<span class="action">{% include 'users/profile_actions.html' with show_home=1 identity=event.identity %}</span>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{% load i18n %}
|
||||
{% load bleach_tags %}
|
||||
followed you
|
||||
{% trans 'followed you' %}
|
||||
<blockquote class="tldr" _="on click toggle .tldr on me">
|
||||
<div>
|
||||
<span class="action">{% include 'users/profile_actions.html' with show_home=1 identity=event.identity %}</span>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{% load i18n %}
|
||||
{% load bleach_tags %}
|
||||
liked your post
|
||||
{% trans 'liked your post' %}
|
||||
<blockquote class="tldr" _="on click toggle .tldr on me">
|
||||
{{ event.post.content|bleach:"a,p,span,br,div,img"|default:"<br>" }}
|
||||
</blockquote>
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
liked your collection <a href="{{ event.piece.url }}">{{ event.piece.title }}</a>
|
||||
{% load i18n %}
|
||||
{% blocktrans with piece_url=event.piece.url piece_title=event.piece.title %}
|
||||
liked your collection <a href="{{ piece_url }}">{{ piece_title }}</a>
|
||||
{% endblocktrans %}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{% load i18n %}
|
||||
{% load duration %}
|
||||
liked your comment on <a href="{{ event.item.url }}">{{ event.item.display_title }}</a>
|
||||
{% blocktrans with item_url=event.item.url item_title=event.item.display_title %}
|
||||
liked your comment on <a href="{{ item_url }}">{{ item_title }}</a>
|
||||
{% endblocktrans %}
|
||||
<blockquote class="tldr" _="on click toggle .tldr on me">
|
||||
<span>
|
||||
{% if event.piece.rating_grade %}{{ event.piece.rating_grade|rating_star }}{% endif %}
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
liked your review <a href="{{ event.piece.url }}">{{ event.piece.title }}</a> on <a href="{{ event.item.url }}">{{ event.item.display_title }}</a>
|
||||
{% load i18n %}
|
||||
{% blocktrans with item_url=event.item.url item_title=event.item.display_title piece_url=event.piece.url piece_title=event.piece.title %}
|
||||
liked your review <a href="{{ piece_url }}">{{ piece_title }}</a> on <a href="{{ item_url }}">{{ item_title }}</a>
|
||||
{% endblocktrans %}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{% load i18n %}
|
||||
{% load duration %}
|
||||
liked your mark on <a href="{{ event.item.url }}">{{ event.item.display_title }}</a>
|
||||
{% blocktrans with item_url=event.item.url item_title=event.item.display_title %}
|
||||
liked your mark on <a href="{{ item_url }}">{{ item_title }}</a>
|
||||
{% endblocktrans %}
|
||||
<blockquote class="tldr" _="on click toggle .tldr on me">
|
||||
<span>
|
||||
{% if event.piece.mark.rating_grade %}{{ event.piece.mark.rating_grade|rating_star }}{% endif %}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{% load i18n %}
|
||||
{% load bleach_tags %}
|
||||
mentioned you
|
||||
{% trans 'mentioned you' %}
|
||||
<blockquote class="tldr" _="on click toggle .tldr on me">
|
||||
{{ event.post.content|bleach:"a,p,span,br,div,img"|default:"<br>" }}
|
||||
</blockquote>
|
||||
{% include "events/_post.html" with post=event.reply %}
|
||||
{% include "event/_post.html" with post=event.reply %}
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
replied to your collection <a href="{{ event.piece.url }}">{{ event.piece.title }}</a>
|
||||
{% include "events/_post.html" with post=event.reply %}
|
||||
{% load i18n %}
|
||||
{% blocktrans with piece_url=event.piece.url piece_title=event.piece.title %}
|
||||
replied to your collection <a href="{{ piece_url }}">{{ piece_title }}</a>
|
||||
{% endblocktrans %}
|
||||
{% include "event/_post.html" with post=event.reply %}
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
{% load i18n %}
|
||||
{% load duration %}
|
||||
replied to your comment on <a href="{{ event.item.url }}">{{ event.item.display_title }}</a>
|
||||
{% blocktrans with item_url=event.item.url item_title=event.item.display_title %}
|
||||
replied to your comment on <a href="{{ item_url }}">{{ item_title }}</a>
|
||||
{% endblocktrans %}
|
||||
<blockquote class="tldr" _="on click toggle .tldr on me">
|
||||
<span>
|
||||
{% if event.piece.rating_grade %}{{ event.piece.rating_grade|rating_star }}{% endif %}
|
||||
</span>
|
||||
{{ event.piece.html|safe }}
|
||||
</blockquote>
|
||||
{% include "events/_post.html" with post=event.reply %}
|
||||
{% include "event/_post.html" with post=event.reply %}
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
replied to your review <a href="{{ event.piece.url }}">{{ event.piece.title }}</a> on <a href="{{ event.item.url }}">{{ event.item.display_title }}</a>
|
||||
{% include "events/_post.html" with post=event.reply %}
|
||||
{% load i18n %}
|
||||
{% blocktrans with item_url=event.item.url item_title=event.item.display_title piece_url=event.piece.url piece_title=event.piece.title %}
|
||||
replied to your review <a href="{{ piece_url }}">{{ piece_title }}</a> on <a href="{{ item_url }}">{{ item_title }}</a>
|
||||
{% endblocktrans %}
|
||||
{% include "event/_post.html" with post=event.reply %}
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
{% load i18n %}
|
||||
{% load duration %}
|
||||
replied to your mark on <a href="{{ event.item.url }}">{{ event.item.display_title }}</a>
|
||||
{% blocktrans with item_url=event.item.url item_title=event.item.display_title %}
|
||||
replied to your mark on <a href="{{ item_url }}">{{ item_title }}</a>
|
||||
{% endblocktrans %}
|
||||
<blockquote class="tldr" _="on click toggle .tldr on me">
|
||||
<span>
|
||||
{% if event.piece.mark.rating_grade %}{{ event.piece.mark.rating_grade|rating_star }}{% endif %}
|
||||
</span>
|
||||
{{ event.piece.mark.comment.html|safe }}
|
||||
</blockquote>
|
||||
{% include "events/_post.html" with post=event.reply %}
|
||||
{% include "event/_post.html" with post=event.reply %}
|
||||
|
|
Loading…
Add table
Reference in a new issue