Skip to content
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

Fix humanization for add nested element button #2654

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

nsaloj
Copy link
Contributor

@nsaloj nsaloj commented Dec 20, 2023

What is this pull request for?

Add new element button is not humanized for nested elements.

Converting nestable_element to a symbol allows us to humanize the nestable element name if a locale translation does not exist, given the i18n helper. See humanize_default_string function.

Screenshots

Before:
Screenshot from 2023-12-19 10-55-59

After:
Screenshot from 2023-12-20 15-41-00

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen
Copy link
Member

tvdeyen commented Dec 23, 2023

Thanks. Could please fix the tests as well?

Converting `nestable_element` to a symbol allows us to humanize the nestable element name.
@tvdeyen tvdeyen force-pushed the fix-humanization-for-add-element branch from d0b4292 to 1281ae7 Compare December 28, 2023 12:01
@tvdeyen tvdeyen added the backport-to-7.0-stable Needs to be backported to 7.0-stable label Dec 28, 2023
@tvdeyen
Copy link
Member

tvdeyen commented Dec 28, 2023

@nsaloj fixed the specs for you. Thanks for fixing this long standing issue.

@tvdeyen tvdeyen enabled auto-merge December 28, 2023 12:02
@tvdeyen tvdeyen merged commit 9cd2a15 into AlchemyCMS:main Dec 28, 2023
32 checks passed
@alchemycms-bot
Copy link
Collaborator

💔 All backports failed

Status Branch Result
7.0-stable Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

backport --pr 2654

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-7.0-stable Needs to be backported to 7.0-stable confirmed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants