Project Zomboid

Project Zomboid

Udderly Knocked Out
源点 10 Feb, 2023 @ 5:03am
Translation issues
During the process of MOD translation, the interface's Respawn profession column has been unable to translate. I changed the file code, and now it can be translated. "RespawnProfession.lua" I only pasted part of the code, and just replace it. Please modify it in the file as follows:

  • RespawnProfession.lua
    function Respawn.CreateRespawnProfession() local prof = ProfessionFactory.addProfession(Respawn.Id, getText("UI_prof_respawn"), "knockedOutStars", 0); Respawn.CreateRespawnTrait(); prof:addFreeTrait(Respawn.Id); return prof; end function Respawn.CreateRespawnTrait() TraitFactory.addTrait(Respawn.Id, getText("UI_prof_respawn"), 0, "Reject zombiehood", true, false); local traits = TraitFactory.getTraits(); for i = 0, traits:size() - 1 do TraitFactory.setMutualExclusive(Respawn.Id, traits:get(i):getType()); end end

  • UI_EN.txt
    UI_EN = { UI_prof_respawn = "I was only knocked out, I'm waking up now..", }
Last edited by 源点; 10 Feb, 2023 @ 5:14am