Code refactoring.
Added localization support in more files.