Translating Default Sheet Settings

When the GM creates a new game, they can be given a menu of default sheet settings. They are presented in the language they were originally written in, but you probably want to translate them too. It turns out, this is pretty easy.

Here’s an example of an old sheet which uses the translation keys for Default Sheet Settings.

Here’s the simple rules:

  • Wherever there is a displayname, add a displaytranslationkey.
  • Where there is a description, add a descriptiontranslationkey.
  • Where there are options, add optiontranslationkeys.

So, you might have, for instance

{
      "attribute": "charname_output",
      "displayname": "Add Character Name To Templates",
      "displaytranslationkey": "add-char-to-templates",
      "type": "select",
      "options": [
        "On|{{charname=@{character_name}}}",
        "Off|charname=@{character_name}"
      ],
      "optiontranslationkeys": [
        "on",
        "off"
      ],
      "default": "charname=@{character_name}",
      "description": "Character names are not added to the roll template by default, and are only displayed as normal in the chat tab as the player/character selected as 'Speaking As'. Turning this option on adds the character making the roll's name to the template, useful for players representing multiple characters.",
      "descriptiontranslationkey": "add-char-to-templates-info"
},Code language: JSON / JSON with Comments (json)

You might need to manually add the keys and values to the translation.json file. In options, don’t include anything after the pipe. So the keys and values from there that you’d need to add to the translation.json key file are:

"add-char-to-templates": "Add Character Name To Templates",
"on": "On",
"off": "Off",
"add-char-to-templates-info": "Character names are not added to the roll template by default, and are only displayed as normal in the chat tab as the player/character selected as 'Speaking As'. Turning this option on adds the character making the roll's name to the template, useful for players representing multiple characters."
Code language: JSON / JSON with Comments (json)

If you are using Default Sheet Settings, it’s laborious but straightforward.

Series Navigation<< Translating rollTemplatesTranslation Complications and CSS Tricks >>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.