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:
parent
8fa9755c8e
commit
fe9abf7d75
19
po/ca.po
19
po/ca.po
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: camper\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"
|
||||
"Last-Translator: jordi fita mas <jordi@tandem.blog>\n"
|
||||
"Language-Team: Catalan <ca@dodds.net>\n"
|
||||
|
@ -388,8 +388,8 @@ msgstr "Targeta ACSI? (opcional)"
|
|||
|
||||
#: web/templates/public/booking.gohtml:151
|
||||
msgctxt "input"
|
||||
msgid "I have read and I accept <a href=\"%s\" target=\"_blank\">the reservation conditions</a>"
|
||||
msgstr "He llegit i accepto <a href=\"%s\" target=\"_blank\">les condicions de reserves</a>"
|
||||
msgid "I have read and I accept %[1]sthe reservation conditions%[2]s"
|
||||
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:131
|
||||
|
@ -917,9 +917,11 @@ msgid "New Season"
|
|||
msgstr "Nova temporada"
|
||||
|
||||
#: 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"
|
||||
msgid "Season"
|
||||
msgid "Seasons"
|
||||
msgstr "Temporades"
|
||||
|
||||
#: web/templates/admin/season/form.gohtml:41
|
||||
|
@ -933,13 +935,6 @@ msgctxt "input"
|
|||
msgid "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
|
||||
msgctxt "action"
|
||||
msgid "Add Season"
|
||||
|
|
19
po/es.po
19
po/es.po
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: camper\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"
|
||||
"Last-Translator: jordi fita mas <jordi@tandem.blog>\n"
|
||||
"Language-Team: Spanish <es@tp.org.es>\n"
|
||||
|
@ -388,8 +388,8 @@ msgstr "¿Tarjeta ACSI? (opcional)"
|
|||
|
||||
#: web/templates/public/booking.gohtml:151
|
||||
msgctxt "input"
|
||||
msgid "I have read and I accept <a href=\"%s\" target=\"_blank\">the reservation conditions</a>"
|
||||
msgstr "He leído y acepto <a href=\"%s\" target=\"_blank\">las condiciones de reserva</a>"
|
||||
msgid "I have read and I accept %[1]sthe reservation conditions%[2]s"
|
||||
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:131
|
||||
|
@ -917,9 +917,11 @@ msgid "New Season"
|
|||
msgstr "Nueva temporada"
|
||||
|
||||
#: 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"
|
||||
msgid "Season"
|
||||
msgid "Seasons"
|
||||
msgstr "Temporadas"
|
||||
|
||||
#: web/templates/admin/season/form.gohtml:41
|
||||
|
@ -933,13 +935,6 @@ msgctxt "input"
|
|||
msgid "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
|
||||
msgctxt "action"
|
||||
msgid "Add Season"
|
||||
|
|
19
po/fr.po
19
po/fr.po
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: camper\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"
|
||||
"Last-Translator: Oriol Carbonell <info@oriolcarbonell.cat>\n"
|
||||
"Language-Team: French <traduc@traduc.org>\n"
|
||||
|
@ -389,8 +389,8 @@ msgstr "Carte ACSI ? (Facultatif)"
|
|||
|
||||
#: web/templates/public/booking.gohtml:151
|
||||
msgctxt "input"
|
||||
msgid "I have read and I accept <a href=\"%s\" target=\"_blank\">the reservation conditions</a>"
|
||||
msgstr "J’ai lu et j’accepte <a href=\"%s\" target=\"_blank\">les conditions de réservation</a>"
|
||||
msgid "I have read and I accept %[1]sthe reservation conditions%[2]s"
|
||||
msgstr "J’ai lu et j’accepte %[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:131
|
||||
|
@ -918,9 +918,11 @@ msgid "New Season"
|
|||
msgstr "Nouvelle saison"
|
||||
|
||||
#: 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"
|
||||
msgid "Season"
|
||||
msgid "Seasons"
|
||||
msgstr "Saisons"
|
||||
|
||||
#: web/templates/admin/season/form.gohtml:41
|
||||
|
@ -934,13 +936,6 @@ msgctxt "input"
|
|||
msgid "Color"
|
||||
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
|
||||
msgctxt "action"
|
||||
msgid "Add Season"
|
||||
|
|
|
@ -148,7 +148,7 @@
|
|||
<label>
|
||||
<input type="checkbox" required name="{{ .Name }}" {{ if .Checked}}checked{{ end }}
|
||||
{{ 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>
|
||||
{{ template "error-message" . }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in New Issue