Language Sections

netgenius - March 31, 2008 - 16:26

Designed for multi-language sites, Language Sections provides a way of storing content sections for different languages in a single text area.

Applications include

* Views module header, footer and "empty" text sections, to make them "language aware". On Drupal 5, Views Translate may also be useful.
* Language-specific custom 404 pages etc.
* Node bodies, to display something like "This content is only available in English" when someone tries to view in a language for which no translated version of the content exists.
* Text sections provided by other modules which do not offer multi-language capability - see below.

This module provides an "input filter", so will only be useful for text sections which make use of "input formats".

Other modules with which Language Sections can be useful

* Views
* Panels for "custom content" panes (but don't set "simple cache" in Panels 2.)
* Educational Block

Please contact me giving details of other relevant modules that you know about so that I can add them to this list.

Example

Text and sections are marked in a simple way, here's an example:

=== es ===
This text will only be displayed when Spanish language is selected by the user.
=== fr ===
This text will only be displayed when French language is selected by the user.
=== qz ===
This part will be displayed when the user's selected language is neither Spanish nor French, i.e. all other languages.
=== qq ===
This part will be displayed for all languages.

Please read the documentation for further information.

For general comments, complaints, praise etc, please add a review.

Update 22-Sep-09 Default section now added as requested here and documented here.

Releases

Official releasesDateSizeLinksStatus
6.x-1.62009-Sep-2910.01 KBRecommended for 6.xThis is currently the recommended release for 6.x.
5.x-1.52009-Sep-2210 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2008-Oct-0810.04 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
5.x-1.x-dev2008-Jul-3010 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.