Skip to content

[BUGFIX] DPL-158: Use static DeepL Write localization icon#55

Merged
sbuerk merged 1 commit into
mainfrom
task/DPL-158-static-localize-icon
Jul 6, 2026
Merged

[BUGFIX] DPL-158: Use static DeepL Write localization icon#55
sbuerk merged 1 commit into
mainfrom
task/DPL-158-static-localize-icon

Conversation

@sbuerk

@sbuerk sbuerk commented Jul 6, 2026

Copy link
Copy Markdown
Member

Problem

ApplyLocalizationModesEventListener selected a TYPO3 core version
aware icon identifier for the deeplwrite localization mode:

icon: ($majorVersion === 13 ? 'actions-localize-deepl-13' : 'actions-localize-deepl'),

Both identifiers no longer exist, so the localization mode was
rendered without its icon.

Fix

Use the static actions-localize-deepl-write icon registered in
Configuration/Icons.php, matching the TYPO3 v14
DeeplWriteLocalizationHandler which already returns that identifier.
The now obsolete Typo3Version lookup and import are removed.

A codebase-wide check confirmed this was the only remaining
core-version-aware icon usage.

Verification

  • Build/Scripts/runTests.sh -s cgl -n → SUCCESS

Note: Build/Scripts/runTests.sh -s phpstan reports one pre-existing,
unrelated
error in DeeplWritePageViewRegistrationEventListener.php:61
(PageLayoutContext::getNewLanguageOptions()), untouched by this change.

The `ApplyLocalizationModesEventListener` selected a TYPO3 core
version aware icon identifier (`actions-localize-deepl-13` for v13,
`actions-localize-deepl` otherwise). Both identifiers no longer
exist and the localization mode was rendered without its icon.

Use the static `actions-localize-deepl-write` icon registered in
`Configuration/Icons.php` instead, matching the TYPO3 v14
`DeeplWriteLocalizationHandler`. The now obsolete `Typo3Version`
lookup is removed.
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Documentation rendering

You can find files attached to the below linked Workflow Run URL (Logs).

Please note that files only stay for around 5 days!

Name Link
Commit 32d965c
Logs https://github.com/web-vision/deepl-write/actions/runs/28771304492
Documentation https://github.com/web-vision/deepl-write/actions/runs/28771304492/artifacts/8100911640

@sbuerk sbuerk merged commit 349ebf1 into main Jul 6, 2026
8 checks passed
@sbuerk sbuerk deleted the task/DPL-158-static-localize-icon branch July 6, 2026 06:08
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.

1 participant