From f454edaf7d9c40666fee12a9e5112bfb77f3628f Mon Sep 17 00:00:00 2001
From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com>
Date: Tue, 28 May 2024 09:58:47 -0400
Subject: [PATCH] add missing i18n lines
---
catalog/views_edit.py | 2 +-
journal/templates/markdown.html | 48 +++++
journal/templates/review_edit.html | 51 +----
locale/zh_Hans/LC_MESSAGES/django.po | 280 ++++++++++++++++++---------
users/templates/users/data.html | 12 +-
5 files changed, 240 insertions(+), 153 deletions(-)
create mode 100644 journal/templates/markdown.html
diff --git a/catalog/views_edit.py b/catalog/views_edit.py
index 9872f09f..0b452b40 100644
--- a/catalog/views_edit.py
+++ b/catalog/views_edit.py
@@ -246,7 +246,7 @@ def remove_unused_seasons(request, item_path, item_uuid):
def fetch_tvepisodes(request, item_path, item_uuid):
item = get_object_or_404(Item, uid=get_uuid_or_404(item_uuid))
if item.class_name != "tvseason" or not item.imdb or item.season_number is None:
- raise BadRequest(_("Must be a TV Season with IMDB id and season id"))
+ raise BadRequest(_("TV Season with IMDB id and season number required."))
item.log_action({"!fetch_tvepisodes": ["", ""]})
django_rq.get_queue("crawl").enqueue(
fetch_episodes_for_season_task, item.uuid, request.user
diff --git a/journal/templates/markdown.html b/journal/templates/markdown.html
new file mode 100644
index 00000000..30403dc0
--- /dev/null
+++ b/journal/templates/markdown.html
@@ -0,0 +1,48 @@
+{% load i18n %}
+
+ {% trans "Markdown format references" %}
+
+{% blocktrans %}
+Title
+=====
+
+Subtitle
+--------
+
+ Paragraphs need to be separated by a blank line
+
+ Indentation at the beginning of the paragraph requires using a Unicode full-width space
+
+[Link](https://zh.wikipedia.org/wiki/Markdown)
+**Bold** *Italic* ==Highlight== ~~Strikethrough~~
+^Super^script ~Sub~script [拼(pīn)音(yīn)]
+
+Drag and drop an image 
+
+> Quote
+>> Multi-level quote
+
+Inline >! spoiler warning !< (also in short comments)
+
+>! Multi-line
+>! Spoiler
+
+---
+
+- Bullet
+- Points
+
+content in paragraph with footnote[^1] markup.
+[^1]: footnote explain
+
+```
+code
+```
+
+Table Header | Second Header
+------------- | -------------
+Content Cell | Content Cell
+Content Cell | Content Cell
+{% endblocktrans %}
+
+
diff --git a/journal/templates/review_edit.html b/journal/templates/review_edit.html
index 4948875a..54884edb 100644
--- a/journal/templates/review_edit.html
+++ b/journal/templates/review_edit.html
@@ -31,7 +31,6 @@
{{ form.visibility }}
@@ -63,55 +62,7 @@
{{ form.media }}
-
- {% trans "Markdown format references" %}
-
-标题
-====
-
-副标题
-------
-
- 新起段落需隔开一空行
-
- 段首缩进需使用中文全角空格
-
-[链接](https://zh.wikipedia.org/wiki/Markdown)
-**粗体** *斜体* ==高亮== ~~删除~~
-^上^标 ~下~标 [拼(pīn)音(yīn)]
-
-> 引用
-> 文本
->> 多级引用
-
-行内 >! 剧透预警 !< (在短评中也可使用)
-
->! 多行
->! 剧透
-
-引用外部图片 
-
-上传图片可拖拽图片文件到编辑框,或从剪贴板粘贴
-
----
-
-- Bullet
-- Points
-
-content in paragraph with footnote[^1] markup.
-[^1]: footnote explain
-
-```
-code
-```
-
-Table Header | Second Header
-------------- | -------------
-Content Cell | Content Cell
-Content Cell | Content Cell
-
-
-
+ {% include "markdown.html" %}