HTML lang attribute fix

Fixed issue #280 by using the locale and eventually a fallback to define the HTML to be in line with the application locale.