Skip to content

Conversation

@calien666
Copy link
Member

The newly added structure with LocalizationModes registered as configurable modes through PHP instead of the hard-coded Localization used the LocalizationController::ACTION_* constants for detecting the EventListener being responsible for a translation mode.

As the JavaScript identifier was taken for the comparison and the identifier was named copy, but the compare-to is named copyFromLanguage, the condition skipped the EventListener instead of building the command map for the DataHandler to work.

Fixes #11

@calien666 calien666 requested a review from sbuerk June 27, 2025 11:02
@calien666 calien666 force-pushed the bugfix/issue-11-copy-mode branch 2 times, most recently from a5a4eed to 774069e Compare June 27, 2025 11:05
The newly added structure with LocalizationModes registered as
configurable modes through PHP instead of the hard-coded Localization
used the `LocalizationController::ACTION_*` constants for detecting
the EventListener being responsible for a translation mode.

As the JavaScript identifier was taken for the comparison and the
identifier was named `copy`, but the compare-to is named
`copyFromLanguage`, the condition skipped the EventListener instead of
building the command map for the DataHandler to work.

Fixes #11
@calien666 calien666 force-pushed the bugfix/issue-11-copy-mode branch from 774069e to a639f83 Compare June 27, 2025 11:50
@sbuerk sbuerk merged commit 06bf268 into main Jun 30, 2025
9 checks passed
@sbuerk sbuerk deleted the bugfix/issue-11-copy-mode branch June 30, 2025 07:31
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] Translate with "copy" mode no longer works in

3 participants