Bug #91721

stdWrap.lang does not support fallbacks of custom languages

Added by Christoph Lehmann over 1 year ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
Start date:
2020-06-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/Internationalization/ManagingTranslations.html#custom-languages mentions how to use custom languages.

Here i define that de_AT should fallback to de, if no label is available in de_AT:

$GLOBALS['TYPO3_CONF_VARS']['SYS']['localization']['locales']['dependencies']['de_AT'] = ['de'];

This works pretty well for language files, but the functionality is still missing in stdwrap_lang. Given i visit the page in de_AT with

page.30 = TEXT
page.30.value = EN
page.30.lang.de = DE
#page.30.lang.de_AT = DE AT

I except to see DE, but i see EN.


Related issues

Related to TYPO3 Core - Bug #87712: stdWrap.lang does not use Site HandlingClosedBenni Mack2019-02-14

Actions
#1

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64945

#2

Updated by Christoph Lehmann over 1 year ago

Furthermore i ask me, if

$GLOBALS['TYPO3_CONF_VARS']['SYS']['localization']['locales']['dependencies']

is somehow doubled with 'fallbacks' in site language configuration

languages:
  -
    title: de_AT
    enabled: true
    base: /at/
    typo3Language: de_AT
    locale: de_AT.UTF-8
    iso-639-1: de
    websiteTitle: ''
    navigationTitle: AT
    hreflang: de-AT
    direction: ''
    fallbackType: fallback
    fallbacks: '3'
    flag: de
    languageId: '2'
#3

Updated by Christoph Lehmann over 1 year ago

  • Related to Bug #87712: stdWrap.lang does not use Site Handling added
#4

Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64945

#5

Updated by Gerrit Code Review 7 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64945

#6

Updated by Gerrit Code Review 7 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64945

#7

Updated by Gerrit Code Review about 1 month ago

Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71912

#8

Updated by Christoph Lehmann about 1 month ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF