add aria-label for currency and frequency selection

This commit is contained in:
OniriCorpe 2024-05-22 04:14:52 +02:00
parent 3c85de822e
commit 62ba1edb0f
3 changed files with 36 additions and 20 deletions

View file

@ -28,15 +28,15 @@
<input type="number" min="0" max="9999" class="form-control" id="quantity" value="10" aria-label="Amount">
<select class="form-control" id="currency" style="width:40px">
<select class="form-control" id="currency" style="width:40px" aria-label="{{ _('Currency') }}">
{% for iso, symbol in currencies %}
<option value="{{ iso }}">{{ symbol }}
<option value="{{ iso }}">{{ symbol }} </option>
{% endfor %}
</select>
<select class="form-control" id="frequency">
<option value="recuring"> {{ _('/ month') }}
<option value="one_time"> {{ _('one time') }}
<select class="form-control" id="frequency" aria-label="{{ _('Frequency') }}">
<option value="recuring"> {{ _('/ month') }} </option>
<option value="one_time"> {{ _('one time') }} </option>
</select>
</div>

View file

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-05-22 02:57+0200\n"
"POT-Creation-Date: 2024-05-22 04:12+0200\n"
"PO-Revision-Date: 2021-02-18 23:33+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
@ -23,7 +23,7 @@ msgstr ""
msgid "Donate to %(name)s"
msgstr ""
#: assets/canceled.html:20 assets/index.html:22 assets/success.html:20
#: assets/canceled.html:20 assets/index.html:21 assets/success.html:20
#, python-format
msgid "%(name)s Logo"
msgstr ""
@ -36,24 +36,32 @@ msgstr ""
msgid "Go back to the donate form"
msgstr ""
#: assets/index.html:23
#: assets/index.html:22
#, python-format
msgid "I want to give to %(name)s"
msgstr ""
#: assets/index.html:38
#: assets/index.html:30
msgid "Currency"
msgstr ""
#: assets/index.html:36
msgid "Frequency"
msgstr ""
#: assets/index.html:37
msgid "/ month"
msgstr ""
#: assets/index.html:39
#: assets/index.html:38
msgid "one time"
msgstr ""
#: assets/index.html:44
#: assets/index.html:43
msgid "Donate"
msgstr ""
#: assets/index.html:47
#: assets/index.html:46
msgid "If you want to cancel a monthly donation, please contact us"
msgstr ""

View file

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-05-22 02:57+0200\n"
"POT-Creation-Date: 2024-05-22 04:12+0200\n"
"PO-Revision-Date: 2021-02-18 23:33+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fr\n"
@ -23,7 +23,7 @@ msgstr ""
msgid "Donate to %(name)s"
msgstr "Donner à %(name)s"
#: assets/canceled.html:20 assets/index.html:22 assets/success.html:20
#: assets/canceled.html:20 assets/index.html:21 assets/success.html:20
#, python-format
msgid "%(name)s Logo"
msgstr "Logo de %(name)s"
@ -36,24 +36,32 @@ msgstr "Votre paiement a été annulé"
msgid "Go back to the donate form"
msgstr "Retourner au formulaire de don"
#: assets/index.html:23
#: assets/index.html:22
#, python-format
msgid "I want to give to %(name)s"
msgstr "Je veux donner à %(name)s"
#: assets/index.html:38
#: assets/index.html:30
msgid "Currency"
msgstr "Devise"
#: assets/index.html:36
msgid "Frequency"
msgstr "Fréquence"
#: assets/index.html:37
msgid "/ month"
msgstr "/ mois"
#: assets/index.html:39
#: assets/index.html:38
msgid "one time"
msgstr "une fois"
#: assets/index.html:44
#: assets/index.html:43
msgid "Donate"
msgstr "Donner"
#: assets/index.html:47
#: assets/index.html:46
msgid "If you want to cancel a monthly donation, please contact us"
msgstr ""
"Si vous souhaitez mettre fin à votre don mensuel, contactez-nous s'il "