Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec33461

Browse files
[po] auto sync
1 parent 7239d24 commit ec33461

7 files changed

Lines changed: 6132 additions & 6021 deletions

File tree

library/cgi.po

Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.8\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2021-01-01 16:06+0000\n"
17+
"POT-Creation-Date: 2021-02-16 16:33+0000\n"
1818
"PO-Revision-Date: 2020-05-30 11:57+0000\n"
1919
"Last-Translator: nick <[email protected]>, 2020\n"
2020
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -335,71 +335,75 @@ msgstr ""
335335
#: ../../library/cgi.rst:282
336336
msgid ""
337337
"Parse a query in the environment or from a file (the file defaults to "
338-
"``sys.stdin``). The *keep_blank_values* and *strict_parsing* parameters are"
339-
" passed to :func:`urllib.parse.parse_qs` unchanged."
338+
"``sys.stdin``). The *keep_blank_values*, *strict_parsing* and *separator* "
339+
"parameters are passed to :func:`urllib.parse.parse_qs` unchanged."
340340
msgstr ""
341341

342-
#: ../../library/cgi.rst:289
342+
#: ../../library/cgi.rst:286 ../../library/cgi.rst:308
343+
msgid "Added the *separator* parameter."
344+
msgstr ""
345+
346+
#: ../../library/cgi.rst:291
343347
msgid ""
344348
"Parse input of type :mimetype:`multipart/form-data` (for file uploads). "
345349
"Arguments are *fp* for the input file, *pdict* for a dictionary containing "
346350
"other parameters in the :mailheader:`Content-Type` header, and *encoding*, "
347351
"the request encoding."
348352
msgstr ""
349353

350-
#: ../../library/cgi.rst:294
354+
#: ../../library/cgi.rst:296
351355
msgid ""
352356
"Returns a dictionary just like :func:`urllib.parse.parse_qs`: keys are the "
353357
"field names, each value is a list of values for that field. For non-file "
354358
"fields, the value is a list of strings."
355359
msgstr ""
356360

357-
#: ../../library/cgi.rst:298
361+
#: ../../library/cgi.rst:300
358362
msgid ""
359363
"This is easy to use but not much good if you are expecting megabytes to be "
360364
"uploaded --- in that case, use the :class:`FieldStorage` class instead which"
361365
" is much more flexible."
362366
msgstr ""
363367

364-
#: ../../library/cgi.rst:302
368+
#: ../../library/cgi.rst:304
365369
msgid ""
366370
"Added the *encoding* and *errors* parameters. For non-file fields, the "
367371
"value is now a list of strings, not bytes."
368372
msgstr ""
369373

370-
#: ../../library/cgi.rst:309
374+
#: ../../library/cgi.rst:314
371375
msgid ""
372376
"Parse a MIME header (such as :mailheader:`Content-Type`) into a main value "
373377
"and a dictionary of parameters."
374378
msgstr ""
375379

376-
#: ../../library/cgi.rst:315
380+
#: ../../library/cgi.rst:320
377381
msgid ""
378382
"Robust test CGI script, usable as main program. Writes minimal HTTP headers "
379383
"and formats all information provided to the script in HTML form."
380384
msgstr ""
381385

382-
#: ../../library/cgi.rst:321
386+
#: ../../library/cgi.rst:326
383387
msgid "Format the shell environment in HTML."
384388
msgstr ""
385389

386-
#: ../../library/cgi.rst:326
390+
#: ../../library/cgi.rst:331
387391
msgid "Format a form in HTML."
388392
msgstr ""
389393

390-
#: ../../library/cgi.rst:331
394+
#: ../../library/cgi.rst:336
391395
msgid "Format the current directory in HTML."
392396
msgstr ""
393397

394-
#: ../../library/cgi.rst:336
398+
#: ../../library/cgi.rst:341
395399
msgid "Print a list of useful (used by CGI) environment variables in HTML."
396400
msgstr ""
397401

398-
#: ../../library/cgi.rst:342
402+
#: ../../library/cgi.rst:347
399403
msgid "Caring about security"
400404
msgstr ""
401405

402-
#: ../../library/cgi.rst:346
406+
#: ../../library/cgi.rst:351
403407
msgid ""
404408
"There's one important rule: if you invoke an external program (via the "
405409
":func:`os.system` or :func:`os.popen` functions. or others with similar "
@@ -410,37 +414,37 @@ msgid ""
410414
"cannot be trusted, since the request doesn't have to come from your form!"
411415
msgstr ""
412416

413-
#: ../../library/cgi.rst:354
417+
#: ../../library/cgi.rst:359
414418
msgid ""
415419
"To be on the safe side, if you must pass a string gotten from a form to a "
416420
"shell command, you should make sure the string contains only alphanumeric "
417421
"characters, dashes, underscores, and periods."
418422
msgstr ""
419423

