An Example of a Multilingual Site

Template and sample database showing one way to create a multilingual site.

There are different ways to use Spip to create and manage a multilingual site.

This sample database (one section in French and one in English, each containing 4 articles within 2 sub-sections) shows just one way to create a site which is simple and multilingual.

The home page offers a choice of languages.
On subsequent pages, you can easily navigate to the corresponding section or article in another language by using a drop-down menu.

This structure should prove a useful starting point for those who are trying to use Spip to build a multilingual site for the first time.

An online demo of this site is available (for a limited time, at least) at http://www.taize.ch/spip172/. The three “template” files are: accueil.html, rubrique.html and article.html.

Howto

1) Perform a new installation of Spip 1.8.2, 1.8 or 1.7.2. [1]

2) Overwrite the files contained in the file SpipMultilingueExemple.zip offered below.

3) In your Private space, activate the Complete interface.

4) Go to
.../ecrire/config-lang.php3
and change the character set for the site to Universal alphabet (utf-8)

5) Go to
.../ecrire/config-multilang.php3
and select:
Enable the language menu for the articles? [No]
Enable the language menu for the sections? [Yes]
and click on Submit

Next:
... only for the sections located at the root? [Yes]
Managing translation links? [Yes]

6) On the page
.../ecrire/admin_tech.php3
click on “Restore the database” and follow the instructions.

Attention! The file to be restored is:
dump172.xml.gz if you are using Spip 1.7.2
dump18.xml.gz if you are using Spip 1.8
dump182.xml.gz if you are using Spip 1.8.2

7) Once the database is restored, the codes for accessing the private area are:
Login: admin
Password: spipdemo

8) Visit the site, and also take a look at the code of these files: accueil.html, rubrique.html and article.html.

Footnotes

[1The simple structure of this demonstration database works with both Spip 1.7.2 and Spip 1.8.x. However, if you intend to build a more complex multilingual site, I recommend using version 1.8.x.

updated on 25 January 2007

Discussion

3 discussions

  • Mahboub

    Thank you for updating the article. Creating a multilingual sites became easy this way.

    shams games

    Reply to this message

  • i currently use spip 1.9.2 and the sarka skeleton for a french english bilingual site. yours looks way cooler. i am a spip beginner and i would be interested in the skeleton you have develope برنامج تحميل make it slower than برنامج

    Reply to this message

  • 1
    Mark Baber

    Having borrowed numerous techniques from taize, I’ve built a trilingual (French, English, Russian) website with “multi” rubriques and translated articles.

    No tables, fully W3C compliant, no Flash.

    Uses Thickbox2, Forms&Tables, SPIP-Listes, SPIP 1.9.2b.

    Happy to share squelettes and offer commentary to anyone interested.

    • Daniel Mang

      hi

      i currently use spip 1.9.2 and the sarka skeleton for a french english bilingual site.
      yours looks way cooler. i am a spip beginner and i would be interested in the skeleton you have developed.

      daniel

      www.xploratorium.net

    Reply to this message

Comment on this article

Who are you?
  • [Log in]

To show your avatar with your message, register it first on gravatar.com (free et painless) and don’t forget to indicate your Email addresse here.

Enter your comment here

This form accepts SPIP shortcuts {{bold}} {italic} -*list [text->url] <quote> <code> and HTML code <q> <del> <ins>. To create paragraphs, just leave empty lines.

Add a document

Follow the comments: RSS 2.0 | Atom