Set language according to cookie or lang param