420-
#: ../../library/cgi.rst:360
424+
#: ../../library/cgi.rst:365
421425
msgid "Installing your CGI script on a Unix system"
422426
msgstr ""
423427

424-
#: ../../library/cgi.rst:362
428+
#: ../../library/cgi.rst:367
425429
msgid ""
426430
"Read the documentation for your HTTP server and check with your local system"
427431
" administrator to find the directory where CGI scripts should be installed; "
428432
"usually this is in a directory :file:`cgi-bin` in the server tree."
429433
msgstr ""
430434

431-
#: ../../library/cgi.rst:366
435+
#: ../../library/cgi.rst:371
432436
msgid ""
433437
"Make sure that your script is readable and executable by \"others\"; the "
434438
"Unix file mode should be ``0o755`` octal (use ``chmod 0755 filename``). "
435439
"Make sure that the first line of the script contains ``#!`` starting in "
436440
"column 1 followed by the pathname of the Python interpreter, for instance::"
437441
msgstr ""
438442

439-
#: ../../library/cgi.rst:373
443+
#: ../../library/cgi.rst:378
440444
msgid "Make sure the Python interpreter exists and is executable by \"others\"."
441445
msgstr ""
442446

443-
#: ../../library/cgi.rst:375
447+
#: ../../library/cgi.rst:380
444448
msgid ""
445449
"Make sure that any files your script needs to read or write are readable or "
446450
"writable, respectively, by \"others\" --- their mode should be ``0o644`` for"
@@ -455,28 +459,28 @@ msgid ""
455459
"(:envvar:`PYTHONPATH`) to be set to anything interesting."
456460
msgstr ""
457461

458-
#: ../../library/cgi.rst:386
462+
#: ../../library/cgi.rst:391
459463
msgid ""
460464
"If you need to load modules from a directory which is not on Python's "
461465
"default module search path, you can change the path in your script, before "
462466
"importing other modules. For example::"
463467
msgstr ""
464468

465-
#: ../../library/cgi.rst:394
469+
#: ../../library/cgi.rst:399
466470
msgid "(This way, the directory inserted last will be searched first!)"
467471
msgstr ""
468472

469-
#: ../../library/cgi.rst:396
473+
#: ../../library/cgi.rst:401
470474
msgid ""
471475
"Instructions for non-Unix systems will vary; check your HTTP server's "
472476
"documentation (it will usually have a section on CGI scripts)."
473477
msgstr ""
474478

475-
#: ../../library/cgi.rst:401
479+
#: ../../library/cgi.rst:406
476480
msgid "Testing your CGI script"
477481
msgstr ""
478482

479-
#: ../../library/cgi.rst:403
483+
#: ../../library/cgi.rst:408
480484
msgid ""
481485
"Unfortunately, a CGI script will generally not run when you try it from the "
482486
"command line, and a script that works perfectly from the command line may "
@@ -486,17 +490,17 @@ msgid ""
486490
"will most likely send a cryptic error to the client."
487491
msgstr ""
488492

489-
#: ../../library/cgi.rst:410
493+
#: ../../library/cgi.rst:415
490494
msgid ""
491495
"Assuming your script has no syntax errors, yet it does not work, you have no"
492496
" choice but to read the next section."
493497
msgstr ""
494498

495-
#: ../../library/cgi.rst:415
499+
#: ../../library/cgi.rst:420
496500
msgid "Debugging CGI scripts"
497501
msgstr ""
498502

499-
#: ../../library/cgi.rst:419
503+
#: ../../library/cgi.rst:424
500504
msgid ""
501505
"First of all, check for trivial installation errors --- reading the section "
502506
"above on installing your CGI script carefully can save you a lot of time. "
@@ -509,7 +513,7 @@ msgid ""
509513
" your browser of the form:"
510514
msgstr ""
511515

512-
#: ../../library/cgi.rst:432
516+
#: ../../library/cgi.rst:437
513517
msgid ""
514518
"If this gives an error of type 404, the server cannot find the script -- "
515519
"perhaps you need to install it in a different directory. If it gives "
@@ -521,19 +525,19 @@ msgid ""
521525
"same procedure for your own script, you should now be able to debug it."
522526
msgstr ""
523527

524-
#: ../../library/cgi.rst:441
528+
#: ../../library/cgi.rst:446
525529
msgid ""
526530
"The next step could be to call the :mod:`cgi` module's :func:`test` function"
527531
" from your script: replace its main code with the single statement ::"
528532
msgstr ""
529533

530-
#: ../../library/cgi.rst:446
534+
#: ../../library/cgi.rst:451
531535
msgid ""
532536
"This should produce the same results as those gotten from installing the "
533537
":file:`cgi.py` file itself."
534538
msgstr ""
535539

