mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-14 15:53:28 +01:00
* add localization utilities: - add locmanager to support extract, update, remove, list using pybabel - add po2csv/csv2po conversion with translate-utils - docs: add localization.rst to manual! * add language switch header (via header.html) to all pages if more than one locale is present. * localization: wrap more text strings in templates in existing templates * docs: - document `wb-manager i18n` commands - mention `<html lang>` setting - include csv example - add info about adding localizable text in templates * add localization to CHANGES
34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ _('Pywb Error') }}{% endblock %}
|
|
{% block body %}
|
|
<div class="container text-danger">
|
|
<div class="row justify-content-center">
|
|
<h2 class="display-2">Pywb Error</h2>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12 text-center">
|
|
{% if err_status == 451 %}
|
|
<p class="lead">{% trans %}Access Blocked to {{ err_msg }}{% endtrans %}</p>
|
|
|
|
{% elif err_status == 404 and err_details == 'coll_not_found' %}
|
|
<p>{% trans %}Collection not found: <b>{{ err_msg }}{% endtrans %}</b></p>
|
|
|
|
<p><a href="/">{{ _('See list of valid collections') }}</a></p>
|
|
|
|
{% elif err_status == 404 and err_details == 'static_file_not_found' %}
|
|
<p>{% trans %}Static file not found: <b>{{ err_msg }}{% endtrans %}</b></p>
|
|
|
|
{% else %}
|
|
|
|
<p class="lead">{{ err_msg }}</p>
|
|
|
|
{% if err_details %}
|
|
<p class="lead">{% trans %}Error Details:{% endtrans %}</p>
|
|
<pre>{{ err_details }}</pre>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|