fix(dashboard): zone names in help text and pages come from the locale

Settings help names zones by locale key (expanded when served), the
Property Rent page and the Worlds table name zones in the viewer's
language, and the UGC page drops its own inventory name table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-29 22:06:37 -05:00
parent 1f8dd73e0b
commit ade116c985
4 changed files with 9 additions and 9 deletions

View File

@@ -216,9 +216,10 @@ $(function () {
if (row.state === 'draining') return ' ' + fmt.badge('Moving players', 'warning');
return '';
}
// Zone names in the viewer's language (the live status carries the server's)
function withPending(data) {
return (data.worlds || []).concat((data.startingWorlds || []).map(function (w) {
return { zoneName: w.zoneName, mapID: w.mapID, instanceID: w.property ? '' : w.instanceID, cloneID: w.cloneID || 0, players: 0, state: w.state };
return (data.worlds || []).map(function (w) { return Object.assign({}, w, { zoneName: GameText.zone(w.mapID) }); }).concat((data.startingWorlds || []).map(function (w) {
return { zoneName: GameText.zone(w.mapID), mapID: w.mapID, instanceID: w.property ? '' : w.instanceID, cloneID: w.cloneID || 0, players: 0, state: w.state };
}));
}
var worlds = $('#worldInstancesTable').DataTable({

View File

@@ -8,7 +8,7 @@
<h2 class="mb-1">Property Rent</h2>
<p class="text-body-secondary mb-0">What owners pay for each property world, like live. Rent is taken from the owner's coins when they log in;
if they can't pay, their property is made private after the grace period and stays private until it is paid (nothing on it changes).
Each world starts with its PropertyTemplate rent (Block Yard is free); set a price here to change it, 0 to make it free.</p>
Each world starts with its PropertyTemplate rent ({{ zone_name(1150) }} is free); set a price here to change it, 0 to make it free.</p>
</div>
<div class="alert alert-secondary d-none" id="offNote">Rent is off: turn on <a href="/settings#property_rent_enabled"><code>property_rent_enabled</code></a> in Settings to charge it.</div>
<div class="card">