Project

General

Profile

Actions

Bug #86972

closed

All Language Content Element are not displayed in default language

Added by Muhammed Alat almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Localization
Target version:
Start date:
2018-11-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
localization, language
Complexity:
medium
Is Regression:
Sprint Focus:

Description

I have tried out a fresh new installation of TYPO3 9.5.1 LTS. After building the structure in the backend, I have configured two languages through the site configuration.

On a page without content elements I first create an entry for the second language. Then:
- create a content element in two different languages --> it work's, OK
- create a content element only in one language --> it's displayed only in the corresponding language, OK
- create a content element for "all languages" (The sys_language_uid value is set to 1) -> Only displayed in the different languages, but not in the default language!

All together there are two bugs. The first one is, if you create a content element for all languages (value -1), the backend breaks in typo3_src-9.5.1/typo3/sysext/core/Classes/Site/Entity/Site.php Line 217 - 223 in the method getLanguageById. This one you can fix by the line:
if ($languageId == -1) $languageId = 0;
at the beginning of the method. This bug is only to get the content element editable in the backend. It has no effect to other behaviors.

The real bug is, that the content element is not displayed in the default language. I don't know any solution for this.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #86623: tt_content - error when language content set to -1Closed2018-10-10

Actions
Related to TYPO3 Core - Bug #87950: No language fallbackClosed2019-03-19

Actions
Actions

Also available in: Atom PDF