SPIP-Contrib

SPIP-Contrib

عربي | Deutsch | English | Español | français | italiano | Nederlands

290 Plugins, 198 contribs On SPIP-Zone, 104 visitors now

Home > Multilingual Solutions > Site multilingue facile > Easy Multilingual Web-site

Easy Multilingual Web-site

23 May 2013 – by Rainer Müller

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

2 Votes

Easy Multilingual Web-site permits to easily set up a mulilingual web-site with a language area per section.

Introduction

Although multilingualism is natively integrated into spip, creating a multilingual web-site is not always obvious. The aim of the present Plugin is to facilitate this task allowing to set up a fully multilingual web-site with only a few clicks (language area per section).

Principle

The Plugin assembles several existing Plugins and makes some changes to the the default skeletons.

Installation

The plugin installs as any plugin.

However, it requires the following plugins:

Under Spip 3 the required Plugins are automatically activated by installing the present Plugin .

Under Spip 2 or 2.1 it is recommended ton install first the Plugin Step before installing “Easy Multilingual Web-site” in order to allow the automatic activation of all the necessary Plugins.

The plugin also modifies some skeletons (sommaire.html, rubrique.html and article.html) and some other “includes”.

Once the necessary plugins activated , simply determine the language of the site in “Configuration” -> “Multilingual” -> “Language options” and your site is multilingual, you can now start writing your content.

Skeletons

The Plugin overrides the sommaire.html article and html rubrique.html skeletons to adapt them to the structure "a language per sector”.

Obviously you can overwrite them by copying the original file from the “squelettes-dist” folder in your templates folder, but you lose the specific adaptations for the structure “language per section”.

You can also reuse the adjustments proposed by this plugin.

Skeletons modifications proposed by the plugin
If you want to keep the automatic redirection to the correct language sector, please do not overload the sommaire.html because it contains the tag #LANGUE_PREFEREE_SECTEUR_REDIRECTION of the Plugin “Preferred Language User Language” causing the redirection to the right language sector.

Regarding the skeletons article.html and rubrique.html. If you want to edit them, just copy the corresponding file for your Spip version into your “squelettes” folder, and then rename it correctly:
For spip Version 2 and 2.1 copy the files “rubrique_spip2.html” and “article_spip2.html” into your “squelettes” folder, then rename them by removing “_spip2”.

For spip v3 proceed in the same way by taking the files containing “_spip3”.

Logo

The Tags #LOGO_objet such as #LOGO_ARTICLE can now look for the logo of the original object if the translated object does not have a logo.

So if Article 2 translation of Article 1 does not have a logo attached, the tag #LOGO_ARTICLE # will display the logo of Article 1.

This feature can be disabled in the Plugins control panel.

The Language Menu

You can use the “include” <INCLURE{fond=inclure/menu_langues,env}/> which is included automatically if you use this Plugin under Spip 3,

For Spip 2 and 2.1 you should copy the file inc-header.html into your “squelettes” folder and replace #MENU_LANG   <INCLURE{fond=inclure/menu_langues,env}/>

The plugin is compatible with Zspip

View online : http://plugins.spip.net/multilingue

updated on 23 March 2018

Back to top

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 Les choses à faire avant de poser une question (Prolégomènes aux rapports de bugs. )
Add a document

Back to top

Here they're talking

  • (fr) Titre de logo v2

    23 mai 2014 – 22 commentaires

    La version 2 du plugin Titre de logo reprend les mêmes fonctions que la v1 mais étend le titre et le descriptif aux logos de tout objet éditorial de SPIP. Vous pouvez toujours vous référer à l’article de la version 1 pour retrouver les fonctions (...)

  • (fr) Plugin Figures

    10 octobre 2017 – commentaires

    Modèles d’insertion des documents en HTML5, avec figure et figcaption. Envie d’utiliser HTML5 sur tout votre site, y compris les modèles d’insertion des documents de SPIP ? Aussitôt installé, ce plugin utilise les éléments HTML5 figure et figcaption (...)

  • (fr) SPIP 3.2, Agenda et FullCalendar

    6 juin – 21 commentaires

    Nous avions publié un article sur la manière d’utiliser FullCalendar avec SPIP 3.0 afin d’afficher des évènements sous forme d’Agenda. La version de FullCalendar a changé avec SPIP 3.2. Le présent article est donc un tutoriel adapté à SPIP 3.2. Pour (...)

  • (fr) cibloc : mettre en forme le texte d’articles avec des blocs

    9 juillet – 13 commentaires

    Le plugin CIBLOC permet de mettre en forme le texte d’articles avec des blocs. Il offre des blocs, des colonnes, des icônes et des boutons. Les objectifs de ce plugin Le plugin CIBLOC offre des blocs, des colonnes, des icônes et des boutons : (...)

  • (fr) PHANTOM (HTML5UP)

    18 juillet – 11 commentaires

    Squelette SPIP pour intégrer le modèle Phantom de HTML5UP. https://html5up.net/phantom Installation A l’activation, le plugin installe aussi les plugins suivants : crayons, favicon, metasplus+, Couleur d’objet, champs extras, SPIP reset centre (...)