Fix non english locale issue (#368)

* Update cheat.lua

* Update zh-CN.cfg

* Update zh-TW.cfg
This commit is contained in:
2025-02-03 07:43:16 +09:00
committed by GitHub
parent 13248d08dd
commit 420e3cdfca
3 changed files with 6 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ Commands.new("set-always-day", { "exp-commands_cheat.description-always-day" })
else
surface.always_day = state
end
game.print{ "exp-commands_cheat.always-day", format_player_name(player), surface.localised_name, surface.always_day }
game.print{ "exp-commands_cheat.always-day", format_player_name(player), surface.name, surface.always_day }
end)
--- Toggles friendly fire for your force or another
@@ -89,7 +89,7 @@ Commands.new("clear-pollution", { "exp-commands_cheat.description-clear-pollutio
:register(function(player, surface)
--- @cast surface LuaSurface
surface.clear_pollution()
game.print{ "exp-commands_cheat.clear-pollution", format_player_name(player), surface.localised_name }
game.print{ "exp-commands_cheat.clear-pollution", format_player_name(player), surface.name }
end)
--- Toggles pollution being enabled in the game

View File

@@ -38,8 +38,8 @@ arg-surface=位面
arg-amount=數量
cheat-mode=作弊模式現在為 __1__
always-day=__1__ 把在 __2__ 的位面的永久白天設置為 __3__ 。
friendly-fire=__1__ 已為在 __2__ 的位面設定成 __3__ 。
research-all=__1__ 已為在 __2__ 的位面啟用所有科技 。
friendly-fire=__1__ 已為在 __2__ 的勢力設定成 __3__ 。
research-all=__1__ 已為在 __2__ 的勢力啟用所有科技 。
clear-pollution=__1__ 已為在 __2__ 的位面清除所有污染 。
pollution-enabled=__1__ 已設定污染為 __2__ 。
game-speed-set=__1__ 把遊戲速度改成 __2__ 。

View File

@@ -38,8 +38,8 @@ arg-surface=位面
arg-amount=數量
cheat-mode=作弊模式現在為 __1__
always-day=__1__ 把在 __2__ 的位面的永久白天設置為 __3__ 。
friendly-fire=__1__ 已為在 __2__ 的位面設定成 __3__ 。
research-all=__1__ 已為在 __2__ 的位面啟用所有科技 。
friendly-fire=__1__ 已為在 __2__ 的勢力設定成 __3__ 。
research-all=__1__ 已為在 __2__ 的勢力啟用所有科技 。
clear-pollution=__1__ 已為在 __2__ 的位面清除所有污染 。
pollution-enabled=__1__ 已設定污染為 __2__ 。
game-speed-set=__1__ 把遊戲速度改成 __2__ 。