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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | i18n.patch | 1.19 KB | freakalis |
Comments
Comment #1
SergioGuru commentedOne 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
Comment #2
freakalis commentedI 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
Comment #3
avpadernoI 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.
Comment #4
valcker commentedAny ideas on when 5.x-2.x beta will available? Thanks.
Comment #5
avpadernoI am changing the referring version to the one actually developed.
Comment #6
tetramentis commentedI 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?
Comment #7
avpadernoDrupal 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.
Comment #8
luusl commentedDoes 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.
Comment #9
Anonymous (not verified) commented#503010: Close the 5.x-2.x-dev branch as unsupported