From 2711b3a019fbf49a3c7322c805efcd0fe8fe878c Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Mon, 19 Mar 2018 12:15:38 +0100 Subject: [PATCH] lang attribute must be a valid IETF language tag --- app/inc/i18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/inc/i18n.php b/app/inc/i18n.php index c2ddd1c..14a28cb 100644 --- a/app/inc/i18n.php +++ b/app/inc/i18n.php @@ -29,7 +29,7 @@ if (isset($_POST['lang']) && is_string($_POST['lang']) && in_array($_POST['lang' /* */ $i18n->get('', 'Something, just to load the dictionary'); -$locale = $i18n->getLoadedLang(); +$locale = str_replace('_', '-', $i18n->getLoadedLang()); /* Date Format */ $date_format['txt_full'] = __('Date', 'FULL'); //summary in create_date_poll.php and removal date in choix_(date|autre).php