I'm testing this module out with views and localizer, and for some reason it does not work when in the French locale.

I currently have this in my Views header:

===  fr  ===
Some French text goes here.
===  en  ===
Some English text goes here. 

When in English, the english text is displayed. When switching to the French locale, nothing is showing. I've got the filter setup on Full HTML and it seems to work ok, but only in English? Any clues. This is a nifty little module.

Thanks,
Rene

Comments

andy inman’s picture

Assigned: Unassigned » andy inman

Weird! I can only guess that the $locale variable is not set to "fr". Can you display $locale to check? For example create a node with some php content:

  echo "Current language choice is: " . $locale;

.. and see what it says.

Do you have any other languages installed that you can try? I confess I have only tested it with "en" and "es". The module itself is very simple, I can't imagine why it would fail with "fr" sepecifically, unless "fr" is not the current $locale.

andy inman’s picture

I installed French language on my site to test it and it worked correctly - I was specifically testing the "header" section of a view - it worked exactly as it should. Please try displaying the $locale variable to check what it contains.

andy inman’s picture

Title: Having issues with french » Please confirm
Component: Documentation » Miscellaneous
Status: Active » Closed (fixed)

I'm closing this as unable to confirm that it really is an issue. As I explained, I can't duplicate it - the module works fine for me on my live site and my test site (both run Apache, one is Unbuntu and one is CentOs.)

Please let me know if this is still a problem for you with the current release.

andy inman’s picture

Status: Closed (fixed) » Fixed

Have now seen this problem elsewhere, it's due to page caching which can happen in some installations. The latest version disables caching by default, so will work correctly.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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