Closed (fixed)
Project:
Localizer
Version:
4.7.x-2.7
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2007 at 20:09 UTC
Updated:
6 Jul 2007 at 07:16 UTC
Hi,
I'm running Drupal 4.7.9.
I am using the localizer module and have a site with English and French versions.
Everything is working well, though when I try and create a French version of a custom English block, I am unable to save a second, different French version - despite the fact that I am selectin the 'French" locale from the drop down.
Basically, whatever I type in the block appears under both locales.
I have read that it is possible to have different custom locale blocks, so what am I missing?
Thanks,
B-Dot
Comments
Comment #1
hbfkf commentedI am not a Localizer expert, but your question seems to be related to this issue. According to the latter, you have to create a block for each language, it seems.
Comment #2
B-Dot commentedHey - thanks very much for that pointer.
On that page, I read this post by sun:
...and have tried creating distinct versions of the block in each language.
However, there does not seem to be a way to specify that the english block appear when a user has selected english and the french block appear when the user has selected french: both blocks appear on both languages....
It occurs to me that perhaps a snippet of PHP that checks whick language is selcted is the way to go.
Does anyone know how to check that via PHP?
B-Dot
Comment #3
B-Dot commentedOK, I reached out to my PHP guru and was told to try this, which worked perfectly:
...to only show a block on Frech locale pages. Just substitute 'en' for English pages.
The only problem with this is that it will show the block on *all* pages of a given locale. It was suggested that the above snippet could be extended using "$_GET['q']" to select certain nodes.
Comment #4
Roberto Gerola commentedIt seems to me that you didn't patch the block module.
Comment #5
(not verified) commented