Use locale system for property labels

This commit is contained in:
Vortrex
2022-04-05 06:20:27 -05:00
parent 0521e28635
commit 10b69ba605

View File

@@ -116,18 +116,18 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price,
switch(labelInfoType) { switch(labelInfoType) {
case VRR_PROPLABEL_INFO_ENTER: case VRR_PROPLABEL_INFO_ENTER:
if(enterPropertyKey) { if(enterPropertyKey) {
infoText = `Press ${toUpperCase(getKeyNameFromId(enterPropertyKey))} to enter`; infoText = getLocaleString("PropertyEnterCommandLabel");
} else { } else {
infoText = `Use /enter to enter`; infoText = getLocaleString("PropertyEnterKeyPressLabel");
} }
break; break;
case VRR_PROPLABEL_INFO_BUY: case VRR_PROPLABEL_INFO_BUY:
infoText = `Use /buy to purchase items`; infoText = getLocaleString("BuyBusinessItemsLabel");
break; break;
case VRR_PROPLABEL_INFO_BUYBIZ: case VRR_PROPLABEL_INFO_BUYBIZ:
infoText = `Use /buy to purchase items`; infoText = getLocaleString("BuyBusinessLabel");
break; break;
//case VRR_PROPLABEL_INFO_RENTBIZ: //case VRR_PROPLABEL_INFO_RENTBIZ:
@@ -135,15 +135,15 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price,
// break; // break;
case VRR_PROPLABEL_INFO_BUYHOUSE: case VRR_PROPLABEL_INFO_BUYHOUSE:
infoText = `Use /housebuy to buy this house`; infoText = getLocaleString("BuyHouseLabel");
break; break;
case VRR_PROPLABEL_INFO_RENTHOUSE: case VRR_PROPLABEL_INFO_RENTHOUSE:
infoText = `Use /houserent to rent this house`; infoText = getLocaleString("RentHouseLabel");
break; break;
case VRR_PROPLABEL_INFO_ENTERVEH: case VRR_PROPLABEL_INFO_ENTERVEH:
infoText = "Enter a vehicle in the parking lot to buy it"; infoText = getLocaleString("VehicleDealershipLabel");
break; break;
case VRR_PROPLABEL_INFO_NONE: case VRR_PROPLABEL_INFO_NONE: