On an clean multi-language installation, the language prefixes returned by Path Filter are not as expected. (See examples below.)
Drupal-6.8 installation, with the following modules activated:
- Path (Core)
- Locale (Core)
- Content translation (Core)
- Internationalization (Multilanguage)
And the following settings:
- File system | Download method: Public.
- Language negotiation: Path prefix with language fallback.
- Multilingual system | Content selection mode: Mixed current language (if available) or default language (if not) and language neutral.
- Default language: English (path prefix 'en')
- Other language: Spanish (path prefix 'es')
If the administrator is using the English language, then Path Filter returns all paths prefixed with 'en', regardless of the page's language:
- "internal:otherpage" in 'en/page' links to 'en/otherpage'.
- "internal:otherpage" in 'es/page' links to 'en/otherpage' instead of 'es/otherpage'.
If the administrator switches to the Spanish language, and clears the cache, the reverse situation occurs: all paths get prefixed with 'es', now.
Using no prefix at all for the default language makes no real difference. the returned URLs still depend on the language the administrator is using, instead of the page's language.
Using 'Content selection mode: Current language and language neutral.' doesn't help either.
Comments
Comment #1
alexanderpas CreditAttribution: alexanderpas commented#402296: Call for Action: Get Pathfilter Additional Functionality in before D7 makes pathfilter obsolete (Pathfilter in Core???)
Comment #2
mrfelton CreditAttribution: mrfelton commentedI believe this is the same issue as the one I fixed at #408086: Use correct alias for translated nodes.. Please recheck with the latest CVS code.
Comment #3
jjalocha CreditAttribution: jjalocha commentedI would like to test this, because I think this is an ugly bug. But I don't know how to "get" something from CVS. Maybe someone could guide me, or make the new package for me?
Comment #4
mrfelton CreditAttribution: mrfelton commentedTake a look here:
http://drupal.org/node/58520/cvs-instructions/DRUPAL-6--1
Comment #5
jjalocha CreditAttribution: jjalocha commented:)
The test scenario outlined in the first post works perfect now, with the following modules:
Drupal 6.12
i18n 6.x 1.0
pathfilter CVS
Thank you so much, Tom for fixing the code, pointing out the fix, and helping me out with CVS!
Cheers,
Jerzy
Comment #6
mrfelton CreditAttribution: mrfelton commentedExcellent, I'm glad this issue is resolved - it was quite a serious one. Thanks for testing.