lang attribute must be a valid IETF language tag

This commit is contained in:
Pierre Rudloff 2018-03-19 12:15:38 +01:00
parent a1fbe3946a
commit 2711b3a019
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ if (isset($_POST['lang']) && is_string($_POST['lang']) && in_array($_POST['lang'
/* <html lang="$locale"> */
$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