Skip to content

Commit d0deb00

Browse files
authored
Add 'no-c-format' hint in JSON flag translations (#54637)
1 parent 09fc8ed commit d0deb00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lang/string_extractor/parsers/json_flag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
def parse_json_flag(json, origin):
55
if "info" in json:
6-
write_text(json["info"], origin, comment=[
6+
write_text(json["info"], origin, c_format=False, comment=[
77
"Please leave anything in <angle brackets> unchanged.",
88
"Description of JSON flag \"{}\"".format(json["id"])
99
])
1010
if "restriction" in json:
11-
write_text(json["restriction"], origin,
11+
write_text(json["restriction"], origin, c_format=False,
1212
comment="Description of restriction of JSON flag \"{}\""
1313
.format(json["id"]))

0 commit comments

Comments
 (0)