localization

This commit is contained in:
Oleg Belyaev 2025-03-23 00:02:11 +03:00
parent a9ceab5b51
commit 1658748c04

View file

@ -79,14 +79,22 @@ declare function page:header($lang as xs:string, $href-other as xs:string) {
</button> </button>
else else
<select name="searchType" required="1"> <select name="searchType" required="1">
<option selected="1" value="full">All</option> <option selected="1" value="full">{if ($lang = 'ru')
<option value="form">Forms</option> then 'Везде' else 'All'}</option>
<option value="sense">Senses</option> <option value="form">{if ($lang = 'ru')
<option value="example">Examples</option> then 'Формы' else 'Forms'}</option>
<option value="translation">Translations</option> <option value="sense">{if ($lang = 'ru')
<option value="mentioned">Mentioned</option> then 'Значения' else 'Senses'}</option>
<option value="gloss">Glosses</option> <option value="example">{if ($lang = 'ru')
<option value="etym">Etymology</option> then 'Примеры' else 'Examples'}</option>
<option value="translation">{if ($lang = 'ru')
then 'Переводы' else 'Translations'}</option>
<option value="mentioned">{if ($lang = 'ru')
then 'Цит. формы' else 'Mentioned'}</option>
<option value="gloss">{if ($lang = 'ru')
then 'Глоссы' else 'Glosses'}</option>
<option value="etym">{if ($lang = 'ru')
then 'Этимологии' else 'Etymology'}</option>
</select> </select>
} }
<input name="searchQuery" <input name="searchQuery"
@ -584,7 +592,7 @@ return
<main> <main>
<div class="index"> <div class="index">
<div class="langs"> <div class="langs">
<label>Languages</label> <label>{if ($lang = 'ru') then 'Языки' else 'Languages'}</label>
<select id="abv-select-lang" size="99999"> <select id="abv-select-lang" size="99999">
{ {
for $mlang in $mlangs for $mlang in $mlangs
@ -602,12 +610,12 @@ return
</select> </select>
</div> </div>
<div class="forms"> <div class="forms">
<Label>Forms</Label> <Label>{if ($lang = 'ru') then 'Формы' else 'Forms'}</Label>
<select id="abv-select-word" size="99999"> <select id="abv-select-word" size="99999">
</select> </select>
</div> </div>
<div class="entries"> <div class="entries">
<Label>Entries</Label> <Label>{if ($lang = 'ru') then 'Лексемы' else 'Lexemes'}</Label>
<select id="abv-select-entry" size="99999"> <select id="abv-select-entry" size="99999">
</select> </select>
</div> </div>