Localization support and bug fixes.

Note: Localization is currently only limited to the Main Window.