Skip to content

Fix untranslatable strings from Redirects & Error Tracking#554

Merged
duncanmcclean merged 1 commit into
7.xfrom
redirect-translations
May 5, 2026
Merged

Fix untranslatable strings from Redirects & Error Tracking#554
duncanmcclean merged 1 commit into
7.xfrom
redirect-translations

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

This pull request fixes an issue where several strings introduced in the Redirects & Error Tracking feature could not be translated.

This was happening because the strings were using the generic __() helper (e.g. __('Hits')) instead of the addon-namespaced __('seo-pro::messages.hits') format. Without the namespace, Laravel looks for the translations in the app's core language files rather than the addon's language files, making them impossible to translate.

This PR fixes it by adding the missing translation keys to lang/en/messages.php and updating all references in both Vue components and PHP classes to use the seo-pro::messages.* namespace.

Fixes #551
Caused by #545

@duncanmcclean duncanmcclean merged commit 6ff67ed into 7.x May 5, 2026
14 checks passed
@duncanmcclean duncanmcclean deleted the redirect-translations branch May 5, 2026 08:27
@duncanmcclean duncanmcclean mentioned this pull request May 5, 2026
helloDanuk added a commit to helloDanuk/seo-pro that referenced this pull request May 5, 2026
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.

Translations for __(‘…’)-patterns in the errors & redirects feature

1 participant