Actions
Feature #81738
openCreate new IRRE CE in already translated CE v.7.6.19
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
Actions