Files
rustyip/templates/error_page.html
T
NetworkCats 7e5a05b35a feat: add full i18n support for 14 languages with gettext PO translations
- 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
2026-03-04 20:11:16 +08:00

17 lines
518 B
HTML

{% extends "base.html" %}
{% block title %}{{ status_code }} {{ status_text }} - {{ site_domain }}{% endblock %}
{% block head_meta %}
<meta name="robots" content="noindex, nofollow">
{% endblock %}
{% block content %}
<div class="error-page">
<h1 class="error-code">{{ status_code }}</h1>
<p class="error-status">{{ status_text }}</p>
<p class="error-detail">{{ error_message }}</p>
<a href="/{{ locale.tag() }}/" class="error-home-link">{{ t_go_home }}</a>
</div>
{% endblock %}