From 7e56ed5c0c2ef83bb6ca6b38185a29ef991db941 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Fri, 27 Jul 2018 14:01:23 +0000
Subject: [PATCH] Fix translation with interpoliation. The used method does not
 work for me.

---
 templates/auth_status.twig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/auth_status.twig b/templates/auth_status.twig
index 79f24e2bf..a36cb7623 100644
--- a/templates/auth_status.twig
+++ b/templates/auth_status.twig
@@ -7,7 +7,7 @@
     <p>{% trans %}Hi, this is the status page of SimpleSAMLphp. Here you can see if your session is timed out, how long it lasts until it times out and all the attributes that are attached to your session.{% endtrans %}</p>
 
 {% if remaining %}
-    <p>{{ 'Your session is valid for %SECONDS% seconds from now.'|trans({'%SECONDS%': remaining}) }}</p>
+    <p>{% trans %}Your session is valid for {{ remaining }} seconds from now.{% endtrans %}</p>
 {% endif %}
 
 
-- 
GitLab