🔧 Text to locale

This commit is contained in:
oof2win2
2021-08-14 16:41:24 +00:00
parent 2315b47e4a
commit 26f3dfc038
2 changed files with 5 additions and 2 deletions

View File

@@ -172,4 +172,7 @@ data-misc=Miscellaneous
data-format=__1____2__ data-format=__1____2__
[tree-decon] [tree-decon]
main-tooltip=Toggle fast tree decon main-tooltip=Toggle fast tree decon
enabled=enabled
disabled=disabled
toggle-msg=Fast decon has been

View File

@@ -27,7 +27,7 @@ end)
local status = HasEnabledDecon:get(player) local status = HasEnabledDecon:get(player)
HasEnabledDecon:set(player, not status) HasEnabledDecon:set(player, not status)
Gui.toolbar_button_style(element, not status) Gui.toolbar_button_style(element, not status)
player.print("Fast decon has been " .. (status and "disabled" or "enabled")) player.print({'tree-decon.toggle-msg'} .. " " .. (status and {'tree-decon.disabled'} or {'tree-decon.enabled'}))
end) end)