From 9f59e30168ca4d69012d8d919af9d741e2922f93 Mon Sep 17 00:00:00 2001 From: Tyfon <29051038+tyfon7@users.noreply.github.com> Date: Wed, 29 May 2024 00:47:22 -0700 Subject: [PATCH] Use localized 'BACK' --- Patches/FleaPrevSearchPatches.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Patches/FleaPrevSearchPatches.cs b/Patches/FleaPrevSearchPatches.cs index c6eea13..be598f7 100644 --- a/Patches/FleaPrevSearchPatches.cs +++ b/Patches/FleaPrevSearchPatches.cs @@ -65,7 +65,7 @@ namespace UIFixes var addOfferLayout = ____addOfferButton.GetComponent(); PreviousButton = UnityEngine.Object.Instantiate(____addOfferButton, ____addOfferButton.transform.parent, false); PreviousButton.transform.SetAsFirstSibling(); - PreviousButton.SetRawText("< BACK", 20); + PreviousButton.SetRawText("< " + "back".Localized(), 20); session.RagFair.OnFilterRuleChanged += (source, clear, updateCategories) => OnFilterRuleChanged(__instance, session); @@ -111,6 +111,7 @@ namespace UIFixes addOfferLabel.localPosition = new Vector3(0f, 0f, 0f); // For some reason the widths revert + PreviousButton.SetRawText("< " + "back".Localized(), 20); // Update text in case language changes var prevButtonLayout = PreviousButton.GetComponent(); prevButtonLayout.minWidth = -1; prevButtonLayout.preferredWidth = -1;