From f69883c58c810bdd293aaf581fd3386cf8002cd9 Mon Sep 17 00:00:00 2001
From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com>
Date: Thu, 23 May 2024 11:27:03 -0400
Subject: [PATCH] more i18n
---
journal/templates/add_to_collection.html | 8 +-
journal/templates/collection.html | 18 +-
journal/templates/collection_edit.html | 12 +-
journal/templates/collection_items.html | 12 +-
journal/templates/collection_share.html | 16 +-
journal/templates/comment.html | 14 +-
journal/templates/replies.html | 2 +-
journal/templates/review.html | 2 +-
journal/templates/tag_edit.html | 16 +-
locale/zh_Hans/LC_MESSAGES/django.po | 237 ++++++++++++-----------
takahe/models.py | 12 +-
takahe/views.py | 1 -
users/templates/users/data.html | 14 +-
13 files changed, 189 insertions(+), 175 deletions(-)
diff --git a/journal/templates/add_to_collection.html b/journal/templates/add_to_collection.html
index 73932a4e..61f2239d 100644
--- a/journal/templates/add_to_collection.html
+++ b/journal/templates/add_to_collection.html
@@ -9,7 +9,7 @@
diff --git a/journal/templates/collection.html b/journal/templates/collection.html
index c571d059..0e9b8709 100644
--- a/journal/templates/collection.html
+++ b/journal/templates/collection.html
@@ -12,14 +12,14 @@
+ content="{{ collection.title }} - {% trans 'Collection' %} - {{ site_name }}">
-
{{ site_name }} {% trans '收藏单' %} - {{ collection.title }}
+
{{ site_name }} - {% trans 'Collection' %} - {{ collection.title }}
{% include "common_libs.html" %}
@@ -37,7 +37,7 @@
hx-get="{% url 'journal:collection_share' collection.uuid %}"
hx-target="body"
hx-swap="beforeend"
- title="分享到联邦宇宙">
+ title="{% trans "Share" %}">
{% 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" %}
{% if request.user.identity == collection.owner %}
- {% trans '编辑' %}
+ {% trans 'Edit' %}
- {% trans '删除' %}
+ {% trans 'Delete' %}
{% elif editable %}
-
{% trans '协助整理' %}
+
{% trans 'Collaborative editing' %}
{% endif %}
{% endif %}
@@ -142,9 +142,9 @@
rel="noopener"
href="{{ collection.shared_link }}"
onclick="navigator.share({url:'{{ collection.shared_link|escapejs }}'});event.preventDefault();"
- title="联邦宇宙分享链接">
+ title="link for fediverse">
-
创建于 {{ collection.created_time|date }}
+
{% trans "Created date" %}: {{ collection.created_time|date }}
diff --git a/journal/templates/collection_edit.html b/journal/templates/collection_edit.html
index 2be28810..c67051e8 100644
--- a/journal/templates/collection_edit.html
+++ b/journal/templates/collection_edit.html
@@ -6,7 +6,7 @@
- {{ site_name }} - 编辑收藏单 - {{ title }}
+ {{ site_name }} - {% trans "Collection" %} - {{ title }} - {% trans "Edit" %}
{% include "common_libs.html" %}