SPIP - Contrib

SPIP - Contrib

[ar] [en] [es] [fr] [it]

207 visitors now

fontsizeup fontsizedown
Home page > English > Multilingual Solutions > An Example of a Multilingual Site
[3 commentaires]

An Example of a Multilingual Site

Wednesday 8 June 2005, by twig

All the versions of this article: [English] [français]

  • Digg
  • Del.icio.us
  • Facebook
  • Google
  • Technorati
0 vote

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

[1] The 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.

Back to top

3 Forum messages

Voir toute la discussion

  • Reply to this message

    17 October 2007 14:21 , by 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

    3 July 2007 12:41 , by 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.

    See online : Suisse Connexion - site trilingue

  • Reply to this message

    31 March 2007 09:29 , by Mahboub

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

    shams games

Reply to this article

Back to top

Here they're talking

SPIP | Template | | Site Map | Follow-up of the site's activity RSS 2.0