Refactoring translation. Re #6137.
Refactored zooming. Re #6137.