From e551abda7aeabdbef1a143f6a4129ac7944c224f Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 5 Apr 2022 23:54:15 -0500 Subject: [PATCH] Use client-side locale strings for labels --- scripts/client/label.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/client/label.js b/scripts/client/label.js index 52d07c8a..8fe4787a 100644 --- a/scripts/client/label.js +++ b/scripts/client/label.js @@ -123,11 +123,11 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price, break; case VRR_PROPLABEL_INFO_BUY: - infoText = getLocaleString("BuyBusinessItemsLabel"); + infoText = getLocaleString("BusinessBuyItemsLabel"); break; case VRR_PROPLABEL_INFO_BUYBIZ: - infoText = getLocaleString("BuyBusinessLabel"); + infoText = getLocaleString("PropertyForSaleLabel"); break; //case VRR_PROPLABEL_INFO_RENTBIZ: @@ -135,11 +135,11 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price, // break; case VRR_PROPLABEL_INFO_BUYHOUSE: - infoText = getLocaleString("BuyHouseLabel"); + infoText = getLocaleString("PropertyForSaleLabel"); break; case VRR_PROPLABEL_INFO_RENTHOUSE: - infoText = getLocaleString("RentHouseLabel"); + infoText = getLocaleString("PropertyForRentLabel"); break; case VRR_PROPLABEL_INFO_ENTERVEH: @@ -222,15 +222,15 @@ function renderJobLabel(name, position, jobType) { let text = ""; if(jobType == localPlayerJobType) { if(localPlayerWorking) { - text = "Use /uniform and /equip for job stuff, or /stopwork to go off duty"; + text = getLocaleString("JobEquipAndUniformLabel"); } else { - text = "Use /startwork to go on duty"; + text = getLocaleString("StartWorkLabel"); } } else { if(localPlayerJobType == 0) { - text = "Use /takejob to work here"; + text = getLocaleString("TakeJobLabel"); } else { - text = "You already have a job. Use /quitjob if you want this one"; + text = getLocaleString("NotYourJobLabel"); } }