fix: framerate setting values not translated

This commit is contained in:
MihailRis 2024-07-30 19:45:47 +03:00
parent 63d0c8b01a
commit a2f79e979e
2 changed files with 3 additions and 2 deletions

View File

@ -1,9 +1,9 @@
local tostring_overrides = {}
tostring_overrides["display.framerate"] = function(x)
if x == -1 then
return "V-Sync"
return gui.str("V-Sync")
elseif x == 0 then
return "Unlimited"
return gui.str("Unlimited")
else
return tostring(x)
end

View File

@ -11,6 +11,7 @@ Creator=Автор
Dependencies=Зависимости
Description=Описание
Converting world...=Выполняется конвертация мира...
Unlimited=Неограниченно
error.pack-not-found=Не удалось найти пакет
error.dependency-not-found=Используемая зависимость не найдена