Skip to content

Commit b0826e4

Browse files
committed
Make localization configurable through settings
Fixes #697 Work in progress.
1 parent 6bac9be commit b0826e4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

proxy/index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,29 @@ <h5 class="modal-title">Map configuration</h5>
205205
Control how stations are labeled on the map for zooms 5 to 10. From zoom 10 onwards, the names are always shown.
206206
</small>
207207
</div>
208+
<div class="mb-3">
209+
<label class="form-label">Localization</label>
210+
<div>
211+
<div class="form-check form-check-inline">
212+
<input class="form-check-input" type="radio" name="localization" id="localizationDisabled" value="label" checked onchange="onLocalizationChange('off');">
213+
<label class="form-check-label" for="localizationDisabled">Disabled</label>
214+
</div>
215+
<div class="form-check form-check-inline">
216+
<input class="form-check-input" type="radio" name="localization" id="localizationAutomatic" value="name" onchange="onLocalizationChange('automatic');">
217+
<label class="form-check-label" for="localizationAutomatic">Automatic</label>
218+
</div>
219+
<div class="form-check form-check-inline" style="margin-right: 0.3rem">
220+
<input class="form-check-input" type="radio" name="localization" id="localizationCustom" value="name" onchange="onLocalizationChange('custom', document.getElementById('localizationCustomLanguage').value);">
221+
<label class="form-check-label" for="localizationCustom">Custom: </label>
222+
</div>
223+
<div class="form-check form-check-inline" style="padding-left: 0; width: 5rem">
224+
<input type="text" class="form-control" name="localization-language" onchange="onLocalizationChange('custom', this.value)" id="localizationCustomLanguage" />
225+
</div>
226+
</div>
227+
<small class="form-text">
228+
Control if localization is enabled, and what language is used. When specifying a language manually, use the language code as specified in <a href="https://en.wikipedia.org/wiki/ISO_639-1" target="_blank">ISO_639-1</a>, for example <code>en</code> for English.
229+
</small>
230+
</div>
208231
</form>
209232
</div>
210233
</div>

0 commit comments

Comments
 (0)