Localization support

Add the ability to display error messages in locales other than en-us.
var declarations at the top of the scope.