From 9096df2da155558656d7eab2d53dbe86c65eef0e Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 18 Jul 2024 22:53:26 -0400 Subject: [PATCH] add missing templates for notes --- locale/zh_Hans/LC_MESSAGES/django.po | 33 ++++++++++++++++++++-- locale/zh_Hant/LC_MESSAGES/django.po | 33 ++++++++++++++++++++-- social/templates/event/boosted_note.html | 11 ++++++++ social/templates/event/liked_note.html | 11 ++++++++ social/templates/event/mentioned_note.html | 12 ++++++++ social/templates/feed_events.html | 2 +- 6 files changed, 95 insertions(+), 7 deletions(-) create mode 100644 social/templates/event/boosted_note.html create mode 100644 social/templates/event/liked_note.html create mode 100644 social/templates/event/mentioned_note.html diff --git a/locale/zh_Hans/LC_MESSAGES/django.po b/locale/zh_Hans/LC_MESSAGES/django.po index 5e5d1907..1ed94936 100644 --- a/locale/zh_Hans/LC_MESSAGES/django.po +++ b/locale/zh_Hans/LC_MESSAGES/django.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-07-18 11:45-0400\n" +"POT-Creation-Date: 2024-07-18 22:49-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1362,12 +1362,12 @@ msgstr "地区或场合" msgid "episode length" msgstr "单集长度" -#: catalog/tv/models.py:416 +#: catalog/tv/models.py:419 #, python-brace-format msgid "{show_title} Season {season_number}" msgstr "{show_title} 第{season_number}季" -#: catalog/tv/models.py:480 +#: catalog/tv/models.py:483 #, python-brace-format msgid "{season_title} E{episode_number}" msgstr "{season_title} 第{episode_number}集" @@ -3814,6 +3814,15 @@ msgstr "" "\n" "转播了你对 %(item_title)s 的短评\n" +#: social/templates/event/boosted_note.html:3 +#, python-format +msgid "" +"\n" +"boosted your note on %(item_title)s\n" +msgstr "" +"\n" +"转播了你对 %(item_title)s 作的笔记\n" + #: social/templates/event/boosted_rating.html:3 #, python-format msgid "" @@ -3871,6 +3880,15 @@ msgstr "" "\n" "赞了你对 %(item_title)s 的短评\n" +#: social/templates/event/liked_note.html:3 +#, python-format +msgid "" +"\n" +"liked your note on %(item_title)s\n" +msgstr "" +"\n" +"赞了你对 %(item_title)s 作的笔记\n" + #: social/templates/event/liked_rating.html:3 #, python-format msgid "" @@ -3920,6 +3938,15 @@ msgstr "" "\n" "回应了你对 %(item_title)s 的短评\n" +#: social/templates/event/mentioned_note.html:3 +#, python-format +msgid "" +"\n" +"replied to your note on %(item_title)s\n" +msgstr "" +"\n" +"回应了你对 %(item_title)s 作的笔记\n" + #: social/templates/event/mentioned_rating.html:3 #, python-format msgid "" diff --git a/locale/zh_Hant/LC_MESSAGES/django.po b/locale/zh_Hant/LC_MESSAGES/django.po index c444391b..fb0cdcea 100644 --- a/locale/zh_Hant/LC_MESSAGES/django.po +++ b/locale/zh_Hant/LC_MESSAGES/django.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-07-18 11:45-0400\n" +"POT-Creation-Date: 2024-07-18 22:49-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1362,12 +1362,12 @@ msgstr "地區或場合" msgid "episode length" msgstr "單集長度" -#: catalog/tv/models.py:416 +#: catalog/tv/models.py:419 #, python-brace-format msgid "{show_title} Season {season_number}" msgstr "{show_title} 第{season_number}季" -#: catalog/tv/models.py:480 +#: catalog/tv/models.py:483 #, python-brace-format msgid "{season_title} E{episode_number}" msgstr "{season_title} 第{episode_number}集" @@ -3814,6 +3814,15 @@ msgstr "" "\n" "轉播了你對 %(item_title)s 的短評\n" +#: social/templates/event/boosted_note.html:3 +#, python-format +msgid "" +"\n" +"boosted your note on %(item_title)s\n" +msgstr "" +"\n" +"轉播了你對 %(item_title)s 作的筆記\n" + #: social/templates/event/boosted_rating.html:3 #, python-format msgid "" @@ -3871,6 +3880,15 @@ msgstr "" "\n" "讚了你對 %(item_title)s 的短評\n" +#: social/templates/event/liked_note.html:3 +#, python-format +msgid "" +"\n" +"liked your note on %(item_title)s\n" +msgstr "" +"\n" +"讚了你對 %(item_title)s 作的筆記\n" + #: social/templates/event/liked_rating.html:3 #, python-format msgid "" @@ -3920,6 +3938,15 @@ msgstr "" "\n" "回應了你對 %(item_title)s 的短評\n" +#: social/templates/event/mentioned_note.html:3 +#, python-format +msgid "" +"\n" +"replied to your note on %(item_title)s\n" +msgstr "" +"\n" +"回應了你對 %(item_title)s 作的筆記\n" + #: social/templates/event/mentioned_rating.html:3 #, python-format msgid "" diff --git a/social/templates/event/boosted_note.html b/social/templates/event/boosted_note.html new file mode 100644 index 00000000..31a22f40 --- /dev/null +++ b/social/templates/event/boosted_note.html @@ -0,0 +1,11 @@ +{% load i18n %} +{% load duration %} +{% blocktrans with item_url=event.item.url item_title=event.item.display_title %} +boosted your note on {{ item_title }} +{% endblocktrans %} +{% if event.piece.progress_value %} + {{ event.piece.progress_display }} +{% endif %} +
+ {{ event.piece.html|safe }} +
diff --git a/social/templates/event/liked_note.html b/social/templates/event/liked_note.html new file mode 100644 index 00000000..3da712f5 --- /dev/null +++ b/social/templates/event/liked_note.html @@ -0,0 +1,11 @@ +{% load i18n %} +{% load duration %} +{% blocktrans with item_url=event.item.url item_title=event.item.display_title %} +liked your note on {{ item_title }} +{% endblocktrans %} +{% if event.piece.progress_value %} + {{ event.piece.progress_display }} +{% endif %} +
+ {{ event.piece.html|safe }} +
diff --git a/social/templates/event/mentioned_note.html b/social/templates/event/mentioned_note.html new file mode 100644 index 00000000..8018615c --- /dev/null +++ b/social/templates/event/mentioned_note.html @@ -0,0 +1,12 @@ +{% load i18n %} +{% load duration %} +{% blocktrans with item_url=event.item.url item_title=event.item.display_title %} +replied to your note on {{ item_title }} +{% endblocktrans %} +{% if event.piece.progress_value %} + {{ event.piece.progress_display }} +{% endif %} +
+ {{ event.piece.html|safe }} +
+{% include "event/_post.html" with post=event.reply %} diff --git a/social/templates/feed_events.html b/social/templates/feed_events.html index 6ef2be04..b59b4dcb 100644 --- a/social/templates/feed_events.html +++ b/social/templates/feed_events.html @@ -65,7 +65,7 @@ {{ post.author.name }} + title="@{{ post.author.handle }}">{{ post.author.name|default:post.author.username }} {% if piece and piece.classname == 'note' %} {% trans "wrote a note" %} {% endif %}