Translate a page


The features described on this page are part of Plugin Report translations (installed by default in the demo application Ametys).

Ce plugin permet à un contributeur d'indiquer, pour une page, quelle est la page correspondante dans chacune des autres langues gérées par le site.
La charte graphique peut alors utiliser cette information pour signaler que la page existe dans une autre langue.

Translation from one language to another must be carried out by a translator or a person familiar with both languages. This page explains how to enable the contributor or webmaster to set up translated pages.

  1. Use cases
  2. Realization
    1. Prerequisites
    2. Site map
    3. Report a translation
    4. Notification by email
  3. Displaying translated pages in the back office
  4. Front-office display of translated pages

 

Use cases

A webmaster has a site in French and wants to distribute information in English and translate one or more pages.

Realization

Prerequisites

The webmaster must have made the English language available for the site. The list of languages available for a website is visible in the administration area of the CMS AmetysPlease refer to the Administration Manual if necessary.

The contributors who will set up the page(s) on the English site must have rights to the English site map (see Assigning rights).

Site map

CMS Ametys manages a site map by language.

The sitemap tool lets you choose the language of the sitemap you wish to work on.

Here is an example of the site map in French (left) and English (right)

   

 

Pages can have completely different names in different languages.

Report a translation

The first step in translation is to get a translator to translate the content into the target language, in this case English.

Next, create the page in the Target Site Map and add content.

The last step is to indicate that the new page has a match in the sitemap of the other language.

To do this, simply:

  • select a language, say English, then select the page in the sitemap
  • in the Avancé click on the Report translations


  • a pop-up window opens with a list of other available languages
  • il suffit alors de selectionner la page traduite, soit dans la liste déroulante, soit dans le plan du site en cliquant sur le bouton cliquer sur le bouton

  • une pop-up s'ouvre contenant le plan du site de la langue choisie, ici le l'Anglais
  • select the corresponding page, then confirm
  • les pages sont alors considérées comme traduction l'une de l'autre (Français <-> Anglais)

Notification by email

If the application is configured to do so, when content is validated in a translated page, an e-mail is sent to contributors who have the right to modify the translated version, informing them that a new version is available.

Voir le manuel d'administration pour activer les alertes email.

Displaying translated pages in the back office

The Site Map tool allows you to display translated pages using the Translated Page decorators.

An icon is displayed next to pages with a translation:

 

Front-office display of translated pages

The operation described here is the recommended operation to be implemented by the graphics integrator.

When translation flags are in place and a visitor clicks on a language flag, the corresponding translated page is displayed.

When there's no match, the flag doesn't appear, or the surfer gets the home page of the desired site.

Back to top