Move helper method of base catalog class.
Add locale definition file parsing class.