...
System languages are configured in Configuration > /server/i18n/system
. Each locale has a language
and country
properties that define the locale when combined. This allows you to define regional variations such as zh_TW
for traditional Chinese or pt_BR
for Brazilian Portuguese.
Advanced Tables - Table Plus |
---|
heading | 0 |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| |
| |
| |
| | |
| | TW | | true | | zh | | |
| |
| |
| | en |
|
One of the languages is always a fallback language. If no target language content is found, the system displays content in the fallback language instead.
...
Advanced Tables - Table Plus |
---|
heading | 0 |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| |
| |
| |
| |
| |
| | info.magnolia.cms.i18n.DefaultI18nContentSupport | | true |
|
...
enabled | required , default is true Enables multilanguage content entry. |
class | required A class that implements Javadoc |
---|
0 | info.magnolia.ui.api.i18n.I18NAuthoringSupport |
---|
rangeHigherVersion | 5.5 |
---|
className | info.magnolia.ui.api.i18n.I18NAuthoringSupport |
---|
renderType | asynchronous |
---|
|
such as: info.magnolia.ui.framework.i18n.DefaultI18NAuthoringSupport supports multilanguage content entry for one site.info.magnolia.multisite.i18n.MultiSiteI18nAuthoringSupport supports multilanguage content entry for many sites (EE Pro). This class reads the available locales (languages) from the site definitions. So you need to define them for each site.
|
...
Localtab Group |
---|
Localtab |
---|
| Code Block |
---|
language | js |
---|
title | <module name>/dialogs/<dialog name>.yaml |
---|
| form:
tabs:
- name: tabText
label: Text
fields:
- name: title
class: info.magnolia.ui.form.field.definition.TextFieldDefinition
label: Title
i18n: true |
|
Localtab |
---|
| Advanced Tables - Table Plus |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
| Node name | Value |
---|
| |
| | |
| | |
| | |
| |
| |
| |
| |
| |
| | info.magnolia.ui.form.field.definition.TextFieldDefinition | | Title | | true |
|
|
|
...
Advanced Tables - Table Plus |
---|
heading | 0 |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| |
| |
| |
| |
| |
| | true | | en | |
| |
| | true | | de | | info.magnolia.cms.i18n.DefaultI18nContentSupport | | true | | en |
|
...
locales
| required |
<locale>
| required Locale name constructed from the language and country such as zh_TW for traditional Chinese or pt_BR for Brazilian Portuguese. |
enabled
| optional , default is false Enables the locale. |
language
| required Language code such as pt for Portuguese. See Java locale notation . |
country
| optional Country code such as BR for Brazil. See Java locale notation. |
class
| required Class that implements Javadoc |
---|
0 | info.magnolia.cms.i18n.I18nContentSupport |
---|
rangeHigherVersion | 5.5 |
---|
className | info.magnolia.cms.i18n.I18nContentSupport |
---|
renderType | asynchronous |
---|
|
such as: info.magnolia.cms.i18n.DefaultI18nContentSupport which supports a language prefix such as /en/* in the URL and stores localized content in a node using the naming pattern <name>_<locale> , for example subtitle_en . Use this implementation if your site is organized into a single tree, in which the locale prefix usually points to the root of a site.
info.magnolia.cms.i18n.HierarchyBasedI18nContentSupport which stores and serves localized content in a hierarchical structure. Use this implementation if your site is organized into multiple trees, in which site roots are usually named after the locales.
info.magnolia.cms.i18n.RequestLocaleAwareI18nContentSupport which reads the locale from the request. This implementation does not render language specific URLs.
|
enabled
| optional , default is false Enables support for localized content. Used to rewrite URIs and getting nodes based on the current language. |
fallbackLocale
| optional , default is en Content is served for the fallback locale if content is not available for the current locale. |
...
When you select a language from the dropdown, dialogs show a language identifier such as fr
next to field labels. This makes it clear what language editors should be entering.
...
The language identifier is not displayed for the fallback locale, unless the i18n property is set to true in the definition of the given dialog. For example, if your fallback locale is English you won't see (en) next to the field label. |
Info |
---|
Displaying the locale dropdown and a locale identifier in the dialog is Magnolia's default way to let editors choose a language. You can implement your own alternative such as separate tabs for each language. If the number of supported languages is not very large (3-4) tabs work well. The default approach works with any number of languages while keeping UI changes minimal. |
...
Advanced Tables - Table Plus |
---|
heading | 0 |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| |
| |
| |
| |
| | info.magnolia.multisite.i18n.MultiSiteI18nContentSupport | | true | |
|
|
Properties:
enabled | required , default is true Enables multilanguage content storage and delivery. |
class | required A class that implements Javadoc |
---|
0 | info.magnolia.cms.i18n.I18nContentSupport |
---|
rangeHigherVersion | 5.5 |
---|
className | info.magnolia.cms.i18n.I18nContentSupport |
---|
renderType | asynchronous |
---|
|
such as: info.magnolia.cms.i18n.DefaultI18nContentSupport supports multilanguage content for one site.info.magnolia.multisite.i18n.MultiSiteI18nContentSupport supports multilanguage content for many sites (EE Pro). This class reads the available locales (languages) from the site definitions. So you need to define them for each site.
|
...
Advanced Tables - Table Plus |
---|
heading | 0 |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
|
| |
| | |
| |
| | left | | Translation | | Übersetzung | | Traduction | | <p>Translation of the user interface text is a community supported project.</p> | | <p>Übersetzung der Benutzeroberfläche Text ist eine Gemeinde unterstützt das Projekt.</p> | | <p>Traduction du texte de l'interface utilisateur est un projet soutenu de la communauté.</p> |
|
...