Sjouwer / pick-block-pro

An advanced client side Block, Entity, NBT, Tool and ID picker for minecraft
https://modrinth.com/mod/pick-block-pro
GNU Lesser General Public License v3.0
9 stars 5 forks source link

one question #7

Closed buiawpkgew1 closed 2 years ago

buiawpkgew1 commented 2 years ago

How to write in multiple languages, can you teach it?

Sjouwer commented 2 years ago

I assume you mean being able to have text translated? You need to use Text.Translatable() As for the config translations, that's being handled by Cloth Config (autoconfig).

You can find more info here: https://fabricmc.net/wiki/tutorial:lang

Let me know if you still got some questions

buiawpkgew1 commented 2 years ago

I assume you mean being able to have text translated? You need to use Text.Translatable() As for the config translations, that's being handled by Cloth Config (autoconfig).

You can find more info here: fabricmc.net/wiki/tutorial:lang

Let me know if you still got some questions

Thank you

buiawpkgew1 commented 2 years ago

I assume you mean being able to have text translated? You need to use Text.Translatable() As for the config translations, that's being handled by Cloth Config (autoconfig).

You can find more info here: fabricmc.net/wiki/tutorial:lang

Let me know if you still got some questions

i don't need the item such as chat history and ui

Sjouwer commented 2 years ago

Check the "Using custom translatable text" part of the wiki page

buiawpkgew1 commented 2 years ago

Check the "Using custom translatable text" part of the wiki page

how to add such image

Sjouwer commented 2 years ago

Where is this from? It's difficult to tell what Setting expects for you. I can imagine it's something that already makes it translatable for you if you provide only a key

buiawpkgew1 commented 2 years ago

这是从哪里来的?很难说出对你的期望。我可以想象,如果您只提供一个密钥,它已经可以为您翻译Setting

Only translate name and description image The original picture

Sjouwer commented 2 years ago

Setting / BoolSetting is from meteor-client and not from Minecraft, it seems they didn't implement a way to make those settings translatable. There's sadly nothing you can do about that except rewriting those yourself

Sjouwer commented 2 years ago

I recommend making an issue about it on their github, since this has nothing to do with this mod I'll be closing this issue now