tiddlywiki-dnd icon indicating copy to clipboard operation
tiddlywiki-dnd copied to clipboard

Localize creature and spell descriptions

Open benwebber opened this issue 5 years ago • 0 comments

Consider a tiddler with the following fields:

Field Value
dnd.creature.size medium
dnd.creature.type humanoid
dnd.creature.tags orc
dnd.creature.alignment chaotic evil

According to the convention in the English material, we should render the description like:

Medium humanoid (orc), chaotic evil

Different languages have different conventions:

Humanoïde (orque) de taille M, chaotique mauvais

We need language-specific template strings to interpolate the field values, translating them where necessary. If a field is missing or empty, it should not appear in the description. For example, if a creature has no tags, we should render:

Medium beast, unaligned

Instead of:

Medium beast (), unaligned

We would use the same system for spell and item descriptions.

benwebber avatar Jan 15 '19 08:01 benwebber