Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Identify the best bits from the profiles XML reader and translations XML reader functions and implement them in both.