I have a 2 language site - English and Spanish. If I set Spanish as the default language, the blue bar is always present, regardless of which version of the site you are on. In that situation, I would expect it to only show for the English version - since, the primary language is Spanish, and the English site is a translation of the Spanish one.

Comments

gábor hojtsy’s picture

Well, the Drupal interface language is English so the localization client should not show up on English pages. It does show up on all other foreign language pages, since it's primary role is to help you translate the interface. Given the module's extension to support translating non-code-defined interface text (like menu, taxonomy, etc), maybe we need to revisit this assumption. I could imagine that if the default site language is not English and there are any modules using l10n_client to translate stuff (which we can detect by looking at hook implementations), we can show the interface on *all* languages.

mrfelton’s picture

Well, the Drupal interface language is English so the localization client should not show up on English pages.

As I understand it, l10n_client is a able to translate other things, such as menu items. So, if my primary site language is Spanish, and people are creating menu items in Spanish, I would need l10n_client to show up on English pages, in order to allow me to translate these menu items from Spanish to English. This is what happens currently (currently, it shows on all languages when the default is not English). At the same time, as you say, the drupal interface language is English, so l18n_client would also need to show on the Spanish pages in order to allow translation of interface elements - so perhaps, there is actually no problem here, and l10n_client is correct and SHOULD appear on ALL languages when the default is NOT English - I didn't think of it like that?!

gábor hojtsy’s picture

Status: Active » Closed (works as designed)

I don't have first hand experience with such a setup, but if it works in a way that it shows up the bar on all languages when the default is not English, then case is closed, all is fine.

Mr P’s picture

I have a FR EN site with the FR set as the default. It's on the French pages that I want to use this module to translate text. (I'm English and don't know French but am building a site for a French organisation.) So do I have to change the sites default language every time I want to use this module?