I realize that work on the 7.x version is very early. I just wanted to mention this in case it's -supposed to be working- at this point. The Language switcher (User interface text) block does not appear after being assigned to a region. Languages are configured (though the Selection/Detection page doesn't seem to have anything that would apply to the switching block).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

feneur’s picture

I had the same issue before I enabled selection on the /admin/config/regional/language/configure (Administration » Configuration » Regional and language » Languages, and then the Detection and Selection tab) page, I think it was the "User" detection method, but I enabled them all so I'm not 100% sure.

feneur’s picture

plach’s picture

Status: Active » Postponed (maintainer needs more info)

The language swicther appears only if one enables a language detection method that actually alters links, hence allowing to switch language (in core only URL and Session). User method instead does not provide a way to switch language since it's a fixed value.

You may want to enable User method on top of the URL one to be able to switch language if a user has not specified a language preference or has not logged in.

Does this solve your issues?

j. ayen green’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Yes, that did it. Thanks!

detran’s picture

It took me a day before I found your post and set it to work properly!! Your post is quite helpful!

plach’s picture

Category: bug » support
plach’s picture

Issue tags: -Usability

As we can see here, D7 language switcher has a big UX problem, which was already present in D6: one can enable the language switcher block without performing the needed language negotiation settings. In this case the language switcher won't appear.

Since this cannot be fixed in core, I think we could introduce a massage warning the user that she needs to configure language negotiation to have the language switcher actually displayed.

yoroy’s picture

Title: 7.x Switch block does not appear » Improve language switcher usability
Category: support » feature
Status: Closed (works as designed) » Active
Issue tags: +Usability

Subscribe. Use the magic 'usability' tag to get this on the ux team radar :)

plach’s picture

plach’s picture

plach’s picture

plach’s picture

Status: Active » Needs review
FileSize
1.58 KB

Here is a patch.

plach’s picture

The previous patch was flawed: the warning message was showed even when changing the block region. The current one only shows it when enabling the block.

Jose Reyero’s picture

Status: Needs review » Fixed

Ok, committed into i18n.

However I think this should be an issue for Drupal core, but anyway, in the meanwhile, we'll save some headaches.

plach’s picture

Title: Improve language switcher usability » [i18n] Improve language switcher usability (D7)

Status: Fixed » Closed (fixed)
Issue tags: -Usability

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

giupenni’s picture

The problem persists.
7.x-1.11 version.

giupenni’s picture

Component: Code » Blocks
Issue summary: View changes
Status: Closed (fixed) » Needs work