2

I have a bilingual project and the language is being switched from the language block. It actually displays now: English and Spanish.

I need to have just one language link displayed: English when on Spanish language and Spanish when English.

Thank you!

1

Usually the current language link gets an "active" class. You can use CSS to hide all other links and display only the active link.

This can also be done by overriding theme template files or functions.

  • in jQuery something like $(language-switcher-locale-url:not(active)).hide();. I think that's it. – drupal_stuff_alter Nov 2 '11 at 8:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.