Skip to content

Commit 8295b2b

Browse files
committed
Re-apply fix and regenerate snapshots
1 parent bb68538 commit 8295b2b

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

Lib/test/test_tools/msgfmt_data/general.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,53 @@
44
"Project-Id-Version: PACKAGE VERSION\nPOT-Creation-Date: 2024-10-26 18:06+0200\nPO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\nLast-Translator: FULL NAME <EMAIL@ADDRESS>\nLanguage-Team: LANGUAGE <LL@li.org>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\n"
55
],
66
[
7-
"abc\u0004foo",
8-
"bar"
7+
"\n newlines \n",
8+
"\n translated \n"
99
],
1010
[
11-
"bar",
12-
"baz"
11+
"\"escapes\"",
12+
"\"translated\""
1313
],
1414
[
15-
"xyz\u0004\n newlines \n",
16-
"\n translated \n"
15+
"Multilinestring",
16+
"Multilinetranslation"
1717
],
1818
[
19-
"xyz\u0004\"escapes\"",
20-
"\"translated\""
19+
"abc\u0004foo",
20+
"bar"
2121
],
2222
[
23-
"xyz\u0004Multilinestring",
24-
"Multilinetranslation"
23+
"bar",
24+
"baz"
2525
],
2626
[
2727
"xyz\u0004foo",
2828
"bar"
2929
],
3030
[
3131
[
32-
"abc\u0004One email sent.",
32+
"One email sent.",
3333
0
3434
],
3535
"One email sent."
3636
],
3737
[
3838
[
39-
"abc\u0004One email sent.",
39+
"One email sent.",
4040
1
4141
],
4242
"%d emails sent."
4343
],
4444
[
4545
[
46-
"xyz\u0004One email sent.",
46+
"abc\u0004One email sent.",
4747
0
4848
],
4949
"One email sent."
5050
],
5151
[
5252
[
53-
"xyz\u0004One email sent.",
53+
"abc\u0004One email sent.",
5454
1
5555
],
5656
"%d emails sent."
-16 Bytes
Binary file not shown.

Tools/i18n/msgfmt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def make(filename, outfile):
149149
elif l.startswith('msgid') and not l.startswith('msgid_plural'):
150150
if section == STR:
151151
add(msgctxt, msgid, msgstr, fuzzy)
152+
msgctxt = None
152153
if not msgid:
153154
# See whether there is an encoding declaration
154155
p = HeaderParser()

0 commit comments

Comments
 (0)