Skip to content

Commit

Permalink
add missing templates for notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Jul 19, 2024
1 parent a5cd776 commit 9096df2
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 7 deletions.
33 changes: 30 additions & 3 deletions locale/zh_Hans/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -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}集"
Expand Down Expand Up @@ -3814,6 +3814,15 @@ msgstr ""
"\n"
"转播了你对 <a href=\"%(item_url)s\">%(item_title)s</a> 的短评\n"

#: social/templates/event/boosted_note.html:3
#, python-format
msgid ""
"\n"
"boosted your note on <a href=\"%(item_url)s\">%(item_title)s</a>\n"
msgstr ""
"\n"
"转播了你对 <a href=\"%(item_url)s\">%(item_title)s</a> 作的笔记\n"

#: social/templates/event/boosted_rating.html:3
#, python-format
msgid ""
Expand Down Expand Up @@ -3871,6 +3880,15 @@ msgstr ""
"\n"
"赞了你对 <a href=\"%(item_url)s\">%(item_title)s</a> 的短评\n"

#: social/templates/event/liked_note.html:3
#, python-format
msgid ""
"\n"
"liked your note on <a href=\"%(item_url)s\">%(item_title)s</a>\n"
msgstr ""
"\n"
"赞了你对 <a href=\"%(item_url)s\">%(item_title)s</a> 作的笔记\n"

#: social/templates/event/liked_rating.html:3
#, python-format
msgid ""
Expand Down Expand Up @@ -3920,6 +3938,15 @@ msgstr ""
"\n"
"回应了你对 <a href=\"%(item_url)s\">%(item_title)s</a> 的短评\n"

#: social/templates/event/mentioned_note.html:3
#, python-format
msgid ""
"\n"
"replied to your note on <a href=\"%(item_url)s\">%(item_title)s</a>\n"
msgstr ""
"\n"
"回应了你对 <a href=\"%(item_url)s\">%(item_title)s</a> 作的笔记\n"

#: social/templates/event/mentioned_rating.html:3
#, python-format
msgid ""
Expand Down
33 changes: 30 additions & 3 deletions locale/zh_Hant/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -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}集"
Expand Down Expand Up @@ -3814,6 +3814,15 @@ msgstr ""
"\n"
"轉播了你對 <a href=\"%(item_url)s\">%(item_title)s</a> 的短評\n"

#: social/templates/event/boosted_note.html:3
#, python-format
msgid ""
"\n"
"boosted your note on <a href=\"%(item_url)s\">%(item_title)s</a>\n"
msgstr ""
"\n"
"轉播了你對 <a href=\"%(item_url)s\">%(item_title)s</a> 作的筆記\n"

#: social/templates/event/boosted_rating.html:3
#, python-format
msgid ""
Expand Down Expand Up @@ -3871,6 +3880,15 @@ msgstr ""
"\n"
"讚了你對 <a href=\"%(item_url)s\">%(item_title)s</a> 的短評\n"

#: social/templates/event/liked_note.html:3
#, python-format
msgid ""
"\n"
"liked your note on <a href=\"%(item_url)s\">%(item_title)s</a>\n"
msgstr ""
"\n"
"讚了你對 <a href=\"%(item_url)s\">%(item_title)s</a> 作的筆記\n"

#: social/templates/event/liked_rating.html:3
#, python-format
msgid ""
Expand Down Expand Up @@ -3920,6 +3938,15 @@ msgstr ""
"\n"
"回應了你對 <a href=\"%(item_url)s\">%(item_title)s</a> 的短評\n"

#: social/templates/event/mentioned_note.html:3
#, python-format
msgid ""
"\n"
"replied to your note on <a href=\"%(item_url)s\">%(item_title)s</a>\n"
msgstr ""
"\n"
"回應了你對 <a href=\"%(item_url)s\">%(item_title)s</a> 作的筆記\n"

#: social/templates/event/mentioned_rating.html:3
#, python-format
msgid ""
Expand Down
11 changes: 11 additions & 0 deletions social/templates/event/boosted_note.html
Original file line number Diff line number Diff line change
@@ -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 <a href="{{ item_url }}">{{ item_title }}</a>
{% endblocktrans %}
{% if event.piece.progress_value %}
<span class="tag-list"><span><a>{{ event.piece.progress_display }}</a></span></span>
{% endif %}
<blockquote class="tldr" _="on click toggle .tldr on me">
{{ event.piece.html|safe }}
</blockquote>
11 changes: 11 additions & 0 deletions social/templates/event/liked_note.html
Original file line number Diff line number Diff line change
@@ -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 <a href="{{ item_url }}">{{ item_title }}</a>
{% endblocktrans %}
{% if event.piece.progress_value %}
<span class="tag-list"><span><a>{{ event.piece.progress_display }}</a></span></span>
{% endif %}
<blockquote class="tldr" _="on click toggle .tldr on me">
{{ event.piece.html|safe }}
</blockquote>
12 changes: 12 additions & 0 deletions social/templates/event/mentioned_note.html
Original file line number Diff line number Diff line change
@@ -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 <a href="{{ item_url }}">{{ item_title }}</a>
{% endblocktrans %}
{% if event.piece.progress_value %}
<span class="tag-list"><span><a>{{ event.piece.progress_display }}</a></span></span>
{% endif %}
<blockquote class="tldr" _="on click toggle .tldr on me">
{{ event.piece.html|safe }}
</blockquote>
{% include "event/_post.html" with post=event.reply %}
2 changes: 1 addition & 1 deletion social/templates/feed_events.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<span>
<a href="{{ post.author.url }}"
class="nickname"
title="@{{ post.author.handle }}">{{ post.author.name }}</a>
title="@{{ post.author.handle }}">{{ post.author.name|default:post.author.username }}</a>
{% if piece and piece.classname == 'note' %}
{% trans "wrote a note" %}
{% endif %}
Expand Down

0 comments on commit 9096df2

Please sign in to comment.