refactored translations, preparing sending of document
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
});
|
||||
if (resp.ok){
|
||||
html = await resp.text();
|
||||
if (!html) html = t('search.nothing_found');
|
||||
if (!html) html = t('nothing_found');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,23 +29,23 @@
|
||||
</script>
|
||||
|
||||
<fieldset class="search">
|
||||
<legend>{t('search.search')}</legend>
|
||||
<legend>{t('search')}</legend>
|
||||
<form onsubmit={doSearch}>
|
||||
<label>
|
||||
{t('search.key')}
|
||||
{t('key')}
|
||||
<input type="text" bind:value={key} />
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" bind:checked={fulltext} />
|
||||
{t('search.fulltext')}
|
||||
{t('fulltext')}
|
||||
</label>
|
||||
<button type="submit">{t('search.go')}</button>
|
||||
<button type="submit">{t('go')}</button>
|
||||
</form>
|
||||
</fieldset>
|
||||
{#if html}
|
||||
<fieldset>
|
||||
<legend>
|
||||
{t('search.results')}
|
||||
{t('results')}
|
||||
</legend>
|
||||
{@html html}
|
||||
</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user