Skip to content

Commit

Permalink
Switch over to new string extraction system
Browse files Browse the repository at this point in the history
  • Loading branch information
dseguin committed Nov 30, 2021
1 parent 58050a9 commit b1479d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lang/string_extractor/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .parsers.ammunition_type import parse_ammunition_type
from .parsers.bionic import parse_bionic
from .parsers.body_part import parse_body_part
from .parsers.character_mod import parse_character_mod
from .parsers.clothing_mod import parse_clothing_mod
from .parsers.construction import parse_construction
from .parsers.construction_category import parse_construction_category
Expand All @@ -25,6 +26,7 @@
from .parsers.item_category import parse_item_category
from .parsers.json_flag import parse_json_flag
from .parsers.keybinding import parse_keybinding
from .parsers.limb_score import parse_limb_score
from .parsers.loot_zone import parse_loot_zone
from .parsers.map_extra import parse_map_extra
from .parsers.mapgen import parse_mapgen
Expand Down Expand Up @@ -96,6 +98,7 @@ def dummy_parser(json, origin):
"body_part": parse_body_part,
"book": parse_generic,
"butchery_requirement": dummy_parser,
"character_mod": parse_character_mod,
"charge_removal_blacklist": dummy_parser,
"city_building": dummy_parser,
"clothing_mod": parse_clothing_mod,
Expand Down Expand Up @@ -133,6 +136,7 @@ def dummy_parser(json, origin):
"item_group": dummy_parser,
"json_flag": parse_json_flag,
"keybinding": parse_keybinding,
"limb_score": parse_limb_score,
"loot_zone": parse_loot_zone,
"magazine": parse_magazine,
"map_extra": parse_map_extra,
Expand Down
5 changes: 5 additions & 0 deletions lang/string_extractor/parsers/character_mod.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from ..write_text import write_text


def parse_character_mod(json, origin):
write_text(json["description"], origin, comment="Description of the character modifier as displayed in the UI")
5 changes: 5 additions & 0 deletions lang/string_extractor/parsers/limb_score.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from ..write_text import write_text


def parse_limb_score(json, origin):
write_text(json["name"], origin, comment="Name of the limb score as displayed in the UI")

0 comments on commit b1479d3

Please sign in to comment.