Skip to content

Commit

Permalink
Fix error in extracting translatable strings from body_part (CleverRa…
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong authored Feb 5, 2024
1 parent ce1d983 commit bcd1145
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lang/string_extractor/parsers/body_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def parse_body_part(json, origin):
write_text(json["accusative_multiple"], origin,
comment="Accusative name of body part")

write_text(json["encumbrance_text"], origin,
comment="Encumbrance text of body part \"{}\"".format(name))
if "encumbrance_text" in json:
write_text(json["encumbrance_text"], origin,
comment="Encumbrance text of body part \"{}\"".format(name))

write_text(json["heading"], origin,
comment="Heading of body part \"{}\"".format(name))
Expand Down

0 comments on commit bcd1145

Please sign in to comment.