Skip to content

Commit

Permalink
[FIX] Make subscribe page language dropdown use right name for langua…
Browse files Browse the repository at this point in the history
…ges (#4551)

Previously, the subscribe page used the English word for every language, and defaulted to "Afrikaans".

Make the dropdown better: don't default to the first language in the list, and use the language's own word to describe itself ("Deutsch" instead of "German", etc).

**How to test**

Visit http://localhost:8080/subscribe, open the dropdown
  • Loading branch information
rix0rrr authored Sep 27, 2023
1 parent 3feaa9f commit 6c10744
Showing 1 changed file with 6 additions and 74 deletions.
80 changes: 6 additions & 74 deletions templates/subscribe.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,80 +28,12 @@ <h2 class="my-0 text-center">{{_('mailing_title')}}</h2>
</select>
</div>
<div class="signup-container">
<label for="mce-LANG" class="signup-label">{{_('language')}}</label>
<select data-placeholder="Choose a Language..." name="LANG" class="signup-input" id="mce-LANG">
<option value="AF">Afrikaans</option>
<option value="SQ">Albanian</option>
<option value="AR">Arabic</option>
<option value="HY">Armenian</option>
<option value="EU">Basque</option>
<option value="BN">Bengali</option>
<option value="BG">Bulgarian</option>
<option value="CA">Catalan</option>
<option value="KM">Cambodian</option>
<option value="ZH">Chinese (Mandarin)</option>
<option value="HR">Croatian</option>
<option value="CS">Czech</option>
<option value="DA">Danish</option>
<option value="NL">Dutch</option>
<option value="EN">English</option>
<option value="ET">Estonian</option>
<option value="FJ">Fiji</option>
<option value="FI">Finnish</option>
<option value="FR">French</option>
<option value="KA">Georgian</option>
<option value="DE">German</option>
<option value="EL">Greek</option>
<option value="GU">Gujarati</option>
<option value="HE">Hebrew</option>
<option value="HI">Hindi</option>
<option value="HU">Hungarian</option>
<option value="IS">Icelandic</option>
<option value="ID">Indonesian</option>
<option value="GA">Irish</option>
<option value="IT">Italian</option>
<option value="JA">Japanese</option>
<option value="JW">Javanese</option>
<option value="KO">Korean</option>
<option value="LA">Latin</option>
<option value="LV">Latvian</option>
<option value="LT">Lithuanian</option>
<option value="MK">Macedonian</option>
<option value="MS">Malay</option>
<option value="ML">Malayalam</option>
<option value="MT">Maltese</option>
<option value="MI">Maori</option>
<option value="MR">Marathi</option>
<option value="MN">Mongolian</option>
<option value="NE">Nepali</option>
<option value="NO">Norwegian</option>
<option value="FA">Persian</option>
<option value="PL">Polish</option>
<option value="PT">Portuguese</option>
<option value="PA">Punjabi</option>
<option value="QU">Quechua</option>
<option value="RO">Romanian</option>
<option value="RU">Russian</option>
<option value="SM">Samoan</option>
<option value="SR">Serbian</option>
<option value="SK">Slovak</option>
<option value="SL">Slovenian</option>
<option value="ES">Spanish</option>
<option value="SW">Swahili</option>
<option value="SV">Swedish </option>
<option value="TA">Tamil</option>
<option value="TT">Tatar</option>
<option value="TE">Telugu</option>
<option value="TH">Thai</option>
<option value="BO">Tibetan</option>
<option value="TO">Tonga</option>
<option value="TR">Turkish</option>
<option value="UK">Ukrainian</option>
<option value="UR">Urdu</option>
<option value="UZ">Uzbek</option>
<option value="VI">Vietnamese</option>
<option value="CY">Welsh</option>
<option value="XH">Xhosa</option>
<label for="mce-LANG" class="signup-label">{{_('language')}}*</label>
<select data-placeholder="Choose a Language..." name="LANG" class="signup-input" id="mce-LANG" required>
<option value="" disabled selected>-- {{_('select')}} --</option>
{% for language in other_languages() %}
<option value="{{language.lang}}">{{language.sym}}</option>
{% endfor %}
</select>
</div>
<div class="signup-container">
Expand Down

0 comments on commit 6c10744

Please sign in to comment.