After enabling the Language switcher Block its not showing the block

Comments

dunlop’s picture

I can confirm that I am having the same problem, as is the user in this report http://drupal.org/node/230366. Using Garland theme, tried putting into various regions. None worked.

jose reyero’s picture

Status: Active » Postponed (maintainer needs more info)

So it was showing before enabling i18n?

Not showing for any page? node pages?... ?

dunlop’s picture

This report (or at least my confirmation of it) are only intended for the 6.x version. My understanding is that i18n is no longer needed and I do not have it installed.

I untarred the French translation package into my drupal root directory and everything went where it was supposed to. Then I enabled Locale and added the French language. I then enabled the Language Switcher expecting that I could switch between languages for further testing. It did not appear.

Perhaps I have misunderstood how multi-language support works in Drupal 6? Perhaps I have simply reported the problem in the wrong place.

dunlop’s picture

Status: Postponed (maintainer needs more info) » Active
jose reyero’s picture

Project: Internationalization » Drupal core
Version: 6.x-1.x-dev » 6.1
Component: Module i18nblocks » language system
Category: bug » support
Priority: Critical » Normal
Status: Active » Fixed

So, gentlemen, if this is not happening with i18n, this is definitely an issue for Drupal 6 core.

AFAIK, when you're seeing a node, only links for existing translations will show up. File a feature request if you think it should be otherwise.

phicarre’s picture

And how to have ONLY the language switcher block (no switch in the nodes) ?

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

malesandro’s picture

Besides enabling the language switcher, you have to edit the language negotiation. If it is set to none, then you'll have no switcher.

phicarre’s picture

But WE WANT a switcher ! and we don't want (e.g disable) to choose the language into the nodes

bertboerman’s picture

Hi Malesandro,

How do you edit the language negotiation?

bertboerman’s picture

Should investigate before I make questions. You indeed need to first enable at least 2 languages, and then edit the Language negotiation.

The negotiation can be found at Home » Administer » Site configuration » Languages » Configure

I chose "Path prefix with language fallback", and it worked. Thanks Malesandro.

liture’s picture

Hello All,

I have just came across this and I am suffering the same.

Now I finally managed to get the language switch to appear after choosing "Path prefix with language fallback" but what I still need to find out is:
- Remove the language switch from inside the node
- when I am navigating say in English and I switch the language to French... if I go to another page it is back to English again!!

Regards

GRboss’s picture

You saved me!!!!!!!!!!!!!!

invisible_swordsman’s picture

Thanks too Malesandro.
I also did as you said, and now it is working...

s.daniel’s picture

Version: 6.1 » 6.9
Status: Closed (fixed) » Active

There seems to be some confusion around the language switcher and when it displays links and when not.
I have sites where it only displays links when translations are available (in case the user is viewing a node) but for newer pages I can't get it to work that way. So here people are complaining that only links to available translations are showing up - that is what I want.
I have tried with i18n and without - no change.

What's the current situation?
Was this behaivior changed?
Where/how can it be changed?

s.daniel’s picture

Andrew Schulman’s picture

Version: 6.9 » 6.14
Category: support » bug

I'm also confused about this. I have two languages (English and French) installed, and language negotiation set to "Path prefix with language fallback". I enable the Language switcher block, but no matter where I put it or what else I try, it doesn't appear.

I haven't translated any content yet, but aren't I supposed to be able to view the site interface in any of my installed languages?

This is with Drupal 6.14.

Thanks,
Andrew.

Andrew Schulman’s picture

Hm, maybe some kind of cache problem. In my case, I got the Language switcher block to appear by deleting and then adding again my 2nd language. So the problem is solved for me.

not_Dries_Buytaert’s picture

Version: 6.14 » 6.16

Deleting and (while having 'Language negotiation' configured to value 'Path prefix with language fallback.') adding the 2nd language made the language block appear.
@'Andrew Schulman': thx!

Freso’s picture

Category: bug » support
Status: Active » Fixed

From what I can tell, the issue isn't really an issue, and the other issues that are beng reported here, are already (or should be) reported in their own issues. So I guess I'm closing this one.

Status: Fixed » Closed (fixed)

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

anne1960’s picture

I do have this issue in drupal 7
I have all the languages and settings as it should be...nothing appears

peter.milan’s picture

Language negotiation:

Set => Path prefix only.

after this setting language switcher will appear

daamy’s picture

thanks

foxeye’s picture

Version: 6.16 » 7.2
Assigned: Unassigned » foxeye
Status: Closed (fixed) » Active

Where to find this setting in D7? Still struggling with lang switcher appearence.

plach’s picture

Status: Active » Fixed

You need to go "admin/structure/block" and enable the "language switcher" block, please note that you need to enable the URL or Session language detection methods at "admin/config/regional/language/configure" to make the block appear.

Status: Fixed » Closed (fixed)

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

mja’s picture

Just a quick one for anyone who, like me, has just wasted a morning trying to discover why the language switcher block isn't displaying - make sure you haven't overridden theme_links in your template.php. That broke it for me.

robin van emden’s picture

Thanks mja, that fixed things for me as well!

nicodv’s picture

Can anyone tell me why I translated a menu item and a node and after hitting the switch, the new translated interface is shown but the nodes or the menus are just duplicated, they are not chosen depending of the language you choose.

thanks

qqboy’s picture

Issue summary: View changes

might be because of setting

set the url detect metod

then it appears.

delacosta456’s picture

hi

I confirm #12 solution make switcher available

a_e’s picture

Also want to confirm #12 works. in Drupal 7.52, in the interface had to go to
Configuration -> Regional and Language -> Languages
-Next click on the "Detection and Selection" Tab
-Next check enable to the right of Detection Method "URL"
-Save
-Click "Configure" on the right of the "Detection Method "URL"
-Click the radio button "Path prefix"
-click "Save Configuration"

avpaderno’s picture

Version: 7.2 » 7.x-dev
Assigned: foxeye » Unassigned