Bug #39814

Missing label falls back to English solely

Added by Xavier Perseguers 9 months ago. Updated 9 months ago.

Status:Resolved Start date:2012-08-14
Priority:Must have Due date:
Assignee:Xavier Perseguers % Done:

100%

Category:-
Target version:-
TYPO3 Version:4.6 Complexity:
PHP Version:
Votes: 0

Description

Since #39220, a missing label always falls back to English instead of taking the fall back mechanism introduced in TYPO3 4.6.


Related issues

related to Extbase MVC Framework - Bug #39569: f:translate alternative language translation fails with T... Resolved 2012-08-07
related to Extbase MVC Framework - Bug #36905: f:translate no fallback to default translation using l10n... Resolved 2012-05-07
follows Core - Bug #39220: Non-localized labels do not fall back properly to default... Closed 2012-07-24

Associated revisions

Revision 55c88691
Added by Xavier Perseguers 9 months ago

Revert "[BUGFIX] Invalid fallback for non-localized labels"

This reverts commit d3e812fb175f637b215f65b4e4a971340d0ebede

Real bug is in Extbase: #36905 and #39569

Fixes: #39814
Change-Id: I20a4179f5fc85e7da08fd706fc024ae3590c6954
Reviewed-on: http://review.typo3.org/13801
Reviewed-by: Dominique Feyer
Tested-by: Dominique Feyer
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers

Revision 3372d4a8
Added by Xavier Perseguers 9 months ago

Revert "[BUGFIX] Invalid fallback for non-localized labels"

This reverts commit 1e0e808121febca3da6a300fbbc148c8088b4020

Real bug is in Extbase: #36905 and #39569

Fixes: #39814
Change-Id: I602795bb5c6925cf48fcd5a4eaecfffc95367fcc
Reviewed-on: http://review.typo3.org/13802
Reviewed-by: Dominique Feyer
Tested-by: Dominique Feyer
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers

Revision 54db33d4
Added by Xavier Perseguers 9 months ago

Revert "[BUGFIX] Invalid fallback for non-localized labels"

This reverts commit 55ff38c77f143829ed078e0f7dda12b51d76254b

Real bug is in Extbase: #36905 and #39569

Change-Id: Ie6ff57312aeb359fe4cf359c917274c6b26cbe37
Fixes: #39814
Reviewed-on: http://review.typo3.org/13800
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers

History

Updated by Xavier Perseguers 9 months ago

Parent bug was present in Frontend, not in Backend.

Updated by Xavier Perseguers 9 months ago

Problem located in my case in an Extbase extension because Extbase relies as standard Frontend rendering on config.language_alt to define an alternative language key.

We first have to revert #39220 I'd say because fall back mechanism introduced in 4.6 does not work anymore, it always falls back to English (= source).

By reverting though, we have the bug again in Frontend that a missing translation results in blank output, seems even when using config.language_alt (at least with Extbase).

But then, this config.language_alt is not an option because by reverting the patch, we are forced to set this to "en" in order to tackle with partially translated languages.

BTW, this does not seem to work with Extbase which seems not to properly fall back to the other language.

TYPO3 4.6 introduced a multiple-level fallback which cannot be handled by config.language_alt. I would expect the standard fallback mechanism introduced by TYPO3 4.6 to be automatically taken into account. The question is how? Because then config.alt_language does not make sense anymore.

Updated by Xavier Perseguers 9 months ago

Tested this with a user-defined language, namely de_AT which should automatically fall back to "de" according to documentation :) Then add a partially translated file and you're done!

User-defined language is described for instance here: http://xavier.perseguers.ch/en/tutorials/typo3/articles/managing-localization-files.html#c954

Updated by Markus Klein 9 months ago

Please do not test anything here with Extbase. Current implementation of translation in extbase is plain wrong.
If 4.6+ alternative language does not work at all, and fallback to default language doesn't work either.

[1] changes the translation handling in extbase to be the same as in core.

[1] https://review.typo3.org/13039

Updated by Gerrit Code Review 9 months ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13800

Updated by Gerrit Code Review 9 months ago

Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/13801

Updated by Gerrit Code Review 9 months ago

Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/13802

Updated by Markus Klein 9 months ago

By the way: pibase getLL also does not handle alternative fallback correctly!!

Updated by Gerrit Code Review 9 months ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13800

Updated by Xavier Perseguers 9 months ago

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

Also available in: Atom PDF