Added LanguageCode consts and range checking
Modified NewLanguageCode param type