Little change to compatible with standart locale code

getLocaleByCode($code) accept codes not only like 'ru', but 'ru*' too (meaning 'ru_RU')