i18n for discover page
This commit is contained in:
parent
ac31934966
commit
e09e78be25
5 changed files with 12 additions and 12 deletions
|
@ -88,8 +88,7 @@ class DiscoverGenerator(BaseJob):
|
|||
gallery_list.append(
|
||||
{
|
||||
"name": "popular_" + category.value,
|
||||
"title": ""
|
||||
+ (category.label if category != ItemCategory.Book else _("Book")),
|
||||
"category": category,
|
||||
"items": items,
|
||||
}
|
||||
)
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
then call el.scrollBy({left:el.offsetWidth, behavior:'smooth'})"><i class="fa-solid fa-circle-right"></i></a>
|
||||
</span>
|
||||
</span>
|
||||
<h5>{{ gallery.title }}</h5>
|
||||
<h5>{{ gallery.category.label }}</h5>
|
||||
<ul class="cards">
|
||||
{% for item in gallery.items %}
|
||||
<li class="card">
|
||||
|
|
|
@ -111,13 +111,17 @@
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
.item-action button {
|
||||
.item-mark-buttons button {
|
||||
margin-left: 0.2em;
|
||||
margin-right: 0.2em;
|
||||
max-width: 31%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mark button.edit {
|
||||
min-width: 75%;
|
||||
}
|
||||
|
||||
.mark {
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
@ -291,7 +291,7 @@ msgstr "苹果播客"
|
|||
#: common/templates/_header.html:25
|
||||
#: journal/templates/_sidebar_user_mark_list.html:31
|
||||
msgid "Book"
|
||||
msgstr "书"
|
||||
msgstr "图书"
|
||||
|
||||
#: catalog/common/models.py:127
|
||||
msgid "TV Serie"
|
||||
|
|
|
@ -7,14 +7,15 @@ NEODB_SECRET_KEY=change_me
|
|||
NEODB_SITE_NAME=Example Site
|
||||
NEODB_SITE_DOMAIN=example.site
|
||||
|
||||
# Change these too
|
||||
# Change these to customize your site
|
||||
NEODB_SITE_INTRO=/welcome.html
|
||||
NEODB_SITE_LOGO=/logo.png
|
||||
NEODB_SITE_ICON=/icon.png
|
||||
NEODB_SITE_LINKS=@NiceDB=https://donotban.com/@testie,@NeoDB=https://mastodon.social/@neodb
|
||||
|
||||
# Turn off DEBUG only when you are ready for production service
|
||||
# NEODB_DEBUG=False
|
||||
# Uncomment these if you are doing development
|
||||
# NEODB_DEBUG=True
|
||||
# NEODB_IMAGE=neodb/neodb:edge
|
||||
|
||||
# HTTP port your reverse proxy should send request to
|
||||
# NEODB_PORT=8000
|
||||
|
@ -30,7 +31,3 @@ NEODB_SITE_LINKS=@NiceDB=https://donotban.com/@testie,@NeoDB=https://mastodon.so
|
|||
# TAKAHE_WEB_WORKER_NUM=32
|
||||
# TAKAHE_STATOR_CONCURRENCY=10
|
||||
# TAKAHE_STATOR_CONCURRENCY_PER_MODEL=10
|
||||
|
||||
# pull NeoDB Docker image from a specific tag
|
||||
# see available tags: https://hub.docker.com/r/neodb/neodb/tags
|
||||
# NEODB_IMAGE=neodb/neodb:main
|
||||
|
|
Loading…
Add table
Reference in a new issue