Moved uselocale to a more reasonable location

Style fixes

Style fixes
[Bug 872004] Fix percentage drawing for real.