WebDevStudios / WebDevStudios/custom-post-type-ui

Creating CPT does not respect locale specific replacements

Open
#918 5 comments 0 reactions 1 assignee View on GitHub

@tw2113 is already working on this.

Since Feb 22, 2023.

Dominant language
PHP
Stars
641
Forks
139
PR merge metrics
No merged PRs in 30d

Description

If I want to create a new CPT my typing will be corrected instantly. For example: capital letters are corrected to lower case letters. Special characters are corrected to an underscore "_".

Unfortunately these corrections do not contain locale specific replacements, for example for the German language as seen in WordPress core:

https://github.com/WordPress/WordPress/blob/a39daee51f4ce334c1d597f82f05783f7b20b50c/wp-includes/formatting.php#L1952-L1958

For example: ü=>ue, ä=>ae, ß=>ss, etc.

This function remove_accents contains some more replacements than just for the German language. It would be great if these locale specific replacements would be used in CPT UI too.

Thanks for considering!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.