Skip to content

l10nmgr export doesn't include parent records with no translatable fields but only child records #8

@mkarulin

Description

@mkarulin

TYPO3 version 11.5
l10nmgr version: 11.0.0 alpha

Description:
When using l10nmgr export on a parent record that has no translatable fields but only child records with translatable fields, the export file only includes the child records and not the parent record. This can result in the child records being attached to the default language record instead of the translated parent record when importing the translation.

Steps to reproduce:

Install the typo3/cms-styleguide extension.
Create a new folder with a l10nmgr configuration.
Copy the styleguide example page "inline_1n" to that folder.
Export the page in a different language using l10nmgr.
Check the resulting export file to see if the parent record is included.
Expected result:
The export file should include both the parent record and the child records.

Actual result:
The export file only includes the child records.
After importing the file, child records are added to the default language with incorrect language, corruping it, and any further attemt to export/import will result in error:
0 => '[1.6.-1]: Localization failed: there already are localizations (23) for lang
uage 1 of the "tx_styleguide_inline_1n_child" record 25!' (132 chars)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions