We were disappointed that the newest version of localizer does not support blocks, but we think that we have found an extremely simple solution that you may want to implement into the module.
While we understand that you can mimic language support for blocks through visibility settings (by path or php), it would be problematic for because we rely so much on pathauto for automatically generating our URL aliases.
For example, if we have a content type of "events", we may set the pattern in pathauto to "events/node-tile". This is a problem on multi-lingual sites if we want a block to appear in that "section" (for example, a block for event archives for both languages). While this can be done manually, on a node-by-node basis, our generally non-techy clients would find this to be tedious and frustrating. We could also use php, but we prefer keeping it simple for our Drupal implementers and use paths for visibility as much as possible.
Since pathauto requires the excellent token module, our developers wrote a very small module that adds a language token that can be used by pathauto. It is a very small amount of code, and we would like to offer it to you to insert into Localizer.
We thought about releasing as a new project, but the amount of lines of code required is so small that we would rather not bother. We don't even won't credit if this is an issue for any reason.
Module is attached for anyone interested.
Rene Hache
Project Manager
northStudio.com
| Comment | File | Size | Author |
|---|---|---|---|
| language_token.zip | 773 bytes | rhache |