From 0ecea5710b097f863910d16a72d0522ae8143056 Mon Sep 17 00:00:00 2001 From: Fabien Basmaison Date: Wed, 9 Jun 2021 18:51:20 +0200 Subject: [PATCH] Use gettext to add subtitle to short titles (use variable for length). --- bookwyrm/templatetags/utilities.py | 10 ++-- locale/fr_FR/LC_MESSAGES/django.mo | Bin 45874 -> 45939 bytes locale/fr_FR/LC_MESSAGES/django.po | 71 +++++++++++++++-------------- 3 files changed, 45 insertions(+), 36 deletions(-) diff --git a/bookwyrm/templatetags/utilities.py b/bookwyrm/templatetags/utilities.py index b589499f..7e4de378 100644 --- a/bookwyrm/templatetags/utilities.py +++ b/bookwyrm/templatetags/utilities.py @@ -2,6 +2,7 @@ import os from uuid import uuid4 from django import template +from django.utils.translation import gettext_lazy as _ register = template.Library() @@ -20,13 +21,16 @@ def get_user_identifier(user): @register.filter(name="book_title") -def get_title(book): +def get_title(book, too_short=6): """display the subtitle if the title is short""" if not book: return "" title = book.title - if len(title) < 6 and book.subtitle: - title = "{:s} ({:s})".format(title, book.subtitle) + if len(title) < too_short and book.subtitle: + title = _("%(title)s: %(subtitle)s") % { + "title": title, + "subtitle": book.subtitle + } return title diff --git a/locale/fr_FR/LC_MESSAGES/django.mo b/locale/fr_FR/LC_MESSAGES/django.mo index fa138f7853a2b9fa56548ad14535f214aeb7ec5c..3d622ac662185de82e67b3026ad6d339fb8dab0a 100644 GIT binary patch delta 13672 zcmZA73w+OY-^cNv&Bic{F>{-jyOf4~3k>u%e%fV8U%ebwU`8{m0G z@l<}#OAGY8Ic1gWd6yDAZzNvE8JJex^K#>PjK%9%01G5~UJk5)MKBQyVtY)+0oV>V zVr6`Yc|6bORZQ}{2r}wm6n4bcINI{}V=>a_up|D3WiX|N%O8c|q!(c{zJ(?62x?-# zVk8FC^gPz!6~zcl#nO!L4IomLjCnW|_nB2{dEWD+*I)bv%zv z@RBeJhhTY}hnnbz7=#y*&GoLD4=|YVz0kUzmmR|~6pLXttboB-&C<0j-O$o4Q0-EY z6Z5)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ql$H5{@Ed;xPsMy1jVAco z8uun&nEcDnb?#56exwQhPXGUprnLEzuq3G<_0O(~WQq~j!(p^Jjd8^F$yXsi+}g(J zsVGcAOOmeD#O3UQ=s?w!E3 zlnt@CD*1Tw>qs#qUsoFI3a28{^8XUwB@L$RCsI37M&g0gpTZHu&#qBqekX2^+ej(o zOJhZA6HlL(q;S$c%F9unm(+-S>j3*~H>5I!G=sut*9|huNJD5`*9NOge4Uh;wqvk4 zDV0>4_yyV&!nVY^<`EyZek<_{%d4(0X$^4$eH9uLd`}QT=X#{Zb8=)lG>7NhwaUbeBg%2^xA2AOuv$|XE*CSst z3N~BeXj^?OaXa$o)X~bSSew3PdCCV^oto9M`~&KfNm+KDuW&VB=edeGEA0##`cj?$ E1MnGciU0rr diff --git a/locale/fr_FR/LC_MESSAGES/django.po b/locale/fr_FR/LC_MESSAGES/django.po index 53b4a54a..d29afc1c 100644 --- a/locale/fr_FR/LC_MESSAGES/django.po +++ b/locale/fr_FR/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.1.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-06-07 14:09+0000\n" +"POT-Creation-Date: 2021-06-09 16:46+0000\n" "PO-Revision-Date: 2021-04-05 12:44+0100\n" "Last-Translator: Fabien Basmaison \n" "Language-Team: Mouse Reeve \n" @@ -91,23 +91,23 @@ msgstr "nom du compte :" msgid "A user with that username already exists." msgstr "Ce nom est déjà associé à un compte." -#: bookwyrm/settings.py:160 +#: bookwyrm/settings.py:156 msgid "English" msgstr "English" -#: bookwyrm/settings.py:161 +#: bookwyrm/settings.py:157 msgid "German" msgstr "Deutsch" -#: bookwyrm/settings.py:162 +#: bookwyrm/settings.py:158 msgid "Spanish" msgstr "Español" -#: bookwyrm/settings.py:163 +#: bookwyrm/settings.py:159 msgid "French" msgstr "Français" -#: bookwyrm/settings.py:164 +#: bookwyrm/settings.py:160 msgid "Simplified Chinese" msgstr "简化字" @@ -154,12 +154,12 @@ msgid "Wikipedia" msgstr "Wikipedia" #: bookwyrm/templates/author/author.html:69 -#: bookwyrm/templates/book/book.html:78 +#: bookwyrm/templates/book/book.html:87 msgid "View on OpenLibrary" msgstr "Voir sur OpenLibrary" #: bookwyrm/templates/author/author.html:77 -#: bookwyrm/templates/book/book.html:81 +#: bookwyrm/templates/book/book.html:90 msgid "View on Inventaire" msgstr "Voir sur Inventaire" @@ -252,7 +252,7 @@ msgid "Goodreads key:" msgstr "Clé Goodreads :" #: bookwyrm/templates/author/edit_author.html:116 -#: bookwyrm/templates/book/book.html:124 +#: bookwyrm/templates/book/book.html:133 #: bookwyrm/templates/book/edit_book.html:321 #: bookwyrm/templates/lists/form.html:42 #: bookwyrm/templates/preferences/edit_user.html:70 @@ -269,7 +269,7 @@ msgid "Save" msgstr "Enregistrer" #: bookwyrm/templates/author/edit_author.html:117 -#: bookwyrm/templates/book/book.html:125 bookwyrm/templates/book/book.html:174 +#: bookwyrm/templates/book/book.html:134 bookwyrm/templates/book/book.html:183 #: bookwyrm/templates/book/cover_modal.html:32 #: bookwyrm/templates/book/edit_book.html:322 #: bookwyrm/templates/moderation/report_modal.html:34 @@ -284,98 +284,98 @@ msgstr "Enregistrer" msgid "Cancel" msgstr "Annuler" -#: bookwyrm/templates/book/book.html:31 +#: bookwyrm/templates/book/book.html:40 #: bookwyrm/templates/discover/large-book.html:25 #: bookwyrm/templates/discover/small-book.html:19 msgid "by" msgstr "par" -#: bookwyrm/templates/book/book.html:39 bookwyrm/templates/book/book.html:40 +#: bookwyrm/templates/book/book.html:48 bookwyrm/templates/book/book.html:49 msgid "Edit Book" msgstr "Modifier le livre" -#: bookwyrm/templates/book/book.html:57 +#: bookwyrm/templates/book/book.html:66 #: bookwyrm/templates/book/cover_modal.html:5 msgid "Add cover" msgstr "Ajouter une couverture" -#: bookwyrm/templates/book/book.html:61 +#: bookwyrm/templates/book/book.html:70 msgid "Failed to load cover" msgstr "La couverture n’a pu être chargée" -#: bookwyrm/templates/book/book.html:101 +#: bookwyrm/templates/book/book.html:110 #, python-format msgid "(%(review_count)s review)" msgid_plural "(%(review_count)s reviews)" msgstr[0] "(%(review_count)s critique)" msgstr[1] "(%(review_count)s critiques)" -#: bookwyrm/templates/book/book.html:113 +#: bookwyrm/templates/book/book.html:122 msgid "Add Description" msgstr "Ajouter une description" -#: bookwyrm/templates/book/book.html:120 +#: bookwyrm/templates/book/book.html:129 #: bookwyrm/templates/book/edit_book.html:136 #: bookwyrm/templates/lists/form.html:12 msgid "Description:" msgstr "Description :" -#: bookwyrm/templates/book/book.html:134 +#: bookwyrm/templates/book/book.html:143 #, python-format msgid "%(count)s editions" msgstr "%(count)s éditions" -#: bookwyrm/templates/book/book.html:142 +#: bookwyrm/templates/book/book.html:151 #, python-format msgid "This edition is on your %(shelf_name)s shelf." msgstr "Cette édition est sur votre étagère %(shelf_name)s." -#: bookwyrm/templates/book/book.html:148 +#: bookwyrm/templates/book/book.html:157 #, python-format msgid "A different edition of this book is on your %(shelf_name)s shelf." msgstr "Une édition différente de ce livre existe sur votre étagère %(shelf_name)s." -#: bookwyrm/templates/book/book.html:159 +#: bookwyrm/templates/book/book.html:168 msgid "Your reading activity" msgstr "Votre activité de lecture" -#: bookwyrm/templates/book/book.html:162 +#: bookwyrm/templates/book/book.html:171 msgid "Add read dates" msgstr "Ajouter des dates de lecture" -#: bookwyrm/templates/book/book.html:171 +#: bookwyrm/templates/book/book.html:180 msgid "Create" msgstr "Créer" -#: bookwyrm/templates/book/book.html:181 +#: bookwyrm/templates/book/book.html:190 msgid "You don't have any reading activity for this book." msgstr "Vous n’avez aucune activité de lecture pour ce livre" -#: bookwyrm/templates/book/book.html:200 +#: bookwyrm/templates/book/book.html:209 msgid "Reviews" msgstr "Critiques" -#: bookwyrm/templates/book/book.html:205 +#: bookwyrm/templates/book/book.html:214 msgid "Your reviews" msgstr "Vos critiques" -#: bookwyrm/templates/book/book.html:211 +#: bookwyrm/templates/book/book.html:220 msgid "Your comments" msgstr "Vos commentaires" -#: bookwyrm/templates/book/book.html:217 +#: bookwyrm/templates/book/book.html:226 msgid "Your quotes" msgstr "Vos citations" -#: bookwyrm/templates/book/book.html:253 +#: bookwyrm/templates/book/book.html:262 msgid "Subjects" msgstr "Sujets" -#: bookwyrm/templates/book/book.html:265 +#: bookwyrm/templates/book/book.html:274 msgid "Places" msgstr "Lieux" -#: bookwyrm/templates/book/book.html:276 bookwyrm/templates/layout.html:61 +#: bookwyrm/templates/book/book.html:285 bookwyrm/templates/layout.html:61 #: bookwyrm/templates/lists/lists.html:5 bookwyrm/templates/lists/lists.html:12 #: bookwyrm/templates/search/layout.html:25 #: bookwyrm/templates/search/layout.html:50 @@ -383,11 +383,11 @@ msgstr "Lieux" msgid "Lists" msgstr "Listes" -#: bookwyrm/templates/book/book.html:287 +#: bookwyrm/templates/book/book.html:296 msgid "Add to list" msgstr "Ajouter à la liste" -#: bookwyrm/templates/book/book.html:297 +#: bookwyrm/templates/book/book.html:306 #: bookwyrm/templates/book/cover_modal.html:31 #: bookwyrm/templates/lists/list.html:179 msgid "Add" @@ -2921,6 +2921,11 @@ msgstr "Niveau d’accès :" msgid "File exceeds maximum size: 10MB" msgstr "Ce fichier dépasse la taille limite : 10 Mo" +#: bookwyrm/templatetags/utilities.py:30 +#, python-format +msgid "%(title)s: %(subtitle)s" +msgstr "%(title)s (%(subtitle)s)" + #: bookwyrm/views/import_data.py:67 msgid "Not a valid csv file" msgstr "Fichier CSV non valide"