@@ -17,9 +17,8 @@ msgstr ""
1717"Generated-By : Babel 2.17.0\n "
1818
1919#: ../../library/zipapp.rst:2
20- #, fuzzy
2120msgid ":mod:`!zipapp` --- Manage executable Python zip archives"
22- msgstr ":mod:`zipapp` --- 실행 가능한 파이썬 zip 아카이브 관리"
21+ msgstr ":mod:`! zipapp` --- 실행 가능한 파이썬 zip 아카이브 관리"
2322
2423#: ../../library/zipapp.rst:9
2524msgid "**Source code:** :source:`Lib/zipapp.py`"
@@ -57,6 +56,9 @@ msgid ""
5756"$ python myapp.pyz\n"
5857"<output from myapp>"
5958msgstr ""
59+ "$ python -m zipapp myapp -m \" myapp:main\" \n"
60+ "$ python myapp.pyz\n"
61+ "<output from myapp>"
6062
6163#: ../../library/zipapp.rst:40
6264msgid "Command-Line Interface"
@@ -70,7 +72,7 @@ msgstr "명령 줄에서 프로그램으로 호출될 때, 다음 형식이 사
7072
7173#: ../../library/zipapp.rst:44
7274msgid "$ python -m zipapp source [options]"
73- msgstr ""
75+ msgstr "$ python -m zipapp source [options] "
7476
7577#: ../../library/zipapp.rst:48
7678msgid ""
@@ -300,9 +302,8 @@ msgstr ""
300302"클래스에 필요한 메서드를 제공해야 합니다."
301303
302304#: ../../library/zipapp.rst:174
303- #, fuzzy
304305msgid "Added the *filter* and *compressed* parameters."
305- msgstr "*filter*\\ 와 *compressed* 인자를 추가했습니다."
306+ msgstr "*filter*\\ 와 *compressed* 매개 변수를 추가했습니다."
306307
307308#: ../../library/zipapp.rst:179
308309msgid ""
@@ -329,6 +330,9 @@ msgid ""
329330"$ python myapp.pyz\n"
330331"<output from myapp>"
331332msgstr ""
333+ "$ python -m zipapp myapp\n"
334+ "$ python myapp.pyz\n"
335+ "<output from myapp>"
332336
333337#: ../../library/zipapp.rst:198
334338msgid "The same can be done using the :func:`create_archive` function::"
@@ -339,6 +343,8 @@ msgid ""
339343">>> import zipapp\n"
340344">>> zipapp.create_archive('myapp', 'myapp.pyz')"
341345msgstr ""
346+ ">>> import zipapp\n"
347+ ">>> zipapp.create_archive('myapp', 'myapp.pyz')"
342348
343349#: ../../library/zipapp.rst:203
344350msgid ""
@@ -352,6 +358,9 @@ msgid ""
352358"$ ./myapp.pyz\n"
353359"<output from myapp>"
354360msgstr ""
361+ "$ python -m zipapp myapp -p \" /usr/bin/env python\" \n"
362+ "$ ./myapp.pyz\n"
363+ "<output from myapp>"
355364
356365#: ../../library/zipapp.rst:212
357366msgid ""
@@ -365,9 +374,11 @@ msgid ""
365374">>> zipapp.create_archive('old_archive.pyz', 'new_archive.pyz', "
366375"'/usr/bin/python3')"
367376msgstr ""
377+ ">>> import zipapp\n"
378+ ">>> zipapp.create_archive('old_archive.pyz', 'new_archive.pyz', "
379+ "'/usr/bin/python3')"
368380
369381#: ../../library/zipapp.rst:218
370- #, fuzzy
371382msgid ""
372383"To update the file in place, do the replacement in memory using a "
373384":class:`~io.BytesIO` object, and then overwrite the source afterwards. "
@@ -376,7 +387,7 @@ msgid ""
376387" against such errors, but production code should do so. Also, this "
377388"method will only work if the archive fits in memory::"
378389msgstr ""
379- "파일을 제자리에서 갱신하려면, :class:`BytesIO` 객체를 사용하여 메모리에서 치환을 수행한 다음, 나중에 소스를 "
390+ "파일을 제자리에서 갱신하려면, :class:`~io. BytesIO` 객체를 사용하여 메모리에서 치환을 수행한 다음, 나중에 소스를 "
380391"덮어씁니다. 파일을 제자리에서 덮어쓰면 에러로 인해 원본 파일을 손실할 위험이 있음에 유의하십시오. 이 코드는 이러한 에러에 대한 "
381392"보호는 없지만, 프로덕션 코드는 이를 방지해야 합니다. 또한, 이 방법은 아카이브가 메모리에 올라올 수 있을 때만 작동합니다::"
382393
@@ -389,6 +400,12 @@ msgid ""
389400">>> with open('myapp.pyz', 'wb') as f:\n"
390401">>> f.write(temp.getvalue())"
391402msgstr ""
403+ ">>> import zipapp\n"
404+ ">>> import io\n"
405+ ">>> temp = io.BytesIO()\n"
406+ ">>> zipapp.create_archive('myapp.pyz', temp, '/usr/bin/python2')\n"
407+ ">>> with open('myapp.pyz', 'wb') as f:\n"
408+ ">>> f.write(temp.getvalue())"
392409
393410#: ../../library/zipapp.rst:236
394411msgid "Specifying the Interpreter"
@@ -479,7 +496,7 @@ msgstr "pip을 사용하여 모든 응용 프로그램의 종속성을 ``myapp``
479496
480497#: ../../library/zipapp.rst:276
481498msgid "$ python -m pip install -r requirements.txt --target myapp"
482- msgstr ""
499+ msgstr "$ python -m pip install -r requirements.txt --target myapp "
483500
484501#: ../../library/zipapp.rst:280
485502msgid ""
@@ -496,7 +513,7 @@ msgstr "다음과 같이 응용 프로그램을 패키징하십시오:"
496513
497514#: ../../library/zipapp.rst:286
498515msgid "$ python -m zipapp -p \" interpreter\" myapp"
499- msgstr ""
516+ msgstr "$ python -m zipapp -p \" interpreter \" myapp "
500517
501518#: ../../library/zipapp.rst:290
502519msgid ""
@@ -578,7 +595,6 @@ msgid "Formally, the Python zip application format is therefore:"
578595msgstr "따라서 공식적으로 파이썬 zip 응용 프로그램 형식은 다음과 같습니다:"
579596
580597#: ../../library/zipapp.rst:331
581- #, fuzzy
582598msgid ""
583599"An optional shebang line, containing the characters ``b'#!'`` followed by"
584600" an interpreter name, and then a newline (``b'\\ n'``) character. The "
@@ -589,7 +605,7 @@ msgid ""
589605msgstr ""
590606"문자 ``b'#!'``, 인터프리터 이름, 개행 (``b'\\ n'``) 문자를 포함하는 선택적 셔뱅(shebang) 줄. 인터프리터"
591607" 이름은 OS \" 셔뱅\" 처리가 허용하는 모든 것, 또는 윈도우의 파이썬 런처일 수 있습니다. 인터프리터는 윈도우에서는 "
592- "UTF-8로, POSIX에서는 :func:`sys.getfilesystemencoding() `\\ 으로 인코딩되어야 합니다."
608+ "UTF-8로, POSIX에서는 :func:`sys.getfilesystemencoding`\\ 으로 인코딩되어야 합니다."
593609
594610#: ../../library/zipapp.rst:336
595611msgid ""
@@ -619,168 +635,5 @@ msgstr ""
619635
620636#: ../../library/zipapp.rst:11
621637msgid "Executable Zip Files"
622- msgstr ""
623-
624- #~ msgid ""
625- #~ "Optionally, delete the ``.dist-info`` "
626- #~ "directories created by pip in the "
627- #~ "``myapp`` directory. These hold metadata "
628- #~ "for pip to manage the packages, "
629- #~ "and as you won't be making any "
630- #~ "further use of pip they aren't "
631- #~ "required - although it won't do "
632- #~ "any harm if you leave them."
633- #~ msgstr ""
634- #~ "선택적으로, ``myapp`` 디렉터리에 pip이 만든 "
635- #~ "``.dist-info`` 디렉터리를 삭제합니다. 이것들은 pip이 "
636- #~ "패키지를 관리하는 데 필요한 메타 데이터를 담고 "
637- #~ "있으면, pip을 더는 사용하지 않을 것이기 때문에 "
638- #~ "필요하지 않습니다 - 남겨두더라도 아무런 해를 끼치지는 "
639- #~ "않습니다."
640-
641- #~ msgid "Making a Windows executable"
642- #~ msgstr "윈도우 실행 파일 만들기"
643-
644- #~ msgid ""
645- #~ "On Windows, registration of the ``.pyz``"
646- #~ " extension is optional, and furthermore,"
647- #~ " there are certain places that don't"
648- #~ " recognise registered extensions "
649- #~ "\"transparently\" (the simplest example is "
650- #~ "that ``subprocess.run(['myapp'])`` won't find "
651- #~ "your application - you need to "
652- #~ "explicitly specify the extension)."
653- #~ msgstr ""
654- #~ "윈도우에서, ``.pyz`` 확장자의 등록은 선택 사항입니다, "
655- #~ "더군다나 등록된 확장자를 \"투명하게\" 인식하지 못하는 특정"
656- #~ " 장소가 있습니다 (가장 간단한 예는 "
657- #~ "``subprocess.run(['myapp'])``\\이 응용 프로그램을 찾지 "
658- #~ "못하는 것입니다 - 확장자를 명시적으로 지정해야 합니다)"
659- #~ " ."
660-
661- #~ msgid ""
662- #~ "On Windows, therefore, it is often "
663- #~ "preferable to create an executable from"
664- #~ " the zipapp. This is relatively "
665- #~ "easy, although it does require a C"
666- #~ " compiler. The basic approach relies "
667- #~ "on the fact that zipfiles can have"
668- #~ " arbitrary data prepended, and Windows "
669- #~ "exe files can have arbitrary data "
670- #~ "appended. So by creating a suitable "
671- #~ "launcher and tacking the ``.pyz`` file"
672- #~ " onto the end of it, you end"
673- #~ " up with a single-file executable "
674- #~ "that runs your application."
675- #~ msgstr ""
676- #~ "따라서 윈도우에서는, 종종 zipapp에서 실행 파일을 만드는"
677- #~ " 것이 좋습니다. C 컴파일러가 필요하지만, 비교적 "
678- #~ "쉽습니다. 기본 접근법은 zip 파일의 앞에 임의의 "
679- #~ "데이터가 추가될 수 있고, 윈도우 exe 파일에는 "
680- #~ "임의의 데이터가 뒤에 추가될 수 있다는 사실에 "
681- #~ "의존합니다. 따라서 적절한 런처를 만들고 ``.pyz`` "
682- #~ "파일을 그 끝에 붙임으로써, 응용 프로그램을 실행하는 "
683- #~ "단일 파일 실행 파일이 생깁니다."
684-
685- #~ msgid "A suitable launcher can be as simple as the following::"
686- #~ msgstr "적합한 런처는 다음처럼 간단할 수 있습니다::"
687-
688- #~ msgid ""
689- #~ "If you define the ``WINDOWS`` "
690- #~ "preprocessor symbol, this will generate "
691- #~ "a GUI executable, and without it, "
692- #~ "a console executable."
693- #~ msgstr "``WINDOWS`` 전처리기 기호를 정의하면, GUI 실행 파일을 만들고, 그렇지 않으면 콘솔 실행 파일을 만듭니다."
694-
695- #~ msgid ""
696- #~ "To compile the executable, you can "
697- #~ "either just use the standard MSVC "
698- #~ "command line tools, or you can "
699- #~ "take advantage of the fact that "
700- #~ "distutils knows how to compile Python"
701- #~ " source::"
702- #~ msgstr ""
703- #~ "실행 파일을 컴파일하려면, 그냥 표준 MSVC 명령 "
704- #~ "줄 도구를 사용하거나 distutils가 파이썬 소스를 "
705- #~ "컴파일하는 방법을 알고 있다는 사실을 활용할 수 "
706- #~ "있습니다::"
707-
708- #~ msgid ""
709- #~ "The resulting launcher uses the "
710- #~ "\"Limited ABI\", so it will run "
711- #~ "unchanged with any version of Python "
712- #~ "3.x. All it needs is for Python"
713- #~ " (``python3.dll``) to be on the "
714- #~ "user's ``PATH``."
715- #~ msgstr ""
716- #~ "결과 런처는 \"제한된 ABI\"를 사용해서, 모든 버전의"
717- #~ " 파이썬 3.x에서 변경 없이 실행됩니다. "
718- #~ "파이썬(``python3.dll``)이 사용자의 ``PATH``\\에 있기만 하면"
719- #~ " 됩니다."
720-
721- #~ msgid ""
722- #~ "For a fully standalone distribution, you"
723- #~ " can distribute the launcher with "
724- #~ "your application appended, bundled with "
725- #~ "the Python \"embedded\" distribution. This"
726- #~ " will run on any PC with the"
727- #~ " appropriate architecture (32 bit or "
728- #~ "64 bit)."
729- #~ msgstr ""
730- #~ "완전 독립형 배포를 위해서는, 응용 프로그램을 덧붙인 "
731- #~ "런처와 함께 파이썬 \"내장(embedded)\" 배포를 번들로 "
732- #~ "배포할 수 있습니다. 적절한 아키텍처(32비트나 64비트)를 "
733- #~ "갖는 모든 PC에서 실행됩니다."
734-
735- #~ msgid ""
736- #~ "There are some limitations to the "
737- #~ "process of bundling your application "
738- #~ "into a single file. In most, if"
739- #~ " not all, cases they can be "
740- #~ "addressed without needing major changes "
741- #~ "to your application."
742- #~ msgstr ""
743- #~ "응용 프로그램을 단일 파일로 묶는 과정에는 몇 가지"
744- #~ " 제한이 있습니다. 전부는 아니더라도 대부분의 경우 응용"
745- #~ " 프로그램을 크게 변경하지 않고도 해결할 수 있습니다."
746-
747- #~ msgid ""
748- #~ "If you are shipping a Windows "
749- #~ "executable as described above, you "
750- #~ "either need to ensure that your "
751- #~ "users have ``python3.dll`` on their PATH"
752- #~ " (which is not the default behaviour"
753- #~ " of the installer) or you should "
754- #~ "bundle your application with the "
755- #~ "embedded distribution."
756- #~ msgstr ""
757- #~ "위에서 설명한 대로 윈도우 실행 파일을 제공하는 "
758- #~ "경우, 사용자의 PATH에 ``python3.dll``\\이 있는지 "
759- #~ "(설치 프로그램의 기본 동작이 아님) 확인하거나 응용 "
760- #~ "프로그램과 함께 내장 배포를 번들로 제공해야 합니다."
761-
762- #~ msgid ""
763- #~ "The suggested launcher above uses the"
764- #~ " Python embedding API. This means "
765- #~ "that in your application, ``sys.executable``"
766- #~ " will be your application, and *not*"
767- #~ " a conventional Python interpreter. Your"
768- #~ " code and its dependencies need to"
769- #~ " be prepared for this possibility. "
770- #~ "For example, if your application uses"
771- #~ " the :mod:`multiprocessing` module, it will"
772- #~ " need to call "
773- #~ ":func:`multiprocessing.set_executable` to let the"
774- #~ " module know where to find the "
775- #~ "standard Python interpreter."
776- #~ msgstr ""
777- #~ "위에서 제안한 런처는 파이썬 내장(embedding) API를 "
778- #~ "사용합니다. 이는 여러분의 응용 프로그램에서, "
779- #~ "``sys.executable``\\이 일반적인 파이썬 인터프리터가 *아니라*"
780- #~ " 여러분의 응용 프로그램이 된다는 뜻입니다. 코드와 "
781- #~ "종속성은 이 가능성에 대비해야 합니다. 예를 들어, "
782- #~ "응용 프로그램에서 :mod:`multiprocessing` 모듈을 사용하면, "
783- #~ "표준 파이썬 인터프리터를 찾을 위치를 모듈에 알리기 "
784- #~ "위해 :func:`multiprocessing.set_executable`\\을 호출해야 "
785- #~ "합니다."
638+ msgstr "실행 가능한 Zip 파일"
786639
0 commit comments