Skip to the content
Documentation

Managing the translation languages

No ratings yet

The content languages of an installation, the languages content can be created and translated in, are managed under Setup > Languages (/content/translations, policy content/translations).

Setup > Languages: the content languages with their objects, classes and the siteaccesses that show them

Setup > Languages (/content/translations): one card per content language.

Screenshot of the Exponential 6.0.15 administration (admin4), light mode, 1440 pixels

The page

At the top, the figures: how many content languages there are, how many more can be added (at most 62), how many need a look (used by fewer than 10 objects, or listed by no siteaccess), how many are unused and can be removed, and the default language of new content in the current siteaccess (ContentObjectLocale).

Each language has a card with its name, locale and badges (Default for new content, Shown first by N siteaccesses, In no SiteLanguageList, In use or Unused), the number of objects and classes with a translation in it, its language ID and bit, and the siteaccesses that show it. Below the cards, every siteaccess of AvailableSiteAccessList[] with its SiteLanguageList[]; a locale listed there that is not a content language is marked in red.

A language's name opens its own page (/content/translations/<id>): the objects and classes with a translation in it, its locale, and what is in the way of removing it.

Adding a language

  1. Press Add language.
  2. Find the language in the list: type part of its name, code or country into Find a language. The list holds the locales of share/locale without their variations; languages already added cannot be chosen.
  3. Press Add language.

For a language that is not in the list, choose Custom and give a name and a locale code (ger-CH). A file share/locale/<code>.ini must exist for that code; see Configuring your site locale.

Adding a language translates nothing and changes no siteaccess. Translate content into it (Working with translations), and add it to the SiteLanguageList[] of each siteaccess that should show it (Configuring the site languages). The administration siteaccess, with ShowUntranslatedObjects=enabled, offers it for editing at once.

Removing a language

A language can only be removed when no object and no class has a translation in it, class edits that were started and never stored included. The checkbox Select for removal is only available for such languages; select them and press Remove selected. The kernel refuses anything else, so removing a language never deletes content. The language the administration interface itself runs in cannot be removed either.

To retire a language that is still used, first move its content into another language, object by object, as described in section 8 of Content languages.

Limits

  • At most 62 content languages on 64-bit PHP (30 on 32-bit PHP): each language is one bit of a number (see The bit-field algorithm). When all are taken, the page says so and adds nothing.
  • Each translation adds a row per attribute to the database. The number of objects, versions, translations and attributes together decides the size of the content tables; keep the version history limit (content.ini [VersionManagement] DefaultVersionHistoryLimit) in mind on large multi-language sites.

From a shell

There is no console command to add or remove a content language. ./console exp:ezchecktranslation <locale> shows how complete an interface translation is; see section 10 of the guide for the shell commands around languages.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.