Merge branch 'feature/lang' into 'develop'

lang attribute must be a valid IETF language tag

See merge request framasoft/framadate!239
This commit is contained in:
Thomas Citharel 2018-03-19 13:22:29 +01:00
commit 3bd1999e15
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