From 8257864829ffdfb410f05e0dd0a9c781f48b741a Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 29 Aug 2018 15:29:48 +0200 Subject: Added translation support for twig templates See https://twig-extensions.readthedocs.io/en/latest/i18n.html for documentation --- templates/errors/default.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/errors/default.twig') diff --git a/templates/errors/default.twig b/templates/errors/default.twig index a04afc4e..5fb8bcbd 100644 --- a/templates/errors/default.twig +++ b/templates/errors/default.twig @@ -1,6 +1,6 @@ {% extends "layouts/app.twig" %} -{% block title %}Error {{ status }}{% endblock %} +{% block title %}{% if status == 404 %}{{ __("Page not found") }}{% else %}Error {{ status }}{% endif %}{% endblock %} {% block content %}
{{ content }}
-- cgit v1.2.3-54-g00ecf