[TASK] Avoid usages of sys_language in site configuration
This patch removes the last remains of sys_language in the site configurations' TCA. Therefore, the TCA of `site` and `site_langauge` is changed to always retrieve possible site languages via an itemsProcFunc, instead of using a relation to sys_language. As new site languages now have to be created in the module directly, a new internal TCA type "siteLanguage" is introduced. The new type behaves similar to type "inline", but contains some necessary features, e.g. unique record selector box next to a "create new" button, which are not available in type "inline". Also some not needed functionality is omitted. Instead of the sys_language records, all available site languages from all existing site configurations are now presented in the selector box. On selecting one of them, a new site language record is created, with most of the fields pre filled. Resolves: #94399 Releases: master Change-Id: I60ac5b4259aa3c9d90a4aba9881bc1dc2341b464 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69188 Tested-by:core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Container/SiteLanguageContainer.ts 578 additions, 0 deletions.../TypeScript/FormEngine/Container/SiteLanguageContainer.ts
- typo3/sysext/backend/Classes/Configuration/TCA/ItemsProcessorFunctions.php 125 additions, 0 deletions...end/Classes/Configuration/TCA/ItemsProcessorFunctions.php
- typo3/sysext/backend/Classes/Configuration/TCA/UserFunctions.php 11 additions, 1 deletion...ysext/backend/Classes/Configuration/TCA/UserFunctions.php
- typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php 74 additions, 0 deletions...ackend/Classes/Controller/SiteConfigurationController.php
- typo3/sysext/backend/Classes/Controller/SiteInlineAjaxController.php 72 additions, 32 deletions...t/backend/Classes/Controller/SiteInlineAjaxController.php
- typo3/sysext/backend/Classes/Form/Container/SiteLanguageContainer.php 208 additions, 0 deletions.../backend/Classes/Form/Container/SiteLanguageContainer.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/SiteTcaInline.php 6 additions, 128 deletions...t/backend/Classes/Form/FormDataProvider/SiteTcaInline.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSiteLanguage.php 340 additions, 0 deletions...backend/Classes/Form/FormDataProvider/TcaSiteLanguage.php
- typo3/sysext/backend/Classes/Form/NodeFactory.php 1 addition, 0 deletionstypo3/sysext/backend/Classes/Form/NodeFactory.php
- typo3/sysext/backend/Configuration/SiteConfiguration/site.php 3 additions, 13 deletions...3/sysext/backend/Configuration/SiteConfiguration/site.php
- typo3/sysext/backend/Configuration/SiteConfiguration/site_language.php 2 additions, 11 deletions...backend/Configuration/SiteConfiguration/site_language.php
- typo3/sysext/backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf 9 additions, 0 deletions...rces/Private/Language/locallang_siteconfiguration_tca.xlf
- typo3/sysext/backend/Resources/Private/Templates/SiteLanguageContainer.html 24 additions, 0 deletions...nd/Resources/Private/Templates/SiteLanguageContainer.html
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Container/SiteLanguageContainer.js 13 additions, 0 deletions.../JavaScript/FormEngine/Container/SiteLanguageContainer.js
- typo3/sysext/core/Configuration/DefaultConfiguration.php 6 additions, 1 deletiontypo3/sysext/core/Configuration/DefaultConfiguration.php
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-94165-SysLanguageDatabaseTable.rst 20 additions, 1 deletion...log/master/Deprecation-94165-SysLanguageDatabaseTable.rst
- typo3/sysext/core/Tests/Acceptance/Backend/Site/SiteModuleCest.php 175 additions, 49 deletions...ext/core/Tests/Acceptance/Backend/Site/SiteModuleCest.php
- typo3/sysext/core/Tests/Acceptance/Backend/Template/TemplateCest.php 3 additions, 3 deletions...t/core/Tests/Acceptance/Backend/Template/TemplateCest.php
Please register or sign in to comment