Skip to content

Commit

Permalink
Merge pull request #75253 from Uwuewsky/remove-comment-po
Browse files Browse the repository at this point in the history
Remove bloated comments from translation files, part 2
  • Loading branch information
Maleclypse authored Jul 28, 2024
2 parents 4752f59 + 9abb686 commit 25c1e3b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
6 changes: 2 additions & 4 deletions lang/string_extractor/parsers/furniture.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ def parse_furniture(json, origin):
if "bash" in json:
if "sound" in json["bash"]:
write_text(json["bash"]["sound"], origin,
comment="Bashing sound of furniture \"{}\"".
format(name))
comment="Bashing sound")
if "sound_fail" in json["bash"]:
write_text(json["bash"]["sound_fail"], origin,
comment="Bashing failed sound of furniture \"{}\""
.format(name))
comment="Bashing failed sound")
if "examine_action" in json:
parse_examine_action(json["examine_action"], origin,
"furniture \"{}\"".format(name))
Expand Down
6 changes: 3 additions & 3 deletions lang/string_extractor/parsers/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ def parse_material(json, origin):

if "bash_dmg_verb" in json:
write_text(json["bash_dmg_verb"], origin,
comment="Bash damage verb of material {}".format(name))
comment="Bash damage verb of material")

if "cut_dmg_verb" in json:
write_text(json["cut_dmg_verb"], origin,
comment="Cut damage verb of material {}".format(name))
comment="Cut damage verb of material")

if "dmg_adj" in json:
for i in range(4):
write_text(json["dmg_adj"][i], origin,
comment="Damage adjective of material {}".format(name))
comment="Damage adjective of material")
6 changes: 1 addition & 5 deletions lang/string_extractor/parsers/monster_attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ def parse_monster_attack(json, origin):
"no_dmg_msg_npc",
]:
if key in json:
write_text(
json[key],
origin,
comment='Monster attack "{}" message'.format(json["id"]),
)
write_text(json[key], origin, comment="Monster attack message")
5 changes: 2 additions & 3 deletions lang/string_extractor/parsers/terrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ def parse_terrain(json, origin):
if "bash" in json:
if "sound" in json["bash"]:
write_text(json["bash"]["sound"], origin,
comment="Bashing sound of terrain \"{}\"".format(name))
comment="Bashing sound")
if "sound_fail" in json["bash"]:
write_text(json["bash"]["sound_fail"], origin,
comment="Bashing failed sound of terrain \"{}\""
.format(name))
comment="Bashing failed sound")
if "boltcut" in json:
if "message" in json["boltcut"]:
write_text(json["boltcut"]["message"], origin,
Expand Down

0 comments on commit 25c1e3b

Please sign in to comment.