I have a site with multilingual settings (EN& IT)
When I added a path and choose the two language the index done relative to current default language only

for example if the default language is English I see the indexed content in sbp_path table for both English & Italy are English page

Any idea how can I fix this issue?

Comments

melsawy’s picture

Title: Paths module did not work with multi-languages » Paths module did not work with multilingual sites
jhodgdon’s picture

Thanks for the report! I'll need to look into this. I may not have considered multilingual in the Paths module properly, so the module might need to have a new Language field when you set up paths to index.

jhodgdon’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Sorry for the very long delay in looking into this...

I tested this today as follows:

a) I have a site with the core Content Translation module installed, as well as Views, and English and Spanish languages installed.

b) I made the Basic Page content type translatable, and created content: one translated page.

c) I set up a multilingual page as follows: I created a view that shows the Pages with teasers. I used a contextual filter to filter the content language, using the following PHP code to set the default value if the argument is not present:

global $language;
return $language->language;

So, now if I go to the URL (mysite)/multilingual-test I see the English page teaser, and (mysite)/es/multilingual-test, I see the Spanish page teaser.

d) In Search by Page paths, I set up to index this new page, with the following entries:
Page to index: multilingual-test
Languages: English and Spanish checked

e) I ran cron to index the page.

So... When I look in the database, in table sbp_paths -- the en entry for my view page has the English content, and the es entry has the Spanish content.

So I am not able to reproduce this issue.... Maybe I did something different from you .... some questions:

- What is generating your page in Italian and English?
- How did you enter the page into the Search by Page Paths module?
- Have you verified that if you go to (your site URL)/en/(the path you want to index) you see your page in English, and (your site URL)/it/(the path you want to index) you see it in Italian?

vuil’s picture

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