Skip to content
Snippets Groups Projects
Commit 9243d9b3 authored by Hanne Moa's avatar Hanne Moa
Browse files

Support Twig extension i18n

parent 1b1beb98
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
"simplesamlphp/saml2": "dev-master#00e38f85b417be1e10a2d738dd2f5ea82edb472c as 2.2", "simplesamlphp/saml2": "dev-master#00e38f85b417be1e10a2d738dd2f5ea82edb472c as 2.2",
"robrichards/xmlseclibs": "~2.0", "robrichards/xmlseclibs": "~2.0",
"whitehat101/apr1-md5": "~1.0", "whitehat101/apr1-md5": "~1.0",
"twig/twig": "~1.0" "twig/twig": "~1.0",
"twig/extensions": "^1.3"
}, },
"require-dev": { "require-dev": {
"ext-pdo_sqlite": "*", "ext-pdo_sqlite": "*",
......
...@@ -649,6 +649,11 @@ $config = array( ...@@ -649,6 +649,11 @@ $config = array(
'language.cookie.lifetime' => (60 * 60 * 24 * 900), 'language.cookie.lifetime' => (60 * 60 * 24 * 900),
/* /*
* Which i18n backend to use
*/
'language.i18n.backend' => 'twig.i18n',
/**
* Custom getLanguage function called from SimpleSAML\Locale\Language::getLanguage(). * Custom getLanguage function called from SimpleSAML\Locale\Language::getLanguage().
* Function should return language code of one of the available languages or NULL. * Function should return language code of one of the available languages or NULL.
* See SimpleSAML\Locale\Language::getLanguage() source code for more info. * See SimpleSAML\Locale\Language::getLanguage() source code for more info.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment