Use client-side locale strings for labels

This commit is contained in:
Vortrex
2022-04-05 23:54:15 -05:00
parent 904f89cd47
commit e551abda7a

View File

@@ -123,11 +123,11 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price,
break; break;
case VRR_PROPLABEL_INFO_BUY: case VRR_PROPLABEL_INFO_BUY:
infoText = getLocaleString("BuyBusinessItemsLabel"); infoText = getLocaleString("BusinessBuyItemsLabel");
break; break;
case VRR_PROPLABEL_INFO_BUYBIZ: case VRR_PROPLABEL_INFO_BUYBIZ:
infoText = getLocaleString("BuyBusinessLabel"); infoText = getLocaleString("PropertyForSaleLabel");
break; break;
//case VRR_PROPLABEL_INFO_RENTBIZ: //case VRR_PROPLABEL_INFO_RENTBIZ:
@@ -135,11 +135,11 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price,
// break; // break;
case VRR_PROPLABEL_INFO_BUYHOUSE: case VRR_PROPLABEL_INFO_BUYHOUSE:
infoText = getLocaleString("BuyHouseLabel"); infoText = getLocaleString("PropertyForSaleLabel");
break; break;
case VRR_PROPLABEL_INFO_RENTHOUSE: case VRR_PROPLABEL_INFO_RENTHOUSE:
infoText = getLocaleString("RentHouseLabel"); infoText = getLocaleString("PropertyForRentLabel");
break; break;
case VRR_PROPLABEL_INFO_ENTERVEH: case VRR_PROPLABEL_INFO_ENTERVEH:
@@ -222,15 +222,15 @@ function renderJobLabel(name, position, jobType) {
let text = ""; let text = "";
if(jobType == localPlayerJobType) { if(jobType == localPlayerJobType) {
if(localPlayerWorking) { if(localPlayerWorking) {
text = "Use /uniform and /equip for job stuff, or /stopwork to go off duty"; text = getLocaleString("JobEquipAndUniformLabel");
} else { } else {
text = "Use /startwork to go on duty"; text = getLocaleString("StartWorkLabel");
} }
} else { } else {
if(localPlayerJobType == 0) { if(localPlayerJobType == 0) {
text = "Use /takejob to work here"; text = getLocaleString("TakeJobLabel");
} else { } else {
text = "You already have a job. Use /quitjob if you want this one"; text = getLocaleString("NotYourJobLabel");
} }
} }