Don't Starve

Don't Starve

Combined Status
겨울서리 20 Mar, 2021 @ 1:38am
About Korean mod compatibility
Hello, I'm a Korean translation mode producer.
https://steamproxy.net/sharedfiles/filedetails/?id=1572028757
Most Korean users are using your mods and i do love your mods also.

Unlike English, Korean has a different order of words that make up sentences. For example [img]https://i.imgur.com/QCxrjc6.png[/img]

So I'd like to ask you one thing, it's related to the date notation.
In the United States, it is marked "Day 1, Day 2, Day 3 ···" but in Korea, it is marked as "1일(=day), 2일, 3일 ···"

When using Korean translation mode only, It was resolved by replacing scripts/widgets/uiclock.lua, but it was obvious that was not applied when using the Combined Status mod. [img]https://i.imgur.com/ZDzGa9Z.png[/img]

I saw that your modmain.lua was coded to be compatible with other mods. I tried to understand it and went through trial and error applying it to my mod for a few days. But it didn't work out in the end because my coding skills were very poor.

What I want is (player.age or world day)..GLOBAL.STRINGS.UI.HUD.CLOCKDAY and "left" are replaced with "남음" in seasonclock.lua:247.
Could you help me solve this problem, whether I add it to my mod or to your mod?
Last edited by 겨울서리; 20 Mar, 2021 @ 1:49am
< >
Showing 1-2 of 2 comments
겨울서리 27 Mar, 2021 @ 11:46am 
i resolved word order of date notation, but "left" in seasonclock.lua is beyond me.
겨울서리 28 Mar, 2021 @ 12:42am 
i add this code in my mod modmain.lua
AddSimPostInit(function()
if GLOBAL.KnownModIndex:IsModEnabled("workshop-574636989") then
local sclock = GLOBAL.require("widgets/seasonclock")

local koGetRemainingString = sclock.GetRemainingString or (function() return end)
sclock.GetRemainingString = function(self)
koGetRemainingString(self)

local days_left = ""
days_left = (1-GLOBAL.GetSeasonManager().percent_season) * GLOBAL.GetSeasonManager():GetSeasonLength()

local days_str = STRINGS.UI.HUD.CLOCKDAYS or STRINGS.UI.DEATHSCREEN.DAYS
return math.floor(days_left+0.5) .. " " .. days_str .. "\n" .. "남음"
end
end
end)

finally, "left" is changed by "남음"
< >
Showing 1-2 of 2 comments
Per page: 1530 50