summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-08-29 15:29:48 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-08-29 23:46:32 +0200
commit8257864829ffdfb410f05e0dd0a9c781f48b741a (patch)
treea0334208645bdb04625545e6775a602939c0a859 /templates
parenta2c47304d8230f1937c2a4f019aba89fa74203bc (diff)
Added translation support for twig templates
See https://twig-extensions.readthedocs.io/en/latest/i18n.html for documentation
Diffstat (limited to 'templates')
-rw-r--r--templates/errors/default.twig2
1 files changed, 1 insertions, 1 deletions
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 %}
<div class="alert alert-info">{{ content }}</div>