[TASK] Re-introduce hreflang attribute of site language configuration
The site language's configuration setting "hreflang" was deprecated with #99908, however, it still serves a valid purpose. If working with EXT:seo and the <link rel="alternate"> tags, it is still valid and possible to set a specific "hreflang" attribute. Example setups: * You have "German (Germany)" (which is using de-DE as locale) and "German (Austria)" (which is using de-AT as locale). here you want to set "de" as generic fallback in the "de-DE" locale when using hreflang attributes. * You want to explicitly set "x-default" for a specific language, which is clearly not a valid language key. This change does the following: * It re-adds the hreflang property to be managed by the UI, however it is empty by default and will fallback to the $locale->getName(). * It is not used within the <html lang="..."> attribute anymore as this was a mis-use in the first place (and now properly using just the language key, see https://www.w3.org/International/questions/qa-html-language-declarations.en.html#attributes * The method "SiteLanguage->getHrefLang()" is not deprecated anymore. * The RST is adapted accordingly Still, the relevant information is: The site language configuration option "hreflang" is not relevant anymore for regular websites without rendering hreflang tags, but is now customizable, and has a proper fallback. Resolves: #101160 Resolves: #95798 Related: #99908 Releases: main, 12.4 Change-Id: Ifc5b5b10ba46b4da4abd5c504d4d69f240f2fd02 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79488 Tested-by:Susanne Moog <look@susi.dev> Reviewed-by:
Thomas Hohn <tho@gyldendal.dk> Tested-by:
Jochen <rothjochen@gmail.com> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Susanne Moog <look@susi.dev> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Jochen <rothjochen@gmail.com> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php 0 additions, 3 deletions...ackend/Classes/Controller/SiteConfigurationController.php
- typo3/sysext/backend/Classes/Controller/SiteInlineAjaxController.php 3 additions, 0 deletions...t/backend/Classes/Controller/SiteInlineAjaxController.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSiteLanguage.php 3 additions, 0 deletions...backend/Classes/Form/FormDataProvider/TcaSiteLanguage.php
- typo3/sysext/backend/Configuration/SiteConfiguration/site_language.php 12 additions, 1 deletion...backend/Configuration/SiteConfiguration/site_language.php
- typo3/sysext/backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf 3 additions, 0 deletions...rces/Private/Language/locallang_siteconfiguration_tca.xlf
- typo3/sysext/backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf 3 additions, 0 deletions...s/Private/Language/siteconfiguration_fieldinformation.xlf
- typo3/sysext/core/Classes/Site/Entity/SiteLanguage.php 6 additions, 8 deletionstypo3/sysext/core/Classes/Site/Entity/SiteLanguage.php
- typo3/sysext/core/Documentation/Changelog/12.3/Deprecation-99908-SiteLanguageHreflangSetting.rst 3 additions, 8 deletions...og/12.3/Deprecation-99908-SiteLanguageHreflangSetting.rst
- typo3/sysext/frontend/Classes/DataProcessing/LanguageMenuProcessor.php 1 addition, 1 deletion...frontend/Classes/DataProcessing/LanguageMenuProcessor.php
- typo3/sysext/frontend/Classes/Http/RequestHandler.php 3 additions, 4 deletionstypo3/sysext/frontend/Classes/Http/RequestHandler.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php 0 additions, 7 deletions.../Configuration/ExtensionScanner/Php/MethodCallMatcher.php
Please register or sign in to comment