Closed paulevsGitch closed 1 year ago
Can you provide an example? Translations seem to work fine on my end
Yes, here it is, all blocks have correct translation key, and StAPI shows that it loads translation file:
But in game they don't get names, and HowManyItem shows them as not translated (I thought that it was HMI bug first, but without it situation was the same). After that I tried to load names manually and that worked fine, so I think that it probably is a StAPI bug. Same translations worked fine in older StAPI versions
Can you provide an example? Translations seem to work fine on my end
Yes, here it is, all blocks have correct translation key, and StAPI shows that it loads translation file:
But in game they don't get names, and HowManyItem shows them as not translated (I thought that it was HMI bug first, but without it situation was the same). After that I tried to load names manually and that worked fine, so I think that it probably is a StAPI bug. Same translations worked fine in older StAPI versions
StAPI automatically prepends modid to all translation keys in automatically resolved .lang files, so this seems to work as intended. Try prepending modid to the translation key when registering the block, or use .setTranslationKey(ModID, String) from BlockTemplate interface
Try prepending modid to the translation key
Thank you, that worked, my quick fix looks like this: block.setTranslationKey(id.toString());
Fixed with d7551b8f63b717026adf14b0b3ffacfa0b703a7c
Small list of issues in latest StAPI (d6d50a4) that I found: