Suggestion: Automatic Naming #14

Open
opened 2024-08-08 03:42:49 +02:00 by AlphaLeoli · 1 comment

A change like this should make it a lot easier to make options without having to make a language file unless you really want to customize how your options are named. Everyone who has resource pack options HAS respackopts which means this would make it a lot easier for everyone without causing anything to go wrong. Below are my suggestions on how to do this in a good way.

  1. .*\.(.*)\.title (rpo.somethingHere.title) should display as $1 (somethingHere). This should also work for categories with this regex, meaning something like "rpo.somethingHere.category.title" should display as just "category". An example image is belowimage
  2. everything should have a fallback which is .*\.(.*) displaying as $1. This should make everything that doesn't end in .title (since the thing above overrides) should display as everything after the last dot. For example, "rpo.somethingHere.category.option1" should display as "option1". An example image is below
    image
  3. everything (the two things above) should convert the remaining text from something "likeThis" to something "Like This", while making sure to not have something "likeTHIS" convert to something "Like T H I S", and rather more "Like THIS". basically, it should use the end of an ending lowercase character to put a space rather than the start of any capital letter.

Also, if you think this might make it so it's harder to make a language file to have further customization, then just make it so there's a debug mode or something that undoes these changes (however, debug shouldn't be default)

A change like this should make it a lot easier to make options without having to make a language file unless you really want to customize how your options are named. Everyone who has resource pack options HAS respackopts which means this would make it a lot easier for everyone without causing anything to go wrong. Below are my suggestions on how to do this in a good way. 1. `.*\.(.*)\.title` (rpo.somethingHere.title) should display as `$1` (somethingHere). This should also work for categories with this regex, meaning something like "rpo.somethingHere.category.title" should display as just "category". An example image is below<img width="347" alt="image" src="/attachments/9fe83374-79a0-45f7-b06b-cf4cb5d64281"> 2. everything should have a fallback which is `.*\.(.*)` displaying as `$1`. This should make everything that doesn't end in .title (since the thing above overrides) should display as everything after the last dot. For example, "rpo.somethingHere.category.option1" should display as "option1". An example image is below <img width="311" alt="image" src="/attachments/289dd0b2-4ef6-4e2f-94a2-f5931fb1b05b"> 3. everything (the two things above) should convert the remaining text from something "likeThis" to something "Like This", while making sure to not have something "likeTHIS" convert to something "Like T H I S", and rather more "Like THIS". basically, it should use the end of an ending lowercase character to put a space rather than the start of any capital letter. Also, if you think this might make it so it's harder to make a language file to have further customization, then just make it so there's a debug mode or something that undoes these changes (however, debug shouldn't be default)
Owner

Firest of all: apologies for taking so long to respond.

Although I get that this makes sense, implementing it requires breaking changes in the libjf-config API, so it won't happen before the next "non-trivial" Minecraft version releases.

Firest of all: apologies for taking so long to respond. Although I get that this makes sense, implementing it requires breaking changes in the libjf-config API, so it won't happen before the next "non-trivial" Minecraft version releases.
Comment
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: JfMods/Respackopts#14
No description provided.