I run a bilingual site, can xml sitemap make a sitemap for all paths regardless of language without stripping out the language prefix?
ie I want the following to appear in my sitemap:
/en/content/home
/fr/content/accueil
/en/content/contact
/fr/content/contact etc

CommentFileSizeAuthor
#2 i18n.patch1.19 KBfreakalis

Comments

SergioGuru’s picture

One vote here too - my pages are not correctly entered into sitemap as it doesn't respect i18n inner work. Example:

I write new article in my language and as I do it with Translate option I do not enter language subpath into article path e.g. not sl/article-alias but just article-alias. Links work OK.

But XML Sitemap module will enter only article-alias into sitemap but this leads to page not found. If I enter language prefix into article path it will go into sitemap but then real link is actual sl/sl/article-alias so it does not work either.

We have to solve this - I'm using Drupal 6. Any help appreciated. There should be some option tick box in XML Sitemap configuration to enable proper links resolving or similar solution.

Sergej

freakalis’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

I also needed i18n support for xmlsitemap.

My fix is in an attached patch.

You can then access diffrent sitemaps using the language prefix.

For example sv/sitemap.xml and da/sitemap.xml

avpaderno’s picture

Status: Needs review » Active

I think that similar code is already present in 5.x-2.x-dev. The code is not present in 6.x-1.x-dev because the i18n API is changing, for that branch; I will add something similar when the branch of i18n for Drupal 6 will have a stable API.

We will not add new code to the 5.1.6 release; the new release will be branched from 5.x-2.x-dev which is too different from 5.1.6 to be backported.

valcker’s picture

Component: xmlsitemap » Other

Any ideas on when 5.x-2.x beta will available? Thanks.

avpaderno’s picture

Version: 5.x-1.6 » 5.x-2.x-dev

I am changing the referring version to the one actually developed.

tetramentis’s picture

I have a clearly related problem - both with and without the '[lang]/' prefix in pathauto "settings for node aliases" the generated sitemap.xml doesn't have language prefixes (I'm using 5.x-1.6).

Would it be wise to upgrade right now to 5.x-2.x-dev to get language prefixes in the sitemap?

avpaderno’s picture

Drupal 5 doesn't have the code to handle multilingual sites (like it happens in Drupal 6); that is the reason the I18N project has been created.

I am not sure the Drupal 5 branch of the project handles multilingual sites correctly.

luusl’s picture

Does this mean it works with the 6.x-1.x branch? I have a similar issue, that some pages only written not in english are not shown up in the sitemap.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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