From 25375cb3a98048f093d081b84c95022d3a9c3903 Mon Sep 17 00:00:00 2001 From: Sab Pyrope Date: Thu, 26 Sep 2024 14:40:55 +0800 Subject: [PATCH 1/2] Extract for i18n blood analysis descriptions of effects --- lang/string_extractor/parsers/effect_type.py | 5 +++++ 1 file changed, 5 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)) From 06b53b9ab0239a7589d494acbc0cb7986ee52256 Mon Sep 17 00:00:00 2001 From: Sab Pyrope Date: Thu, 26 Sep 2024 18:18:10 +0800 Subject: [PATCH 2/2] Extract text from the end screen --- lang/string_extractor/parsers/end_screen.py | 6 ++++++ 1 file changed, 6 insertions(+) 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."