Open Discord-Github-Bridge opened 9 months ago
engineersmith_4628 on Discord says
You write the English in and then they save them to some generated file
engineersmith_4628 on Discord says
Personal Assembler - perass
good luck
engineersmith_4628 on Discord says
scene.text(30, "hello world")
=> generates some key likekubejs.ponder.<scene name>.text_1
so it saves its own translation
engineersmith_4628 on Discord says
but I have no idea if it pulls from the lang file each time it displays the text or not - so it's unlikely to help
engineersmith_4628 on Discord says
mhm; I suspect even if I overwrite it - it will choose the en_us that's in the code
when a keybind is changed, f3+t is run
but reload is not run?
maybe force a reload when a keybind has been changed?
engineersmith_4628 on Discord says
f3+t isn't ran on a keybind change
maybe just force it
might have to do that in java
engineersmith_4628 on Discord says
if anything - don't need full reload
engineersmith_4628 on Discord says
just running
kubejs reload client_scripts
as a silent command
like when 'Done' is pressed on the controls screen we do a reload
running a command progammatically is not easy in java
ill have a look for a function to reload client scripts then
engineersmith_4628 on Discord says
If you can figure out how to add your own kubejs event - we can add the command to kubejs when it is fired
yeah i did that
and this event should be fired when controls screen is exited
engineersmith_4628 on Discord says
The second problem is that; if you don't speak English you're just going to see
Press V
and have no idea what it means
ah, i thought we dont have support for other langs yet anyway
screw em'
engineersmith_4628 on Discord says
We don't - but I like to do my best
bloody foreigners
i think just translate the 'Press' part of 'Press v'
how do you know im in england xD
engineersmith_4628 on Discord says
again, it's auto generated
engineersmith_4628 on Discord says
I'm British myself
engineersmith_4628 on Discord says
We can't have args in these translations
engineersmith_4628 on Discord says
they don't accept 'em
must be a way around it tho
engineersmith_4628 on Discord says
Maybe I can go poke the ponderjs gang again
minecraft.getMinecraft().gamesettings as a variable that can be accessed in kubejs (even write to a file and read with kubejs)