Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/reference/civinfo/CivInfoPage.js
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | class CivInfoPage extends ReferencePage | ||||
/** | /** | ||||
* @returns {string} | * @returns {string} | ||||
*/ | */ | ||||
formatEntry(name, tooltip, description) | formatEntry(name, tooltip, description) | ||||
{ | { | ||||
let tooltip_icon = ""; | let tooltip_icon = ""; | ||||
if (tooltip) | if (tooltip) | ||||
tooltip_icon = '[icon="iconInfo" tooltip="' + escapeQuotation(tooltip) + '" tooltip_style="civInfoTooltip"]'; | tooltip_icon = '[icon="iconInfo"]'; | ||||
let description_text = ""; | let description_text = ""; | ||||
if (description) | if (description) | ||||
// Translation: Description of an item in the CivInfo page, on a new line and indented. | // Translation: Description of an item in the CivInfo page, on a new line and indented. | ||||
description_text = sprintf(translate('\n %(description)s'), { "description": description, }); | description_text = sprintf(translate('\n %(description)s'), { "description": description, }); | ||||
return sprintf( | return sprintf( | ||||
// Translation: An entry in the CivInfo Page. The newline and indentation of the description is handled elsewhere. | // Translation: An entry in the CivInfo Page. The newline and indentation of the description is handled elsewhere. | ||||
Show All 18 Lines |
Wildfire Games · Phabricator