Trolling around with a bad commit

Cyclomatic complexity for set_locale is too high. [8/6]<br>Method has too many lines. [11/10]<br>Perceived complexity for set_locale is too high. [9/7]<br>Inconsistent indentation detected.