Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/gamedescription.js
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | else | ||||
teamDescription = teams.map(team => { | teamDescription = teams.map(team => { | ||||
let teamCaption = team == -1 ? | let teamCaption = team == -1 ? | ||||
translate("No Team") : | translate("No Team") : | ||||
sprintf(translate("Team %(team)s"), { "team": +team + 1 }); | sprintf(translate("Team %(team)s"), { "team": +team + 1 }); | ||||
// Translation: Describe players of one team in a selected game, f.e. in the replay- or savegame menu or lobby | // Translation: Describe players of one team in a selected game, f.e. in the replay- or savegame menu or lobby | ||||
return sprintf(translate("%(team)s:\n%(playerDescriptions)s"), { | return sprintf(translate("%(team)s:\n%(playerDescriptions)s"), { | ||||
"team": '[font="sans-bold-14"]' + teamCaption + "[/font]", | "team": setFont(teamCaption, "sans-bold-14"), | ||||
"playerDescriptions": playerDescriptions[team].join("\n") | "playerDescriptions": playerDescriptions[team].join("\n") | ||||
}); | }); | ||||
}); | }); | ||||
if (playerDescriptions.observer) | if (playerDescriptions.observer) | ||||
teamDescription.push(sprintf(translate("%(team)s:\n%(playerDescriptions)s"), { | teamDescription.push(sprintf(translate("%(team)s:\n%(playerDescriptions)s"), { | ||||
"team": '[font="sans-bold-14"]' + translatePlural("Observer", "Observers", playerDescriptions.observer.length) + "[/font]", | "team": setFont(translatePlural("Observer", "Observers", playerDescriptions.observer.length), "sans-bold-14"), | ||||
"playerDescriptions": playerDescriptions.observer.join("\n") | "playerDescriptions": playerDescriptions.observer.join("\n") | ||||
})); | })); | ||||
return teamDescription.join("\n\n"); | return teamDescription.join("\n\n"); | ||||
} | } | ||||
/** | /** | ||||
* Sets an additional map label, map preview image and describes the chosen gamesettings more closely. | * Sets an additional map label, map preview image and describes the chosen gamesettings more closely. | ||||
▲ Show 20 Lines • Show All 213 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator