Fork me on GitHub
Current release is 2.1.6 (21 Nov 2014).

Users who have not yet upgraded to 2.1 should get security release (1 Nov 2014). We will stop providing these security releases to 2.0 at the end of this year.

Changing locale

edited February 2011 in Vanilla 2.0 Help
I assumed that the 'Locale' configuration setting was used for HTML and HTTP locale information. I changed that local configuration in config.php

$Configuration['Garden']['Locale'] = 'en-US';

but it appears that 'en-CA' is still being used, for example in the HTML element

<html xmlns=""; xml:lang="en-ca">

Is en-CA hardcoded?


  • For this xml line, indeed it appears to be.
    For instance, default view in
    got <html xmlns=""; xml:lang="en-ca"> hardcoded.
    The view can be redefined, but indeed, I think it would be better to use the locale variable.

  • There definitely needs to be some cleanup! There are some places in the code where en-CA is hard coded, other places where en-US is hard coded, AND if you change your config.php to anything but en-CA there are issues (like pluralization) because of lack localization files.

    Another interesting localization feature would be if there was a base language locale which provided a common base for the language, and than specific overrides for the region. That way there would be less work to localize. For example, en-US, en-CA, en-GB might share a common 'en' locale, but each can override differences.
Sign In or Register to comment.