To complete my task of getting current bryght sites working in aegir, I needed to implement localization support.

We currently support english, french and chinese installations. In HM1 we implemented each of these as a separate install profile and did a switch statement on the selected profile to set the locale.

This is simply not acceptable for Aegir, and I've now written code that does the following:

1. Detect available languages for each install profile detected.
2. During import of install profiles, maintain a table containing the different languages available for that profile.
3. On the profile package node , display a list of available translations
4. On the site create screen, display a list of available languages
5. On the site node view screen, display the selected language for that site.
6. Pass the selected language to the command line through the hosting_map_values_site function
7. In the provision back end, use the value supplied from the --site_language parameter to display the site.

Comments

adrian’s picture

I am most of the way through steps 1 through 5, but a bug in step 2 is causing a problem getting the table populated.
Once that is debugged, I will be able to get steps 6 and 7 imported quickly (a couple of small changes).

adrian’s picture

Status: Active » Needs review

This is now done, except that existing sites aren't imported with the right locale.

Handling that as part of http://drupal.org/node/319299

adrian’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.