mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-13 16:17:46 +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
37 lines
907 B
HTML
37 lines
907 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ t_error }} - {{ site_domain }}{% endblock %}
|
|
|
|
{% block head_meta %}
|
|
<meta name="robots" content="noindex, nofollow">
|
|
{% endblock %}
|
|
|
|
{% block head_preconnect %}
|
|
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin>
|
|
{% endblock %}
|
|
|
|
{% block head_stylesheets %}
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.5.5/css/simple-line-icons.min.css">
|
|
{% endblock %}
|
|
|
|
{% block head_extra %}
|
|
<script>alert("{{ error_message }}");</script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% let autofocus = true %}
|
|
{% include "_search_form.html" %}
|
|
|
|
<div class="error-banner" role="alert">
|
|
<p>{{ error_message }}</p>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block footer %}
|
|
<footer class="site-footer">
|
|
<div class="footer-inner">
|
|
{% include "_footer.html" %}
|
|
</div>
|
|
</footer>
|
|
{% endblock %}
|