From 98afcb7d2ce473028dc19b082ee456dd0a73b20f Mon Sep 17 00:00:00 2001 From: Uwuewsky <99945024+Uwuewsky@users.noreply.github.com> Date: Sun, 29 Sep 2024 00:01:31 +0800 Subject: [PATCH] Extract blood analysis descriptions and end screen text (#76676) * Extract for i18n blood analysis descriptions of effects * Extract text from the end screen --- lang/string_extractor/parsers/effect_type.py | 5 +++++ lang/string_extractor/parsers/end_screen.py | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/lang/string_extractor/parsers/effect_type.py b/lang/string_extractor/parsers/effect_type.py index 3432ee5329cfc..40a0add71cb0a 100644 --- a/lang/string_extractor/parsers/effect_type.py +++ b/lang/string_extractor/parsers/effect_type.py @@ -96,3 +96,8 @@ def parse_effect_type(json, origin): context="memorial_female", comment="Female memorial remove log of effect type \"{}\"" .format(effect_name)) + + if "blood_analysis_description" in json: + write_text(json["blood_analysis_description"], origin, + comment="Blood analysis description of effect type \"{}\"" + .format(effect_name)) diff --git a/lang/string_extractor/parsers/end_screen.py b/lang/string_extractor/parsers/end_screen.py index db3935de0f187..82ff08ad665e9 100644 --- a/lang/string_extractor/parsers/end_screen.py +++ b/lang/string_extractor/parsers/end_screen.py @@ -2,6 +2,12 @@ def parse_end_screen(json, origin): + if "added_info" in json: + for line in json["added_info"]: + write_text(line[1], origin, + comment="String from the end screen, used in ASCII-art," + " so be aware of the string length.") + if "last_words_label" in json: write_text(json["last_words_label"], origin, comment="String used to label the last word input prompt."