mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-14 08:14:37 +00:00
- Add i18n module with Locale enum, PO parser, and Accept-Language negotiation
- Create gettext .po translation files for en, es, de, ja, ko, id, fr, ru, pt, it, zh-Hant, zh-Hans, nl, ar
- Route HTML pages under /{lang}/ prefix using IETF language tags
- Auto-detect browser language and redirect from / to /{lang}/
- Add language selector dropdown in footer
- Localize geo names (country, city) from MMDB where available
- Add hreflang alternate links and multilingual sitemap for SEO
- Support RTL layout for Arabic
- Update integration tests for new routing structure
18 lines
537 B
HTML
18 lines
537 B
HTML
<form method="GET" action="/{{ lang_tag }}/" class="search-form" role="search">
|
|
<div class="search-input-wrap">
|
|
<label for="ip-search" class="sr-only">{{ t_search_label }}</label>
|
|
<i class="icon-magnifier search-icon" aria-hidden="true"></i>
|
|
<input
|
|
id="ip-search"
|
|
type="text"
|
|
name="ip"
|
|
placeholder="{{ t_search_placeholder }}"
|
|
value="{{ query }}"
|
|
autocomplete="off"
|
|
autocapitalize="none"
|
|
spellcheck="false"
|
|
{% if autofocus %}autofocus{% endif %}
|
|
>
|
|
</div>
|
|
</form>
|