Missing brackets and correct blocktrans usage

This commit is contained in:
Adeodato Simó 2024-03-19 01:07:52 -03:00 committed by GitHub
parent 09d857e6fb
commit 1e14d635bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,7 @@
{% blocktrans %}{{{obj.title}} by {{obj.author_text}}{% endblocktrans %}
{% load i18n %}
{% blocktrans trimmed with book_title=obj.title book_author=obj.author_text %}
{{ book_title }} by {{ book_author }}
{% endblocktrans %}
{{obj.description|default:""}}
{% if obj.description %}{% trans "ISBN13:" %} {{item.isbn_13|default: ""}}{% endif %}
{% if obj.description %}{% trans "OCLC Number:" %} {{item.oclc_number|default: ""}}{% endif %}

View file

@ -233,5 +233,5 @@ class RssShelfFeed(Feed):
"""description of the shelf including the shelf name and user."""
# if there's a description, lets add it. Not everyone puts a description in.
if desc := obj.description:
return _(f"{obj.user.name}s {obj.name} shelf: {desc}"
return _(f"Books added to {obj.user.name}s {obj.name} shelf"
return _(f"{obj.user.name}s {obj.name} shelf: {desc}")
return _(f"Books added to {obj.user.name}s {obj.name} shelf")