Implemented the localization in the main form