Add new type for detecting lang: cookie
Fixes in i18n, UploadFile, GenericDao