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

ucwords() for field-descriptions is wrong #796

Open
DavidBruchmann opened this issue Jul 30, 2024 · 0 comments
Open

ucwords() for field-descriptions is wrong #796

DavidBruchmann opened this issue Jul 30, 2024 · 0 comments

Comments

@DavidBruchmann
Copy link
Contributor

Describe the bug
Field descriptions are parsed all by ucwords() and are entered in the language files like this.

To Reproduce
Steps to reproduce the behavior:

  1. Create some field(s)
  2. Enter a description with lower case words.
  3. Save
  4. See the fault in the produced extension in the backend or just look in the language files

Expected behavior
That the case of words is kept like written in the extension builder.

Screenshots
If applicable, add screenshots to help explain your problem.

TYPO3 Version

Extension Builder Version:
v11

Additional context
The fault is in LocalizationService:

$labelArray[$property->getDescriptionNamespace()] = Inflector::humanize($property->getDescription());

This shoukld just be

$labelArray[$property->getDescriptionNamespace()] = $property->getDescription();
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

No branches or pull requests

1 participant