Remove redundant code.
Move translation searching code into separate method.
Move helper method of base catalog class.
Add locale definition file parsing class.