Added main localization functionality in XML format