Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add a note to classes - MULTISITE-86

...

Advanced Tables - Table Plus
heading0
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
 
Node nameValue

Mgnl f
i18n


 

 
Mgnl n
system

 


Mgnl n
languages

 


Mgnl n
zh_TW


Mgnl p
country      

TW

Mgnl p
enabled

true

Mgnl p
language

zh

Mgnl n
pt_BR

 


Mgnl n
de

 


Mgnl n
fr

 


Mgnl p
fallbackLanguage

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
heading0
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
 
Node nameValue

Mgnl f
server


Mgnl f
i18n

 


Mgnl n
system

 


Mgnl n
content

 


Mgnl n
authoring

 


Mgnl p
class   

info.magnolia.cms.i18n.DefaultI18nContentSupport

Mgnl p
enabled

true

...

Localtab Group
Localtab
activetrue
titleYAML file
Code Block
languagejs
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
titleJCR node
Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
    
Node nameValue

Mgnl f
modules


Mgnl f
<module name>


Mgnl f
dialogs


Mgnl n
<dialog name>


Mgnl n
form

 

Mgnl n
tabs

 


Mgnl n
tabText

 


Mgnl n
fields

 


Mgnl n
title

 


Mgnl p
class

info.magnolia.ui.form.field.definition.TextFieldDefinition

Mgnl p
label

Title

Mgnl p
i18n

true

...

Advanced Tables - Table Plus
heading0
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
 
Node nameValue

Mgnl n
<site>


Mgnl n
i18n

 


Mgnl n
locales

 


Mgnl n
en

 

Mgnl p
country     


Mgnl p
enabled

true

Mgnl p
language

en

Mgnl n
de

 


Mgnl p
country     


Mgnl p
enabled

true

Mgnl p
language

de

Mgnl p
class

info.magnolia.cms.i18n.DefaultI18nContentSupport

Mgnl p
enabled

true

Mgnl p
fallbackLocale

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
0info.magnolia.cms.i18n.I18nContentSupport
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.

...

Advanced Tables - Table Plus
heading0
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
 
Node nameValue

Mgnl f
server


Mgnl f
i18n

 

Mgnl n
system

 


Mgnl n
content

 


Mgnl p
class   

info.magnolia.multisite.i18n.MultiSiteI18nContentSupport

Mgnl p
enabled

true

Mgnl n
authoring

 


Properties:

enabled

required , default is true

Enables multilanguage content storage and delivery.

class

required

A class that implements

Javadoc
0info.magnolia.cms.i18n.I18nContentSupport
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
heading0
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
Node nameValue

 

Mgnl n
content

 

Mgnl n
00

 


Mgnl n
0

 

Mgnl n
01

 


Mgnl p
imageLocation

left

Mgnl p
subtitle

Translation

Mgnl p
subtitle_de

Übersetzung

Mgnl p
subtitle_fr

Traduction

Mgnl p
text

<p>Translation of the user interface text is a community supported project.</p>

Mgnl p
text_de

<p>&Uuml;bersetzung der Benutzeroberfl&auml;che Text ist eine Gemeinde unterst&uuml;tzt das Projekt.</p>

Mgnl p
text_fr

<p>Traduction du texte de l&#39;interface utilisateur est un projet soutenu de la communaut&eacute;.</p>

...