Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion djangoproject/templates/blog/entry_archive_month.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% block content %}

<h1>{% blocktranslate %}{{ month|date:"YEAR_MONTH_FORMAT" }} archive{% endblocktranslate %}</h1>
<h1>{{ month|date:"F Y" }} {% translate "archive" %}</h1>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the correct way to make this title translatable, because different languages will use different word order and might want to have the word "archive" appear before the date for example.

The correct fix is to use {% blocktranslate with ... %}: https://docs.djangoproject.com/en/5.2/topics/i18n/translation/#blocktranslate-template-tag


<ul class="list-news">

Expand Down