Clean some calls to getLocale, unused variables and use statements
Merge pull request #2 from jubianchi/cleaning

Clean some calls to getLocale, unused variables and use statements, thanks to @jubianchi for its work.