PrismarineJS / minecraft-data

Language independent module providing minecraft data for minecraft clients, servers and libraries.
https://prismarinejs.github.io/minecraft-data
659 stars 223 forks source link

Internationalization ? #17

Open rom1504 opened 9 years ago

rom1504 commented 9 years ago

Mojang provides Internationalization files in the client jar (for the display names) It might be interesting in the long term to provide that kind of data somehow.

Example in english http://hastebin.com/tisalowasa

01:13 < roblabla> > you need to open 1.8.json 01:13 < roblabla> find the asset you want (probably minecraft/lang/en_GB.json 01:13 < roblabla> and see the associated hash 01:13 < roblabla> for me it's 03f31164d234f10a3230611656332f1756e570a9 01:13 < roblabla> then it's in assets/bojects/03/03f31164d234f10a3230611656332f1756e570a9 01:13 < roblabla> something like that 01:13 < roblabla> 1.8.json is inside .minecraft/assets/index

AlexKvazos commented 9 years ago

Would be very interesting to see this implemented.

rom1504 commented 9 years ago

Really ? How is that useful ? To give the bot commands in an other language ?

rom1504 commented 9 years ago

An easy way to find all these Internationalization files is :

grep -R "language.code=" ~/.minecraft/assets/
Gjum commented 9 years ago

s/internalization/internationalization/g :wink: or short: i18n

rom1504 commented 9 years ago

@Gjum heh, I don't know what you are talking about :P

rom1504 commented 9 years ago

http://minecraft.gamepedia.com/Sounds.json too

rom1504 commented 9 years ago

Plan: have a i18nName field in blocks.json, items.json instead of displayName and a lang.json with the i18nName -> displayName mapping, and let the wrappers to the link when needed.

rom1504 commented 8 years ago

it's in assets/minecraft/lang https://github.com/PrismarineJS/minecraft-jar-extractor/blob/master/downloadDecompile.js can be used to download the client and get that file. (well mainly the downloading an unzipping part)