-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Translate Complex Dialogue mod
- Loading branch information
Showing
7 changed files
with
926 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Use `tools/json_tools/update-translate-dialogue-mod.py` to update the mod. | ||
This update script uses up-to-date strings and `//~` comments as "translation": | ||
```json | ||
{ | ||
"id": "TALK_EXODII_MERCHANT_TalkJob", | ||
"type": "talk_topic", | ||
"dynamic_line": { | ||
"//~": "Business before pleasure. What do you need?", | ||
"str": "Aye, business afore, 'tis said. What'll ye tass to ol' Rubik?" | ||
} | ||
} | ||
vvvvvvvvvvvvvvvvvvvvvvvvv | ||
{ | ||
"id": "TALK_EXODII_MERCHANT_TalkJob", | ||
"type": "talk_topic", | ||
"dynamic_line": { | ||
"concatenate": [ | ||
"Aye, business afore, 'tis said. What'll ye tass to ol' Rubik?", | ||
"\"\n\n[TRANSLATE:] \"", | ||
"Business before pleasure. What do you need?" | ||
] | ||
} | ||
} | ||
``` | ||
|
||
Usage: | ||
* `cd path/to/Cataclysm-DDA/` | ||
* `python3 tools/json_tools/update-translate-dialogue-mod.py` | ||
* then lint via `json_formatter.cgi`, check `doc/JSON_STYLE.md` | ||
* You can also add `"//": "mod_update_script_compact"` to dynamic lines to make the script concatenate that line more compactly and without newlines, which is useful if the original dialog also uses concatenation. |
Oops, something went wrong.