536-
#: ../../library/cgi.rst:449
540+
#: ../../library/cgi.rst:454
537541
msgid ""
538542
"When an ordinary Python script raises an unhandled exception (for whatever "
539543
"reason: of a typo in a module name, a file that can't be opened, etc.), the "
@@ -543,28 +547,28 @@ msgid ""
543547
" or be discarded altogether."
544548
msgstr ""
545549

546-
#: ../../library/cgi.rst:456
550+
#: ../../library/cgi.rst:461
547551
msgid ""
548552
"Fortunately, once you have managed to get your script to execute *some* "
549553
"code, you can easily send tracebacks to the Web browser using the "
550554
":mod:`cgitb` module. If you haven't done so already, just add the lines::"
551555
msgstr ""
552556

553-
#: ../../library/cgi.rst:463
557+
#: ../../library/cgi.rst:468
554558
msgid ""
555559
"to the top of your script. Then try running it again; when a problem "
556560
"occurs, you should see a detailed report that will likely make apparent the "
557561
"cause of the crash."
558562
msgstr ""
559563

560-
#: ../../library/cgi.rst:467
564+
#: ../../library/cgi.rst:472
561565
msgid ""
562566
"If you suspect that there may be a problem in importing the :mod:`cgitb` "
563567
"module, you can use an even more robust approach (which only uses built-in "
564568
"modules)::"
565569
msgstr ""
566570

567-
#: ../../library/cgi.rst:476
571+
#: ../../library/cgi.rst:481
568572
msgid ""
569573
"This relies on the Python interpreter to print the traceback. The content "
570574
"type of the output is set to plain text, which disables all HTML processing."
@@ -574,65 +578,65 @@ msgid ""
574578
"going on, the traceback will be readable."
575579
msgstr ""
576580

577-
#: ../../library/cgi.rst:485
581+
#: ../../library/cgi.rst:490
578582
msgid "Common problems and solutions"
579583
msgstr ""
580584

581-
#: ../../library/cgi.rst:487
585+
#: ../../library/cgi.rst:492
582586
msgid ""
583587
"Most HTTP servers buffer the output from CGI scripts until the script is "
584588
"completed. This means that it is not possible to display a progress report "
585589
"on the client's display while the script is running."
586590
msgstr ""
587591

588-
#: ../../library/cgi.rst:491
592+
#: ../../library/cgi.rst:496
589593
msgid "Check the installation instructions above."
590594
msgstr ""
591595

592-
#: ../../library/cgi.rst:493
596+
#: ../../library/cgi.rst:498
593597
msgid ""
594598
"Check the HTTP server's log files. (``tail -f logfile`` in a separate "
595599
"window may be useful!)"
596600
msgstr ""
597601

598-
#: ../../library/cgi.rst:496
602+
#: ../../library/cgi.rst:501
599603
msgid ""
600604
"Always check a script for syntax errors first, by doing something like "
601605
"``python script.py``."
602606
msgstr ""
603607

604-
#: ../../library/cgi.rst:499
608+
#: ../../library/cgi.rst:504
605609
msgid ""
606610
"If your script does not have any syntax errors, try adding ``import cgitb; "
607611
"cgitb.enable()`` to the top of the script."
608612
msgstr ""
609613

610-
#: ../../library/cgi.rst:502
614+
#: ../../library/cgi.rst:507
611615
msgid ""
612616
"When invoking external programs, make sure they can be found. Usually, this "
613617
"means using absolute path names --- :envvar:`PATH` is usually not set to a "
614618
"very useful value in a CGI script."
615619
msgstr ""
616620

617-
#: ../../library/cgi.rst:506
621+
#: ../../library/cgi.rst:511
618622
msgid ""
619623
"When reading or writing external files, make sure they can be read or "
620624
"written by the userid under which your CGI script will be running: this is "
621625
"typically the userid under which the web server is running, or some "
622626
"explicitly specified userid for a web server's ``suexec`` feature."
623627
msgstr ""
624628

625-
#: ../../library/cgi.rst:511
629+
#: ../../library/cgi.rst:516
626630
msgid ""
627631
"Don't try to give a CGI script a set-uid mode. This doesn't work on most "
628632
"systems, and is a security liability as well."
629633
msgstr ""
630634

631-
#: ../../library/cgi.rst:515
635+
#: ../../library/cgi.rst:520
632636
msgid "Footnotes"
633637
msgstr "备注"
634638

635-
#: ../../library/cgi.rst:516
639+
#: ../../library/cgi.rst:521
636640
msgid ""
637641
"Note that some recent versions of the HTML specification do state what order"
638642
" the field values should be supplied in, but knowing whether a request was "

0 commit comments

Comments
 (0)