From 10b69ba605978c96ec4f3e54ea53d5ce7a23c039 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 5 Apr 2022 06:20:27 -0500 Subject: [PATCH] Use locale system for property labels --- scripts/client/label.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/client/label.js b/scripts/client/label.js index 428fda7a..52d07c8a 100644 --- a/scripts/client/label.js +++ b/scripts/client/label.js @@ -116,18 +116,18 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price, switch(labelInfoType) { case VRR_PROPLABEL_INFO_ENTER: if(enterPropertyKey) { - infoText = `Press ${toUpperCase(getKeyNameFromId(enterPropertyKey))} to enter`; + infoText = getLocaleString("PropertyEnterCommandLabel"); } else { - infoText = `Use /enter to enter`; + infoText = getLocaleString("PropertyEnterKeyPressLabel"); } break; case VRR_PROPLABEL_INFO_BUY: - infoText = `Use /buy to purchase items`; + infoText = getLocaleString("BuyBusinessItemsLabel"); break; case VRR_PROPLABEL_INFO_BUYBIZ: - infoText = `Use /buy to purchase items`; + infoText = getLocaleString("BuyBusinessLabel"); break; //case VRR_PROPLABEL_INFO_RENTBIZ: @@ -135,15 +135,15 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price, // break; case VRR_PROPLABEL_INFO_BUYHOUSE: - infoText = `Use /housebuy to buy this house`; + infoText = getLocaleString("BuyHouseLabel"); break; case VRR_PROPLABEL_INFO_RENTHOUSE: - infoText = `Use /houserent to rent this house`; + infoText = getLocaleString("RentHouseLabel"); break; case VRR_PROPLABEL_INFO_ENTERVEH: - infoText = "Enter a vehicle in the parking lot to buy it"; + infoText = getLocaleString("VehicleDealershipLabel"); break; case VRR_PROPLABEL_INFO_NONE: