bug1018316 - localize profile

Ok, could you file a new ticket on making this into a library?