Skip to content

Conversation

@calien666
Copy link
Member

@calien666 calien666 commented Feb 27, 2025

Fixes #434

@calien666 calien666 requested a review from sbuerk February 27, 2025 13:52
Beside a quite big testing setup, the extension did not test basic
page translations and translation tests with b13/container activated.

Due to this lack of missing translation tests, issues where encountered,
which could be avoided if tests where given.

This commit adds tests for three things:

1. Basic page translation
2. Translation of added l10n_mode fields
3. Translation of content elements inside b13/container
With the behaviour change of our translations using an own DataHandler
command, the b13/container hooks weren't able to detect their respective
inline content elements.

With this change the class override for containers CommandMapPostProcessingHook
is refactored.

Two chaned where done:

1. add own `processCmdmap_postProcess` method checking for our internal
translation
2. validate the need of the old `localizeOrCopyToLanguage` method not longer
needed and remove

The Test added before validates, the method is no longer needed and therefore
a removal is provided avoiding issues with changed code in original class.
The `processCmdmap_postProcess` method only checks for internal DataHandler
command and if not executed, calls the parent method keeping behaviour
unchanged.
@calien666 calien666 merged commit 4e70ff0 into main Feb 27, 2025
9 checks passed
@calien666 calien666 deleted the bugfix/issue-434 branch February 27, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] elements in a container are not translated

3 participants