Fix formatting and translation localization scopes