hello

I am creating a site in two languages (arabic and french enabled with multilangual settings : ar prefixe path and fr prefixe path).
settings in multilangual configuration are current language and neutral language (for me is en).

I would like to have some blocks like "new members" or "laste blog entry" in arabic when I am in french section.

But when I create a view with block and page options. I see that the generated links for url are not good prefixed by i18n prefixe path.

the url for the laste blog in arabic is like this "mywebsite.com/ fr /node/1452" for example and not "mywebsite.com/ ar /node/1452".

it's a problem for me because arabic site must be inversed graphicaly. And the page must download rtl css ... if path language prefixe don't change, no rtl css will be added to the page ... and the display of the site is left to right and not right to left for arabic readers.

Is it a setting in views (argument or relation ) that I have missed ?

thanks for all reply

Comments

jolidog’s picture

I'm assuming you have installed the i18n module and activated the views translation sub module...
In any view you create, under filters, there is an option "i18n: Content negotiation", activate it and also define a path to the view without the language prefix (if it's a page display).
Now when you access fr/path_to_view the system will only show french content and language neutral content and same thing happens for ar/path_to_view.
Hope it helps!

>> I would like to have some blocks like "new members" or "laste blog entry" in arabic when I am in french section.

I had not read this line properly before replying...

The language prefix is added to links by the system, not views, so if you are on the french section of the site, by default any link will get the prefix fr.

What you want to do is above my current knowledge of drupal.

Sorry I can't be of more help...

pixelpreview@gmail.com’s picture

yes of course
you are right, I think that I test the settings for i18n and change only current language ... and test my view after that

thanks

pixelpreview@gmail.com’s picture

Status: Active » Closed (fixed)