Project

General

Profile

Actions

Feature #81738

open

Create new IRRE CE in already translated CE v.7.6.19

Added by Eduard Luft over 7 years ago. Updated over 4 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2017-06-29
Due date:
% Done:

0%

Estimated time:
PHP Version:
7.1
Tags:
Complexity:
Sprint Focus:

Description

Description:
1. Create default plugin with IRRE functionality.
2. Translate it to a language.
3. Go into the translated plugin and create now an IRRE CE.

Expectations:
Should not be possible or translate with warning "inconsistent content detected"

Result:
Translate with sys_language_uid 0... (wrong language)

Actually possible solution:
Using of TCA option: customControls with myUserFuncMethod for disabling create buttons in translated languages

Better solutions:
- New TCA configuration => disable option of the create button in translated languages
- Disable create functionality in translated languages
- Translate into correct language with warning "inconsistent content detected"

TCA configuration:

'ttcontent_pid' => array(
    'exclude' => 0,
    'label' => 'LLL:EXT:'.$_EXTKEY.'/Resources/Private/Language/locallang_be.xlf:'.$tmp_rbc_table.'.ttcontent_pid',
    'config' => array(
        'type' => 'select',
        'renderType' => 'selectSingle',
        'foreign_table' => 'tt_content',
        'foreign_table_where' => 'AND tt_content.pid=###CURRENT_PID### AND tt_content.CType="'.$tmp_rbc_ctype.'"',
        'maxitems' => 1,
        'showPossibleLocalizationRecords' => 1,
        'showRemovedLocalizationRecords' => 1,
        'showAllLocalizationLink' => 1,
        'showSynchronizationLink' => 1,
        'enabledControls' => array(
            'info' => FALSE,
        )
    ),
),

Related issues:
Bug #71596


Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #71596: New Inline records can not be created in translated parent recordClosed2015-11-16

Actions
Related to TYPO3 Core - Bug #84185: Errormessage 'Localization failed' with showSynchronizationLink (IRRE)New2018-03-09

Actions
Actions #1

Updated by Christian Kuhn over 7 years ago

  • Related to Bug #71596: New Inline records can not be created in translated parent record added
Actions #2

Updated by Eduard Luft over 7 years ago

Edit TCA configuration:

    'type' => 'inline',
    'allowed' => 'tt_content',
    'foreign_table' => 'tt_content',
    'foreign_field' => 'tx_table_xyz',
    'foreign_record_defaults' => array(
        'colPos' => '999'
    ),
    'languageField' => 'sys_language_uid',
    'transOrigPointerField' => 'l18n_parent',
    'minitems' => 0,
    'maxitems' => 99,
    'appearance' => array(
        'collapseAll' => 1,
        'expandSingle' => 1,
        'levelLinksPosition' => 'bottom',
        'useSortable' => 1,
        'showPossibleLocalizationRecords' => 1,
        'showRemovedLocalizationRecords' => 1,
        'showAllLocalizationLink' => 1,
        'showSynchronizationLink' => 1,
        'enabledControls' => array(
            'info' => FALSE,
        )
    )

Actions #3

Updated by Eduard Luft over 7 years ago

Edit:

Description:
2. Translate or copy it to a language.

Actions #4

Updated by Riccardo De Contardi over 4 years ago

I tried the following test with TYPO3 9.5.14 and EXT:news (which allows you to add content elements to a new item)

Prerequisites:

1) TYPO3 with at least 2 languages (ITA (default), ENG (ID=1))
2) A sysfolder, translated
3) Latest version of EXT:News

test

1) Create a news record "Test" and translate it ("Test ENG")
2) Open Text ENG > Content elements tab

Results

1) even with "Translation behavior: value of default language", the "Create New" button still works
2) It allows you to create a new content element
3) But after saving it, the element is not present in the list (But it is created, you can see it in list view, and it has [sys_language_uid] = 1 and [l18n_parent] = 0

Actions #5

Updated by Susanne Moog over 4 years ago

  • Related to Bug #84185: Errormessage 'Localization failed' with showSynchronizationLink (IRRE) added
Actions

Also available in: Atom PDF