Skip to content

Commit

Permalink
Merge pull request #71333 from BrettDong/translate-gun-use-action
Browse files Browse the repository at this point in the history
Extract use actions of gun items for translation
  • Loading branch information
akrieger authored Jan 29, 2024
2 parents 56c9082 + c602384 commit a60d1e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lang/string_extractor/parsers/gun.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from ..helper import get_singular_name
from .use_action import parse_use_action
from ..write_text import write_text


Expand All @@ -14,6 +15,9 @@ def parse_gun(json, origin):
write_text(json["description"], origin,
comment="Description of gun \"{}\"".format(name))

if "use_action" in json:
parse_use_action(json["use_action"], origin, name)

if "variants" in json:
for variant in json["variants"]:
variant_name = get_singular_name(variant["name"])
Expand Down

0 comments on commit a60d1e4

Please sign in to comment.