Add rel="terms-of-service" to booking form’s link to conditions

I also changed the translatable link to not include any HTML, because it
meant that i had to retranslate them just to add a new attribute, that
does not make much sense—the attribute is not even translatable, thus
all translations must include it verbatim.
This commit is contained in:
jordi fita mas 2024-01-22 03:41:54 +01:00
parent 8fa9755c8e
commit fe9abf7d75
4 changed files with 22 additions and 37 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: camper\n" "Project-Id-Version: camper\n"
"Report-Msgid-Bugs-To: jordi@tandem.blog\n" "Report-Msgid-Bugs-To: jordi@tandem.blog\n"
"POT-Creation-Date: 2024-01-21 22:41+0100\n" "POT-Creation-Date: 2024-01-22 03:38+0100\n"
"PO-Revision-Date: 2023-07-22 23:45+0200\n" "PO-Revision-Date: 2023-07-22 23:45+0200\n"
"Last-Translator: jordi fita mas <jordi@tandem.blog>\n" "Last-Translator: jordi fita mas <jordi@tandem.blog>\n"
"Language-Team: Catalan <ca@dodds.net>\n" "Language-Team: Catalan <ca@dodds.net>\n"
@ -388,8 +388,8 @@ msgstr "Targeta ACSI? (opcional)"
#: web/templates/public/booking.gohtml:151 #: web/templates/public/booking.gohtml:151
msgctxt "input" msgctxt "input"
msgid "I have read and I accept <a href=\"%s\" target=\"_blank\">the reservation conditions</a>" msgid "I have read and I accept %[1]sthe reservation conditions%[2]s"
msgstr "He llegit i accepto <a href=\"%s\" target=\"_blank\">les condicions de reserves</a>" msgstr "He llegit i accepto %[1]sles condicions de reserves%[2]s"
#: web/templates/public/layout.gohtml:12 web/templates/public/layout.gohtml:48 #: web/templates/public/layout.gohtml:12 web/templates/public/layout.gohtml:48
#: web/templates/public/layout.gohtml:131 #: web/templates/public/layout.gohtml:131
@ -917,9 +917,11 @@ msgid "New Season"
msgstr "Nova temporada" msgstr "Nova temporada"
#: web/templates/admin/season/form.gohtml:15 #: web/templates/admin/season/form.gohtml:15
#, fuzzy #: web/templates/admin/season/index.gohtml:6
#: web/templates/admin/season/index.gohtml:15
#: web/templates/admin/layout.gohtml:49
msgctxt "title" msgctxt "title"
msgid "Season" msgid "Seasons"
msgstr "Temporades" msgstr "Temporades"
#: web/templates/admin/season/form.gohtml:41 #: web/templates/admin/season/form.gohtml:41
@ -933,13 +935,6 @@ msgctxt "input"
msgid "Color" msgid "Color"
msgstr "Color" msgstr "Color"
#: web/templates/admin/season/index.gohtml:6
#: web/templates/admin/season/index.gohtml:15
#: web/templates/admin/layout.gohtml:49
msgctxt "title"
msgid "Seasons"
msgstr "Temporades"
#: web/templates/admin/season/index.gohtml:14 #: web/templates/admin/season/index.gohtml:14
msgctxt "action" msgctxt "action"
msgid "Add Season" msgid "Add Season"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: camper\n" "Project-Id-Version: camper\n"
"Report-Msgid-Bugs-To: jordi@tandem.blog\n" "Report-Msgid-Bugs-To: jordi@tandem.blog\n"
"POT-Creation-Date: 2024-01-21 22:41+0100\n" "POT-Creation-Date: 2024-01-22 03:38+0100\n"
"PO-Revision-Date: 2023-07-22 23:46+0200\n" "PO-Revision-Date: 2023-07-22 23:46+0200\n"
"Last-Translator: jordi fita mas <jordi@tandem.blog>\n" "Last-Translator: jordi fita mas <jordi@tandem.blog>\n"
"Language-Team: Spanish <es@tp.org.es>\n" "Language-Team: Spanish <es@tp.org.es>\n"
@ -388,8 +388,8 @@ msgstr "¿Tarjeta ACSI? (opcional)"
#: web/templates/public/booking.gohtml:151 #: web/templates/public/booking.gohtml:151
msgctxt "input" msgctxt "input"
msgid "I have read and I accept <a href=\"%s\" target=\"_blank\">the reservation conditions</a>" msgid "I have read and I accept %[1]sthe reservation conditions%[2]s"
msgstr "He leído y acepto <a href=\"%s\" target=\"_blank\">las condiciones de reserva</a>" msgstr "He leído y acepto %[1]slas condiciones de reserva%[2]s"
#: web/templates/public/layout.gohtml:12 web/templates/public/layout.gohtml:48 #: web/templates/public/layout.gohtml:12 web/templates/public/layout.gohtml:48
#: web/templates/public/layout.gohtml:131 #: web/templates/public/layout.gohtml:131
@ -917,9 +917,11 @@ msgid "New Season"
msgstr "Nueva temporada" msgstr "Nueva temporada"
#: web/templates/admin/season/form.gohtml:15 #: web/templates/admin/season/form.gohtml:15
#, fuzzy #: web/templates/admin/season/index.gohtml:6
#: web/templates/admin/season/index.gohtml:15
#: web/templates/admin/layout.gohtml:49
msgctxt "title" msgctxt "title"
msgid "Season" msgid "Seasons"
msgstr "Temporadas" msgstr "Temporadas"
#: web/templates/admin/season/form.gohtml:41 #: web/templates/admin/season/form.gohtml:41
@ -933,13 +935,6 @@ msgctxt "input"
msgid "Color" msgid "Color"
msgstr "Color" msgstr "Color"
#: web/templates/admin/season/index.gohtml:6
#: web/templates/admin/season/index.gohtml:15
#: web/templates/admin/layout.gohtml:49
msgctxt "title"
msgid "Seasons"
msgstr "Temporadas"
#: web/templates/admin/season/index.gohtml:14 #: web/templates/admin/season/index.gohtml:14
msgctxt "action" msgctxt "action"
msgid "Add Season" msgid "Add Season"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: camper\n" "Project-Id-Version: camper\n"
"Report-Msgid-Bugs-To: jordi@tandem.blog\n" "Report-Msgid-Bugs-To: jordi@tandem.blog\n"
"POT-Creation-Date: 2024-01-21 22:41+0100\n" "POT-Creation-Date: 2024-01-22 03:38+0100\n"
"PO-Revision-Date: 2023-12-20 10:13+0100\n" "PO-Revision-Date: 2023-12-20 10:13+0100\n"
"Last-Translator: Oriol Carbonell <info@oriolcarbonell.cat>\n" "Last-Translator: Oriol Carbonell <info@oriolcarbonell.cat>\n"
"Language-Team: French <traduc@traduc.org>\n" "Language-Team: French <traduc@traduc.org>\n"
@ -389,8 +389,8 @@ msgstr "Carte ACSI ? (Facultatif)"
#: web/templates/public/booking.gohtml:151 #: web/templates/public/booking.gohtml:151
msgctxt "input" msgctxt "input"
msgid "I have read and I accept <a href=\"%s\" target=\"_blank\">the reservation conditions</a>" msgid "I have read and I accept %[1]sthe reservation conditions%[2]s"
msgstr "Jai lu et jaccepte <a href=\"%s\" target=\"_blank\">les conditions de réservation</a>" msgstr "Jai lu et jaccepte %[1]sles conditions de réservation%[2]s"
#: web/templates/public/layout.gohtml:12 web/templates/public/layout.gohtml:48 #: web/templates/public/layout.gohtml:12 web/templates/public/layout.gohtml:48
#: web/templates/public/layout.gohtml:131 #: web/templates/public/layout.gohtml:131
@ -918,9 +918,11 @@ msgid "New Season"
msgstr "Nouvelle saison" msgstr "Nouvelle saison"
#: web/templates/admin/season/form.gohtml:15 #: web/templates/admin/season/form.gohtml:15
#, fuzzy #: web/templates/admin/season/index.gohtml:6
#: web/templates/admin/season/index.gohtml:15
#: web/templates/admin/layout.gohtml:49
msgctxt "title" msgctxt "title"
msgid "Season" msgid "Seasons"
msgstr "Saisons" msgstr "Saisons"
#: web/templates/admin/season/form.gohtml:41 #: web/templates/admin/season/form.gohtml:41
@ -934,13 +936,6 @@ msgctxt "input"
msgid "Color" msgid "Color"
msgstr "Couleur" msgstr "Couleur"
#: web/templates/admin/season/index.gohtml:6
#: web/templates/admin/season/index.gohtml:15
#: web/templates/admin/layout.gohtml:49
msgctxt "title"
msgid "Seasons"
msgstr "Saisons"
#: web/templates/admin/season/index.gohtml:14 #: web/templates/admin/season/index.gohtml:14
msgctxt "action" msgctxt "action"
msgid "Add Season" msgid "Add Season"

View File

@ -148,7 +148,7 @@
<label> <label>
<input type="checkbox" required name="{{ .Name }}" {{ if .Checked}}checked{{ end }} <input type="checkbox" required name="{{ .Name }}" {{ if .Checked}}checked{{ end }}
{{ template "error-attrs" . }} {{ template "error-attrs" . }}
> {{ printf ( pgettext "I have read and I accept <a href=\"%s\" target=\"_blank\">the reservation conditions</a>" "input" ) (print "/" currentLocale "/legal/reservation") | raw }} > {{ printf ( pgettext "I have read and I accept %[1]sthe reservation conditions%[2]s" "input" ) (printf "<a href=\"/%s/legal/reservation\" rel=\"terms-of-service\" target=\"_blank\">" currentLocale) (print "</a>") | raw }}
</label><br> </label><br>
{{ template "error-message" . }} {{ template "error-message" . }}
{{- end }} {{- end }}