Difference between revisions of "Localization"
(Created page with "Therefore Games are currently in the process of adding [https://en.wikipedia.org/wiki/Internationalization_and_localization localization support] to DemonCrawl. As of v1.53, m...")
Revision as of 22:04, 31 July 2020
Therefore Games are currently in the process of adding localization support to DemonCrawl. As of v1.53, many strings can already be replaced through an external JSON file.
If you would like to translate DemonCrawl to another language--or if you simply want to swap out some item text with dank memes--this page will serve as a guide to help you get started.
DemonCrawl loads all of its strings on startup from the following file:
[Your Steam installation folder]\steamapps\Common\DemonCrawl\assets\strings\YourLanguage.json
Note: Many English strings are already hardcoded into the game and thus do not have to be included in your JSON file. If a string is missing from your JSON, DemonCrawl will fallback to the hardcoded English string.
You may switch your active language at the top of the Gameplay Options screen:
The list of languages is determined by the files found at the aforementioned path. If you wanted to translate DemonCrawl to Klingon, for example, you would first need to create a file called Klingon.json.
In your DemonCrawl installation folder, you will find a file called Demo.json which contains every external string currently supported by the game. We recommend skimming through this file to get a better understanding of JSON formatting and DemonCrawl's key naming conventions. Do note that JSON is cAsE SeNsiTive.
Here are some examples:
- "Item":"Your Item Title"
- "Item_desc":"Your item description."
- "Item_msg":"A toast notification related to your item."
- "Brass Knuckles":"Brass Knuckles"
- "Brass Knuckles_desc":"For the next 10 turns, you can powerchord any cell."
- "Apple_msg":"Your Brass Knuckles broke!"
Items may have multiple toast notifications, which are often suffixed with SUCCESS, FAIL, or any of DemonCrawl's event triggers: