Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize creature and spell descriptions #4

Open
benwebber opened this issue Jan 15, 2019 · 0 comments
Open

Localize creature and spell descriptions #4

benwebber opened this issue Jan 15, 2019 · 0 comments
Labels
enhancement New feature or request i18n

Comments

@benwebber
Copy link
Owner

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 benwebber added enhancement New feature or request i18n labels Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request i18n
Projects
None yet
Development

No branches or pull requests

1 participant