EnderIO icon indicating copy to clipboard operation
EnderIO copied to clipboard

Bug Report `loot_capacitor_template` not working as expected

Open mamaruo opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I did not find any existing issues.

Current Behavior

"item.enderio.loot_capacitor_template": "%s %s %s", in language file does not work well. I think the three indicate extra modifier level, extra modifier type, base modifier level. See Crowdin comment for my full understading.

And when I remove spaces, like %s%s%s, the translated name still contains spaces. image

In addition, %[argument_index$]s syntax does not work as well, like %2$s%1$s%s.

Looks like this template didn't work at all.

Expected Behavior

item.enderio.loot_capacitor_template can control the format of loot capacitor's name, so adapt to the language without Spaces and the word order of some languages.

Chinese without spaces looks like this. image

How to Test

  1. Change the item.enderio.loot_capacitor_template in language file of any language.
  2. Move the json to a right path. for me "\resourcepacks\Ender IO localization\assets\enderio\lang\zh_cn.json"
  3. Change game language to what language file in step 2 specifies.
  4. Load the resource pack and find a Loot Capacitor.
  5. See the name.

Local Environment

- **Operating System**: Windows 11
- **Java version**: 17.0.6
- **Minecraft Version**: 1.20.1
- **Version**: 6.1.8-beta
- **Other Mods**: Untranslated Items

Any Additional Information?

No response

mamaruo avatar Jul 30 '24 11:07 mamaruo

Do you have any suggestions on how we could change this template to better suit the needs of the translations? Thanks!

Rover656 avatar Sep 27 '24 11:09 Rover656