forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (CleverRaven#77996)
* Update Translate Complex Dialogue mod * Apply suggestions Co-authored-by: Valiant <[email protected]> Co-authored-by: Maleclypse <[email protected]> * Remove old file --------- Co-authored-by: Valiant <[email protected]> Co-authored-by: Maleclypse <[email protected]>
- Loading branch information
1 parent
fcbcd0b
commit 2e504ae
Showing
7 changed files
with
922 additions
and
316 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.