maruohon / malilib

Library mod for masa's client-side Minecraft mods
GNU Lesser General Public License v3.0
294 stars 124 forks source link

Fixed list search in English only. #66

Closed LingMuQingYu closed 2 years ago

LingMuQingYu commented 2 years ago

This is the Chinese configuration file of "Tweakeroo". https://github.com/liuzhengjin/tweakeroo/blob/fabric_1.18_temp_features/src/main/resources/assets/tweakeroo/lang/zh_cn.json image

maruohon commented 2 years ago

I added this locally, as well as a couple of other toLowerCase() fixes/improvements.

Also malilib now tries config.comment.foobar and config.name.foobar first for the comment and config display name localizations respectively. foobar here is the config name lowercased, so for example:

"config.name.tweakaccurateblockplacement": "Accurate Block Placement"

If those don't have a localization string then it uses the old comment string and config name string as-is like it used to (still tries to localize that as well though...).

These changes will go to the 1.18.1 malilib. They will also come to all older MC versions at some point, once the big rewrite from 1.12.2 is ready to be ported, where these improvements/changes/fixes were done a long time ago already.