You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIAA, translated records should have the same value of the default language record for a field if,
allowLanguageSynchronization=1 for the field
l10n_state has "parent" set for the field (not "custom") or has no definition for the field (e.g. l10n_state is empty where the default would be "parent")
there is a valid language parent, identifiable by the field defined by TCA transOrigPointerField, e.g. l18n_parent
I noticed there are several mismatches for these fields in our site for extension fields, but also core fields such as pages.url, pages.no_search, pages.author etc.
I assume this can happen if:
the TCA configuration was changed after the records were created (and no upgrade wizard supplied or was not executed)
the language parent was changed, e.g. if pages were translated in "free" mode and manually connected afterwards
Possible solution
The "dbdoctor" HealthCheck can
get all fields with allowLanguageSynchronization
For each table / field do a JOIN on the table and compare value of record with value of default lang (if conditions described above are met, e.g. l10n_state etc.)
UPDATE: either
a) set the value to the value of the default language
b) OR change l10n_state for the field from fieldname: "parent" to fieldname: "custom" (if the value differs)
Changing the value might be a problem in some cases (e.g. pages.url) because they should be different for each language and were originally edited as such. So, I think solution b) would be "safer". (but there are also cases with other field where it's the other way around 😦)
The text was updated successfully, but these errors were encountered:
In case TCA allowLanguageSynchronization=1 is set the value of
a translated record should be the same as the value in the
default language, unless l10n_state contains a configuration
for the field != "parent" (e.g. "custom").
In this case the value is inconsistent because "Use value from
default language" is displayed in the BE, but the value is
actually different.
For better consistency, we change the configuration in l10n_state
for these cases to "custom".
Resolves: lolli42#97
AFAIAA, translated records should have the same value of the default language record for a field if,
allowLanguageSynchronization=1
for the fieldl10n_state
has "parent" set for the field (not "custom") or has no definition for the field (e.g. l10n_state is empty where the default would be "parent")transOrigPointerField
, e.g.l18n_parent
I noticed there are several mismatches for these fields in our site for extension fields, but also core fields such as pages.url, pages.no_search, pages.author etc.
I assume this can happen if:
Possible solution
The "dbdoctor" HealthCheck can
allowLanguageSynchronization
l10n_state
etc.)a) set the value to the value of the default language
b) OR change
l10n_state
for the field from fieldname: "parent" to fieldname: "custom" (if the value differs)Changing the value might be a problem in some cases (e.g.
pages.url
) because they should be different for each language and were originally edited as such. So, I think solution b) would be "safer". (but there are also cases with other field where it's the other way around 😦)The text was updated successfully, but these errors were encountered: