-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUGFIX: Enable translations for overridden selectbox options #3395
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kdambekalns
approved these changes
Aug 9, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good by reading
markusguenther
approved these changes
Oct 12, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works like expected. Thanks @grebaldi for tackling that issue :)
reflexxion
added a commit
to ideenstadtwerke/neos-development-collection
that referenced
this pull request
Nov 23, 2021
When there are disabled `superTypes` in NodeTypes, an exception is thrown. This happens when a superType is disabled in a NodeType and no specific editor is defined. ```yaml 'My.Package:FormElement': superTypes: 'Neos.Form.Builder:FormElement': true 'Neos.Form.Builder:LabelMixin': false 'Neos.Form.Builder:RequiredCheckboxMixin': false properties: property: type: string ui: label: i18n ``` This issue was introduced in neos#3395
neos-bot
pushed a commit
to neos/neos
that referenced
this pull request
Nov 25, 2021
When there are disabled `superTypes` in NodeTypes, an exception is thrown. This happens when a superType is disabled in a NodeType and no specific editor is defined. ```yaml 'My.Package:FormElement': superTypes: 'Neos.Form.Builder:FormElement': true 'Neos.Form.Builder:LabelMixin': false 'Neos.Form.Builder:RequiredCheckboxMixin': false properties: property: type: string ui: label: i18n ``` This issue was introduced in neos/neos-development-collection#3395
neos-bot
pushed a commit
to neos/neos
that referenced
this pull request
Oct 7, 2022
When there are disabled `superTypes` in NodeTypes, an exception is thrown. This happens when a superType is disabled in a NodeType and no specific editor is defined. ```yaml 'My.Package:FormElement': superTypes: 'Neos.Form.Builder:FormElement': true 'Neos.Form.Builder:LabelMixin': false 'Neos.Form.Builder:RequiredCheckboxMixin': false properties: property: type: string ui: label: i18n ``` This issue was introduced in neos/neos-development-collection#3395
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What I did / How I did it
I altered the
NodeTypeConfigurationEnrichmentAspect
so that it takes the node type inheritance chain into account when translating select box option labels in the respective inspector editor configuration.This addresses an issue originally reported in the UI repo: neos/neos-ui#2005
How to verify it
You'll need a mixin NodeType that provides a select box property with internationalized option labels like this:
(let's call this one
Vendor.Site:Mixin.BrandColor
)Then you'll need a second node type that inherits from
Vendor.Site:Mixin.BrandColor
and adds an new internationalized option to the propertybrandColor
:Before the fix the new option will show up as a plain string
"i18n"
.After the fix the new option will show up as an XLIFF-translation address (bound to the node type that added the option).
Additional remarks
Imho, the entire
NodeTypeConfigurationEnrichmentAspect
should actually be moved out of theNeos.Neos
package and into the UI package (All of these translations are an exclusive UI concern). Doing that would be out-of-scope for a bugfix though.Checklist