Default Language Fallback Configuration - Documentation topics on: adding languages,default language,languages,multilingual,multilingual content,.

Default Language Fallback Configuration

There are several language properties set in the dotmarketing-config.properties file that can be customized. By default, dotCMS downloads with US-English set as the default language.

##    LANGUAGE AND CODING INFO
CHARSET = text/html;charset=UTF-8
DEFAULT_LANGUAGE_COUNTRY = United States
DEFAULT_LANGUAGE = en_US
DEFAULT_LANGUAGE_CODE = en
DEFAULT_LANGUAGE_STR = English
DEFAULT_LANGUAGE_COUNTRY_CODE = US

##  if this variable is set true and the contentlet you are looking is not in the language you are on,
##  this will show the contentlet in the default language (Fallback to the default language). If is set to false
##  this aditional search is avoided
DEFAULT_CONTENT_TO_DEFAULT_LANGUAGE=false

## it is similar to DEFAULT_CONTENT_TO_DEFAULT_LANGUAGE but only applies for Widgets
DEFAULT_WIDGET_TO_DEFAULT_LANGUAGE=true

## it is similar to DEFAULT_CONTENT_TO_DEFAULT_LANGUAGE but only applies for Pages
DEFAULT_PAGE_TO_DEFAULT_LANGUAGE=true

## it is similar to DEFAULT_CONTENT_TO_DEFAULT_LANGUAGE but only applies for Files
DEFAULT_FILE_TO_DEFAULT_LANGUAGE = true  

The default language can be changed, and additional languages may be installed. However, in the case where a secondary language language version does not exist, and the page is visited with that secondary language set in the browser session, then the content will not display, by default. If the desired behavior is to display default language content, when the secondary language version is missing, then the DEFAULT_CONTENT_TO_DEFAULT_LANGUAGE property should be changed to true.

Widgets, Pages, and Files will display in the default language if the secondary language version does not exist. If this behavior is not desired, setting the properties to false will only display the widget/page/file if the secondary language version also exists.