Add title setting code.
Simplify view page title setting.
Implement global localisation function.