Skip to content

Commit

Permalink
Add 'no-c-format' hint in JSON flag translations (#54637)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong committed Jan 21, 2022
1 parent 09fc8ed commit d0deb00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/string_extractor/parsers/json_flag.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

def parse_json_flag(json, origin):
if "info" in json:
write_text(json["info"], origin, comment=[
write_text(json["info"], origin, c_format=False, comment=[
"Please leave anything in <angle brackets> unchanged.",
"Description of JSON flag \"{}\"".format(json["id"])
])
if "restriction" in json:
write_text(json["restriction"], origin,
write_text(json["restriction"], origin, c_format=False,
comment="Description of restriction of JSON flag \"{}\""
.format(json["id"]))

0 comments on commit d0deb00

Please sign in to comment.