Refactor and make getLocalizedViewName() public