We use hook_translation_link_alter() to filter the languages shown in the language switcher. But, when viewing a node with country-specific translations, translation module acts after country_code to add back in languages we've deleted.

Probable solution: alter country_code module weight to be higher than translation's.

Comments

nedjo’s picture

Status: Active » Fixed

It was i18n, not translation, that was the problem. Changed the weight to be higher than i18n's. Since there isn't yet a posted release I didn't write an update.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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