refactor: localize hard-coded strings and translate comments

This commit is contained in:
soarqin committed 2026-06-23 20:58:05 +08:00
1 parent 6e2b21a0a0
commit 34c99701ca
7 files changed
+41 -26

No files matched your search

+1 -1
View File
@@ -469,7 +469,7 @@ public class DysonSpherePatch : PatchImpl<DysonSpherePatch>
var label1 = generator.DefineLabel();
var label2 = generator.DefineLabel();
matcher.MatchForward(false,
// this.stateText.text = "轨道未设置".Translate();
// this.stateText.text = "Standby".Translate();
new CodeMatch(OpCodes.Ldstr, "待机"),
new CodeMatch(OpCodes.Call, AccessTools.Method(typeof(Localization), nameof(Localization.Translate))),
new CodeMatch(OpCodes.Callvirt, AccessTools.PropertySetter(typeof(Text), nameof(Text.text)))