Working on the translation tool

Its kind of working but there are lots of cleaning up of the code.
I also moved alot of the UI code.