File tree Expand file tree Collapse file tree 3 files changed +15
-14
lines changed
Lib/test/test_tools/msgfmt_data Expand file tree Collapse file tree 3 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 44 " Project-Id-Version: PACKAGE VERSION\n POT-Creation-Date: 2024-10-26 18:06+0200\n PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n Last-Translator: FULL NAME <EMAIL@ADDRESS>\n Language-Team: LANGUAGE <LL@li.org>\n MIME-Version: 1.0\n Content-Type: text/plain; charset=UTF-8\n Content-Transfer-Encoding: 8bit\n "
55 ],
66 [
7- " abc \u0004 foo " ,
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 \u0004 foo " ,
20+ " bar "
2121 ],
2222 [
23- " xyz \u0004 Multilinestring " ,
24- " Multilinetranslation "
23+ " bar " ,
24+ " baz "
2525 ],
2626 [
2727 " xyz\u0004 foo" ,
2828 " bar"
2929 ],
3030 [
3131 [
32- " abc \u0004 One email sent." ,
32+ " One email sent." ,
3333 0
3434 ],
3535 " One email sent."
3636 ],
3737 [
3838 [
39- " abc \u0004 One email sent." ,
39+ " One email sent." ,
4040 1
4141 ],
4242 " %d emails sent."
4343 ],
4444 [
4545 [
46- " xyz \u0004 One email sent." ,
46+ " abc \u0004 One email sent." ,
4747 0
4848 ],
4949 " One email sent."
5050 ],
5151 [
5252 [
53- " xyz \u0004 One email sent." ,
53+ " abc \u0004 One email sent." ,
5454 1
5555 ],
5656 " %d emails sent."
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments