Log in Request my site

Add a language

This article explains how to add a language to your site, choose the main language, set a language’s formats and remove a language. Each language has its own URLs and formats.

Before you start

  • Languages are set in the Translations > Locales menu, reserved for the site’s administrators.
  • Your languages are set on the Staging and go live with the publication of the site.
  • The number of languages is not limited, whatever your plan.
  • A content language is a language in which you write your pages. The language of the admin screens, on the other hand, follows each member’s account.

Choose the site’s language

On a new site, the Translations > Locales menu opens on the Set up your site language screen. It becomes the site’s main language.

  1. In the Site language list, choose your language, for example French.
  2. Click Set main language. The Customize language settings screen shows the formats detected for this language.
  3. Keep or change the formats.
  4. Click Save and continue.

The pages, templates and compositions created before this choice are filed under this language.

Add a language

  1. In the admin menu, open Translations > Locales. The table lists your languages.
  2. Click Add content language. A panel opens on the side.
  3. In the list, type the beginning of the language’s name, for example engl.
  4. Choose the language.
  5. Click Add content language. The message Changes saved. appears and the language shows up in the table, with 0 contents.
The Add a content language panel: the Language, or language and region box that advises the language-only code when in doubt, the list of languages and the Add a content language button.

The date, time and number formats of the added language are detected when it is added. The section Set a language’s formats explains how to change them.

Choose the language code

The two kinds of language code
CodeExampleWhen to choose it
Language onlyfr, enFor all readers of the language, whatever their country. The right choice for most sites.
Language and regionfr_FR, fr_BETo offer separate versions of the same language to several countries, with distinct formats or contents.

When in doubt, choose the language only. A site in fr can later welcome fr_BE without changing its URLs.

Read the table of languages

A site’s table of languages: German, English and French, each with its code, its URL segment and its number of contents, French marked Yes in the Main language column, the Set as main, Edit and Delete buttons, then the Hide the main language segment in URLs checkbox.
The columns of the table of languages
ColumnContent
LanguageThe name of the language.
CodeThe language code, with its region if there is one.
URL slugThe start of the URLs of the pages in this language, for example en for yoursite.com/en/contact/.
Main languageYes for the main language. For the others, the Set as main button.
ContentsThe number of contents filed under the language: pages, entries, templates and compositions.

The URL segment is calculated from the code and cannot be edited. A language without a region takes the short form, fr. A language with a region keeps the full form, fr-be. Changing this segment would break all the published and shared URLs.

Choose the main language

The main language is the one your site uses at its root. A site has only one. The first language added becomes it.

  1. In the table, on the row of the language you want, click Set as main. The Main language column shows Yes on its row.
  2. To serve the main language without a segment, check Hide the main language slug in URLs.
  3. Click Save.
The URLs depending on the Hide the segment checkbox
CheckboxPage in French, main languagePage in English
Checkedyoursite.com/contact/yoursite.com/en/contact/
Uncheckedyoursite.com/fr/contact/yoursite.com/en/contact/

The checkbox is checked by default. A page reached at an address other than its own, for example without its segment, is redirected to the right one.

Set a language’s formats

  1. In the table, on the language’s row, click Edit. The Edit content language screen opens.
  2. Choose each format.
  3. Click Save.
The Edit content language screen for English: the URL segment en, the date formats shown applied to today’s date with Custom: n/j/y, the time formats, the first day of the week set to Sunday, the Period and Comma separators, then the Save button.
A language’s formats
SettingEffect
Date formatFour formats shown applied to today’s date or your own with Custom:.
Time formatThree formats or your own with Custom:.
Week starts onThe first day of your calendars.
Decimal separatorPeriod or Comma, shown applied to a number.
Thousands separatorComma, Period, Non-breaking space, Narrow non-breaking space or Apostrophe, shown applied to a number.

The separators are chosen from a list. The two no-break spaces used in French look like an ordinary space. The list tells them apart by naming them.

A page shows its dates, its numbers and the names of the months and days in the formats of its language. The admin language plays no role in this. The main language’s formats are used in the admin and in exports.

Delete a language

  1. In the table, on the language’s row, click Delete. You can also click Delete under Delete this language, at the bottom of the Edit content language screen.
  2. In the confirmation, read the number of the language’s contents that will be deleted.
  3. Confirm. The message Language deleted. appears.

The main language cannot be deleted: its row has no Delete button. To remove it, first set another main language.

See also

Updated on

All documentation pages