Don't use hardcoded locale, and some code formatting.

+ Get the locale setting from __CA_DEFAULT_LOCALE__