Steps to set up and test:

  1. Enable modules
    • locale
    • content translation
    • all modules in the Multilanguage fieldset
  2. Add French and Spanish to languages at admin/settings/language.
  3. Enable country code module
  4. Add US and Canada to countries at admin/settings/country-code
    • Add English and Spanish languages to US - admin/settings/country-code-country/us/languages
    • Add English and French languages to Canada - /admin/settings/country-code-country/ca/languages
  5. Enable page caching (not aggressive)
  6. Set language negotiation to 'Based on country settings' - admin/settings/language/configure
  7. Move Language switcher and Country switcher blocks to the sidebar.
  8. Set the 'page' content type's Multilingual support to Enabled, with translation
  9. Create a piece of page content in English
  10. Translate that page into 'fr'
  11. Log out
  12. Visit the home page as anon
  13. Switch countries using the country-switcher block
  14. Switch languages using the language-switcher block

Comments

wmostrey’s picture

I tested this and will create two new tickets for minor UI issues I found.

When I switch countries, the language-switcher block gets updated with all available languages for that node and the selected country.

  • When I select "Global" I see both English and Français.
  • When I select "United States" I see English.
  • When I select "Canada" I see both English and Français.

So this all works as expected.

What I do find confusing is that the language links on the node itself don't get changed by the module. So the link to the French translation of the English node is still present when I select "United States", even though the French link is no longer available in the translation block. I'm not sure if this falls in the scope of the module but this is what I would expect from it.

wmostrey’s picture

This last issue is already reported at http://drupal.org/node/324263 so apart from the minor admin UI issues, this works as expected. Nice work!

nedjo’s picture

Status: Active » Fixed

Manual testing comes out okay for now, moving on to automated testing.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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