Custom-Main-Menu icon indicating copy to clipboard operation
Custom-Main-Menu copied to clipboard

localization, can it be done?

Open kreezxil opened this issue 4 years ago • 3 comments

I see there are localization entries for common minecraft elements, however, It doesn't feel like that facility is open for custom localization.

If it is possible, how should it be done,

A small example of what that code would look like in the json and where the lang file should be found would be good.

for example here's the one from minecraft

        "multiplayer":
        {
            "text" : "menu.multiplayer",
            "posX" : 5,
            "posY" : 25,
            "width" : 110,
            "height" : 20,
			"alignment":"top_left",
            "action" :
            {
                "type" : "openGui",
                "gui" : "multiplayer"
            }
        },

and here's the one I tried with the lang file buried in image

		"credits":
		{
			"text" : "svetdraku:menu.credits",
			"posX" : 61,
			"posY" : 65,
			"width" : 55,
			"height" : 20,
			"alignment": "top_left",
			"action" :
			{
				"type": "openGui",
				"gui": "custom.moreCredits"
			}
		},

kreezxil avatar Apr 07 '20 22:04 kreezxil

try just menu.credits

kebabmamedov avatar Apr 09 '20 09:04 kebabmamedov

i tried that too, but it appears to not want to read my lang file from the resource loader loaded folder either.

kreezxil avatar Apr 09 '20 13:04 kreezxil

and from what I can gather when I do that it is looking for minecraft:menu.credits and the internal minecraft localzation not having menu.credits so fail.

kreezxil avatar Apr 09 '20 13:04 kreezxil