From 53f9747b581d580f3ec3820fcc0e159112a3c50f Mon Sep 17 00:00:00 2001 From: Jackson Date: Sat, 8 Jul 2023 17:07:01 +0800 Subject: [PATCH 01/10] [UPDATE] translate `library/venv.po` --- library/cpython | 1 + library/venv.po | 393 ++++++++++++++++++++---------------------------- 2 files changed, 165 insertions(+), 229 deletions(-) create mode 160000 library/cpython diff --git a/library/cpython b/library/cpython new file mode 160000 index 00000000000..2ef1dc37f02 --- /dev/null +++ b/library/cpython @@ -0,0 +1 @@ +Subproject commit 2ef1dc37f02b08536b677dd23ec51541a60effd7 diff --git a/library/venv.po b/library/venv.po index afe3f38074f..d43912fa109 100644 --- a/library/venv.po +++ b/library/venv.po @@ -8,15 +8,15 @@ msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-05-09 00:15+0000\n" -"PO-Revision-Date: 2018-05-23 16:15+0000\n" +"PO-Revision-Date: 2023-07-08 16:13+0800\n" "Last-Translator: Adrian Liaw \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" +"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-tw)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 3.3.2\n" #: ../../library/venv.rst:2 msgid ":mod:`venv` --- Creation of virtual environments" @@ -28,20 +28,17 @@ msgstr "**原始碼:**\\ :source:`Lib/venv/`" #: ../../library/venv.rst:21 msgid "" -"The :mod:`!venv` module supports creating lightweight \"virtual " -"environments\", each with their own independent set of Python packages " -"installed in their :mod:`site` directories. A virtual environment is created " -"on top of an existing Python installation, known as the virtual " -"environment's \"base\" Python, and may optionally be isolated from the " -"packages in the base environment, so only those explicitly installed in the " -"virtual environment are available." +"The :mod:`!venv` module supports creating lightweight \"virtual environments\", each with their own " +"independent set of Python packages installed in their :mod:`site` directories. A virtual environment " +"is created on top of an existing Python installation, known as the virtual environment's \"base\" " +"Python, and may optionally be isolated from the packages in the base environment, so only those " +"explicitly installed in the virtual environment are available." msgstr "" #: ../../library/venv.rst:29 msgid "" -"When used from within a virtual environment, common installation tools such " -"as `pip`_ will install Python packages into a virtual environment without " -"needing to be told to do so explicitly." +"When used from within a virtual environment, common installation tools such as `pip`_ will install " +"Python packages into a virtual environment without needing to be told to do so explicitly." msgstr "" #: ../../library/venv.rst:33 @@ -50,9 +47,8 @@ msgstr "更多關於 Python 虛擬環境的背景資訊請見 :pep:`405`\\ 。" #: ../../library/venv.rst:37 msgid "" -"`Python Packaging User Guide: Creating and using virtual environments " -"`__" +"`Python Packaging User Guide: Creating and using virtual environments `__" msgstr "" #: ../../includes/wasm-notavail.rst:3 @@ -61,44 +57,37 @@ msgstr "" #: ../../includes/wasm-notavail.rst:5 msgid "" -"This module does not work or is not available on WebAssembly platforms " -"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " -"more information." +"This module does not work or is not available on WebAssembly platforms ``wasm32-emscripten`` and " +"``wasm32-wasi``. See :ref:`wasm-availability` for more information." msgstr "" #: ../../library/venv.rst:43 msgid "Creating virtual environments" -msgstr "" +msgstr "建立虛擬環境" #: ../../using/venv-create.inc:1 -msgid "" -"Creation of :ref:`virtual environments ` is done by executing the " -"command ``venv``::" +msgid "Creation of :ref:`virtual environments ` is done by executing the command ``venv``::" msgstr "" #: ../../using/venv-create.inc:6 msgid "" -"Running this command creates the target directory (creating any parent " -"directories that don't exist already) and places a ``pyvenv.cfg`` file in it " -"with a ``home`` key pointing to the Python installation from which the " -"command was run (a common name for the target directory is ``.venv``). It " -"also creates a ``bin`` (or ``Scripts`` on Windows) subdirectory containing a " -"copy/symlink of the Python binary/binaries (as appropriate for the platform " -"or arguments used at environment creation time). It also creates an " -"(initially empty) ``lib/pythonX.Y/site-packages`` subdirectory (on Windows, " -"this is ``Lib\\site-packages``). If an existing directory is specified, it " -"will be re-used." +"Running this command creates the target directory (creating any parent directories that don't exist " +"already) and places a ``pyvenv.cfg`` file in it with a ``home`` key pointing to the Python " +"installation from which the command was run (a common name for the target directory is ``.venv``). " +"It also creates a ``bin`` (or ``Scripts`` on Windows) subdirectory containing a copy/symlink of the " +"Python binary/binaries (as appropriate for the platform or arguments used at environment creation " +"time). It also creates an (initially empty) ``lib/pythonX.Y/site-packages`` subdirectory (on " +"Windows, this is ``Lib\\site-packages``). If an existing directory is specified, it will be re-used." msgstr "" #: ../../using/venv-create.inc:17 msgid "" -"``pyvenv`` was the recommended tool for creating virtual environments for " -"Python 3.3 and 3.4, and is :ref:`deprecated in Python 3.6 `." +"``pyvenv`` was the recommended tool for creating virtual environments for Python 3.3 and 3.4, and " +"is :ref:`deprecated in Python 3.6 `." msgstr "" #: ../../using/venv-create.inc:22 -msgid "" -"The use of ``venv`` is now recommended for creating virtual environments." +msgid "The use of ``venv`` is now recommended for creating virtual environments." msgstr "" #: ../../using/venv-create.inc:27 @@ -107,8 +96,8 @@ msgstr "" #: ../../using/venv-create.inc:31 msgid "" -"Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for " -"your :ref:`Python installation `::" +"Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for your :ref:`Python " +"installation `::" msgstr "" #: ../../using/venv-create.inc:36 @@ -116,66 +105,58 @@ msgid "The command, if run with ``-h``, will show the available options::" msgstr "" #: ../../using/venv-create.inc:70 -msgid "" -"Add ``--upgrade-deps`` option to upgrade pip + setuptools to the latest on " -"PyPI" +msgid "Add ``--upgrade-deps`` option to upgrade pip + setuptools to the latest on PyPI" msgstr "" #: ../../using/venv-create.inc:73 -msgid "" -"Installs pip by default, added the ``--without-pip`` and ``--copies`` " -"options" +msgid "Installs pip by default, added the ``--without-pip`` and ``--copies`` options" msgstr "" #: ../../using/venv-create.inc:77 msgid "" -"In earlier versions, if the target directory already existed, an error was " -"raised, unless the ``--clear`` or ``--upgrade`` option was provided." +"In earlier versions, if the target directory already existed, an error was raised, unless the ``--" +"clear`` or ``--upgrade`` option was provided." msgstr "" #: ../../using/venv-create.inc:82 msgid "" -"While symlinks are supported on Windows, they are not recommended. Of " -"particular note is that double-clicking ``python.exe`` in File Explorer will " -"resolve the symlink eagerly and ignore the virtual environment." +"While symlinks are supported on Windows, they are not recommended. Of particular note is that double-" +"clicking ``python.exe`` in File Explorer will resolve the symlink eagerly and ignore the virtual " +"environment." msgstr "" #: ../../using/venv-create.inc:87 msgid "" -"On Microsoft Windows, it may be required to enable the ``Activate.ps1`` " -"script by setting the execution policy for the user. You can do this by " -"issuing the following PowerShell command:" +"On Microsoft Windows, it may be required to enable the ``Activate.ps1`` script by setting the " +"execution policy for the user. You can do this by issuing the following PowerShell command:" msgstr "" #: ../../using/venv-create.inc:91 -msgid "" -"PS C:\\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser" +msgid "PS C:\\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser" msgstr "" #: ../../using/venv-create.inc:93 msgid "" -"See `About Execution Policies `_ for more information." +"See `About Execution Policies `_ for more " +"information." msgstr "" #: ../../using/venv-create.inc:97 msgid "" -"The created ``pyvenv.cfg`` file also includes the ``include-system-site-" -"packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-" -"packages`` option, ``false`` otherwise." +"The created ``pyvenv.cfg`` file also includes the ``include-system-site-packages`` key, set to " +"``true`` if ``venv`` is run with the ``--system-site-packages`` option, ``false`` otherwise." msgstr "" #: ../../using/venv-create.inc:101 msgid "" -"Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be " -"invoked to bootstrap ``pip`` into the virtual environment." +"Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be invoked to bootstrap ``pip`` " +"into the virtual environment." msgstr "" #: ../../using/venv-create.inc:104 msgid "" -"Multiple paths can be given to ``venv``, in which case an identical virtual " -"environment will be created, according to the given options, at each " -"provided path." +"Multiple paths can be given to ``venv``, in which case an identical virtual environment will be " +"created, according to the given options, at each provided path." msgstr "" #: ../../library/venv.rst:50 @@ -184,23 +165,20 @@ msgstr "" #: ../../library/venv.rst:52 msgid "" -"When a Python interpreter is running from a virtual environment, :data:`sys." -"prefix` and :data:`sys.exec_prefix` point to the directories of the virtual " -"environment, whereas :data:`sys.base_prefix` and :data:`sys." -"base_exec_prefix` point to those of the base Python used to create the " -"environment. It is sufficient to check ``sys.prefix != sys.base_prefix`` to " -"determine if the current interpreter is running from a virtual environment." +"When a Python interpreter is running from a virtual environment, :data:`sys.prefix` and :data:`sys." +"exec_prefix` point to the directories of the virtual environment, whereas :data:`sys.base_prefix` " +"and :data:`sys.base_exec_prefix` point to those of the base Python used to create the environment. " +"It is sufficient to check ``sys.prefix != sys.base_prefix`` to determine if the current interpreter " +"is running from a virtual environment." msgstr "" #: ../../library/venv.rst:61 msgid "" -"A virtual environment may be \"activated\" using a script in its binary " -"directory (``bin`` on POSIX; ``Scripts`` on Windows). This will prepend that " -"directory to your :envvar:`!PATH`, so that running :program:`python` will " -"invoke the environment's Python interpreter and you can run installed " -"scripts without having to use their full path. The invocation of the " -"activation script is platform-specific (:samp:`{}` must be replaced by " -"the path to the directory containing the virtual environment):" +"A virtual environment may be \"activated\" using a script in its binary directory (``bin`` on POSIX; " +"``Scripts`` on Windows). This will prepend that directory to your :envvar:`!PATH`, so that running :" +"program:`python` will invoke the environment's Python interpreter and you can run installed scripts " +"without having to use their full path. The invocation of the activation script is platform-specific " +"(:samp:`{}` must be replaced by the path to the directory containing the virtual environment):" msgstr "" #: ../../library/venv.rst:71 @@ -272,61 +250,53 @@ msgid ":program:`fish` and :program:`csh` activation scripts." msgstr "" #: ../../library/venv.rst:89 -msgid "" -"PowerShell activation scripts installed under POSIX for PowerShell Core " -"support." +msgid "PowerShell activation scripts installed under POSIX for PowerShell Core support." msgstr "" #: ../../library/venv.rst:93 msgid "" -"You don't specifically *need* to activate a virtual environment, as you can " -"just specify the full path to that environment's Python interpreter when " -"invoking Python. Furthermore, all scripts installed in the environment " -"should be runnable without activating it." +"You don't specifically *need* to activate a virtual environment, as you can just specify the full " +"path to that environment's Python interpreter when invoking Python. Furthermore, all scripts " +"installed in the environment should be runnable without activating it." msgstr "" #: ../../library/venv.rst:99 msgid "" -"In order to achieve this, scripts installed into virtual environments have a " -"\"shebang\" line which points to the environment's Python interpreter, i.e. :" -"samp:`#!/{}/bin/python`. This means that the script will run " -"with that interpreter regardless of the value of :envvar:`!PATH`. On " -"Windows, \"shebang\" line processing is supported if you have the :ref:" -"`launcher` installed. Thus, double-clicking an installed script in a Windows " -"Explorer window should run it with the correct interpreter without the " -"environment needing to be activated or on the :envvar:`!PATH`." +"In order to achieve this, scripts installed into virtual environments have a \"shebang\" line which " +"points to the environment's Python interpreter, i.e. :samp:`#!/{}/bin/python`. This " +"means that the script will run with that interpreter regardless of the value of :envvar:`!PATH`. On " +"Windows, \"shebang\" line processing is supported if you have the :ref:`launcher` installed. Thus, " +"double-clicking an installed script in a Windows Explorer window should run it with the correct " +"interpreter without the environment needing to be activated or on the :envvar:`!PATH`." msgstr "" #: ../../library/venv.rst:108 msgid "" -"When a virtual environment has been activated, the :envvar:`!VIRTUAL_ENV` " -"environment variable is set to the path of the environment. Since explicitly " -"activating a virtual environment is not required to use it, :envvar:`!" -"VIRTUAL_ENV` cannot be relied upon to determine whether a virtual " +"When a virtual environment has been activated, the :envvar:`!VIRTUAL_ENV` environment variable is " +"set to the path of the environment. Since explicitly activating a virtual environment is not " +"required to use it, :envvar:`!VIRTUAL_ENV` cannot be relied upon to determine whether a virtual " "environment is being used." msgstr "" #: ../../library/venv.rst:114 msgid "" -"Because scripts installed in environments should not expect the environment " -"to be activated, their shebang lines contain the absolute paths to their " -"environment's interpreters. Because of this, environments are inherently non-" -"portable, in the general case. You should always have a simple means of " -"recreating an environment (for example, if you have a requirements file " -"``requirements.txt``, you can invoke ``pip install -r requirements.txt`` " -"using the environment's ``pip`` to install all of the packages needed by the " -"environment). If for any reason you need to move the environment to a new " -"location, you should recreate it at the desired location and delete the one " -"at the old location. If you move an environment because you moved a parent " -"directory of it, you should recreate the environment in its new location. " -"Otherwise, software installed into the environment may not work as expected." +"Because scripts installed in environments should not expect the environment to be activated, their " +"shebang lines contain the absolute paths to their environment's interpreters. Because of this, " +"environments are inherently non-portable, in the general case. You should always have a simple means " +"of recreating an environment (for example, if you have a requirements file ``requirements.txt``, you " +"can invoke ``pip install -r requirements.txt`` using the environment's ``pip`` to install all of the " +"packages needed by the environment). If for any reason you need to move the environment to a new " +"location, you should recreate it at the desired location and delete the one at the old location. If " +"you move an environment because you moved a parent directory of it, you should recreate the " +"environment in its new location. Otherwise, software installed into the environment may not work as " +"expected." msgstr "" #: ../../library/venv.rst:128 msgid "" -"You can deactivate a virtual environment by typing ``deactivate`` in your " -"shell. The exact mechanism is platform-specific and is an internal " -"implementation detail (typically, a script or shell function will be used)." +"You can deactivate a virtual environment by typing ``deactivate`` in your shell. The exact mechanism " +"is platform-specific and is an internal implementation detail (typically, a script or shell function " +"will be used)." msgstr "" #: ../../library/venv.rst:136 @@ -335,57 +305,50 @@ msgstr "API" #: ../../library/venv.rst:140 msgid "" -"The high-level method described above makes use of a simple API which " -"provides mechanisms for third-party virtual environment creators to " -"customize environment creation according to their needs, the :class:" -"`EnvBuilder` class." +"The high-level method described above makes use of a simple API which provides mechanisms for third-" +"party virtual environment creators to customize environment creation according to their needs, the :" +"class:`EnvBuilder` class." msgstr "" #: ../../library/venv.rst:148 -msgid "" -"The :class:`EnvBuilder` class accepts the following keyword arguments on " -"instantiation:" +msgid "The :class:`EnvBuilder` class accepts the following keyword arguments on instantiation:" msgstr "" #: ../../library/venv.rst:151 msgid "" -"``system_site_packages`` -- a Boolean value indicating that the system " -"Python site-packages should be available to the environment (defaults to " -"``False``)." +"``system_site_packages`` -- a Boolean value indicating that the system Python site-packages should " +"be available to the environment (defaults to ``False``)." msgstr "" #: ../../library/venv.rst:154 msgid "" -"``clear`` -- a Boolean value which, if true, will delete the contents of any " -"existing target directory, before creating the environment." +"``clear`` -- a Boolean value which, if true, will delete the contents of any existing target " +"directory, before creating the environment." msgstr "" #: ../../library/venv.rst:157 msgid "" -"``symlinks`` -- a Boolean value indicating whether to attempt to symlink the " -"Python binary rather than copying." +"``symlinks`` -- a Boolean value indicating whether to attempt to symlink the Python binary rather " +"than copying." msgstr "" #: ../../library/venv.rst:160 msgid "" -"``upgrade`` -- a Boolean value which, if true, will upgrade an existing " -"environment with the running Python - for use when that Python has been " -"upgraded in-place (defaults to ``False``)." +"``upgrade`` -- a Boolean value which, if true, will upgrade an existing environment with the running " +"Python - for use when that Python has been upgraded in-place (defaults to ``False``)." msgstr "" #: ../../library/venv.rst:164 msgid "" -"``with_pip`` -- a Boolean value which, if true, ensures pip is installed in " -"the virtual environment. This uses :mod:`ensurepip` with the ``--default-" -"pip`` option." +"``with_pip`` -- a Boolean value which, if true, ensures pip is installed in the virtual environment. " +"This uses :mod:`ensurepip` with the ``--default-pip`` option." msgstr "" #: ../../library/venv.rst:168 msgid "" -"``prompt`` -- a String to be used after virtual environment is activated " -"(defaults to ``None`` which means directory name of the environment would be " -"used). If the special string ``\".\"`` is provided, the basename of the " -"current directory is used as the prompt." +"``prompt`` -- a String to be used after virtual environment is activated (defaults to ``None`` which " +"means directory name of the environment would be used). If the special string ``\".\"`` is provided, " +"the basename of the current directory is used as the prompt." msgstr "" #: ../../library/venv.rst:173 @@ -406,8 +369,8 @@ msgstr "新增 ``upgrade_deps`` 參數" #: ../../library/venv.rst:184 msgid "" -"Creators of third-party virtual environment tools will be free to use the " -"provided :class:`EnvBuilder` class as a base class." +"Creators of third-party virtual environment tools will be free to use the provided :class:" +"`EnvBuilder` class as a base class." msgstr "" #: ../../library/venv.rst:187 @@ -416,64 +379,58 @@ msgstr "" #: ../../library/venv.rst:191 msgid "" -"Create a virtual environment by specifying the target directory (absolute or " -"relative to the current directory) which is to contain the virtual " -"environment. The ``create`` method will either create the environment in " -"the specified directory, or raise an appropriate exception." +"Create a virtual environment by specifying the target directory (absolute or relative to the current " +"directory) which is to contain the virtual environment. The ``create`` method will either create " +"the environment in the specified directory, or raise an appropriate exception." msgstr "" #: ../../library/venv.rst:197 msgid "" -"The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks " -"available for subclass customization::" +"The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks available for subclass " +"customization::" msgstr "" #: ../../library/venv.rst:212 msgid "" -"Each of the methods :meth:`ensure_directories`, :meth:" -"`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` and :" -"meth:`post_setup` can be overridden." +"Each of the methods :meth:`ensure_directories`, :meth:`create_configuration`, :meth:`setup_python`, :" +"meth:`setup_scripts` and :meth:`post_setup` can be overridden." msgstr "" #: ../../library/venv.rst:218 msgid "" -"Creates the environment directory and all necessary subdirectories that " -"don't already exist, and returns a context object. This context object is " -"just a holder for attributes (such as paths) for use by the other methods. " -"If the :class:`EnvBuilder` is created with the arg ``clear=True``, contents " -"of the environment directory will be cleared and then all necessary " -"subdirectories will be recreated." +"Creates the environment directory and all necessary subdirectories that don't already exist, and " +"returns a context object. This context object is just a holder for attributes (such as paths) for " +"use by the other methods. If the :class:`EnvBuilder` is created with the arg ``clear=True``, " +"contents of the environment directory will be cleared and then all necessary subdirectories will be " +"recreated." msgstr "" #: ../../library/venv.rst:225 -msgid "" -"The returned context object is a :class:`types.SimpleNamespace` with the " -"following attributes:" +msgid "The returned context object is a :class:`types.SimpleNamespace` with the following attributes:" msgstr "" #: ../../library/venv.rst:228 msgid "" -"``env_dir`` - The location of the virtual environment. Used for " -"``__VENV_DIR__`` in activation scripts (see :meth:`install_scripts`)." +"``env_dir`` - The location of the virtual environment. Used for ``__VENV_DIR__`` in activation " +"scripts (see :meth:`install_scripts`)." msgstr "" #: ../../library/venv.rst:231 msgid "" -"``env_name`` - The name of the virtual environment. Used for " -"``__VENV_NAME__`` in activation scripts (see :meth:`install_scripts`)." +"``env_name`` - The name of the virtual environment. Used for ``__VENV_NAME__`` in activation scripts " +"(see :meth:`install_scripts`)." msgstr "" #: ../../library/venv.rst:234 msgid "" -"``prompt`` - The prompt to be used by the activation scripts. Used for " -"``__VENV_PROMPT__`` in activation scripts (see :meth:`install_scripts`)." +"``prompt`` - The prompt to be used by the activation scripts. Used for ``__VENV_PROMPT__`` in " +"activation scripts (see :meth:`install_scripts`)." msgstr "" #: ../../library/venv.rst:237 msgid "" -"``executable`` - The underlying Python executable used by the virtual " -"environment. This takes into account the case where a virtual environment is " -"created from another virtual environment." +"``executable`` - The underlying Python executable used by the virtual environment. This takes into " +"account the case where a virtual environment is created from another virtual environment." msgstr "" #: ../../library/venv.rst:241 @@ -490,35 +447,30 @@ msgstr "" #: ../../library/venv.rst:247 msgid "" -"``bin_name`` - The name of the script path relative to the virtual " -"environment location. Used for ``__VENV_BIN_NAME__`` in activation scripts " -"(see :meth:`install_scripts`)." +"``bin_name`` - The name of the script path relative to the virtual environment location. Used for " +"``__VENV_BIN_NAME__`` in activation scripts (see :meth:`install_scripts`)." msgstr "" #: ../../library/venv.rst:251 msgid "" -"``env_exe`` - The name of the Python interpreter in the virtual environment. " -"Used for ``__VENV_PYTHON__`` in activation scripts (see :meth:" -"`install_scripts`)." +"``env_exe`` - The name of the Python interpreter in the virtual environment. Used for " +"``__VENV_PYTHON__`` in activation scripts (see :meth:`install_scripts`)." msgstr "" #: ../../library/venv.rst:255 msgid "" -"``env_exec_cmd`` - The name of the Python interpreter, taking into account " -"filesystem redirections. This can be used to run Python in the virtual " -"environment." +"``env_exec_cmd`` - The name of the Python interpreter, taking into account filesystem redirections. " +"This can be used to run Python in the virtual environment." msgstr "" #: ../../library/venv.rst:260 -msgid "" -"The attribute ``lib_path`` was added to the context, and the context object " -"was documented." +msgid "The attribute ``lib_path`` was added to the context, and the context object was documented." msgstr "" #: ../../library/venv.rst:264 msgid "" -"The *venv* :ref:`sysconfig installation scheme ` is used " -"to construct the paths of the created directories." +"The *venv* :ref:`sysconfig installation scheme ` is used to construct the paths " +"of the created directories." msgstr "" #: ../../library/venv.rst:271 @@ -527,96 +479,82 @@ msgstr "" #: ../../library/venv.rst:275 msgid "" -"Creates a copy or symlink to the Python executable in the environment. On " -"POSIX systems, if a specific executable ``python3.x`` was used, symlinks to " -"``python`` and ``python3`` will be created pointing to that executable, " -"unless files with those names already exist." +"Creates a copy or symlink to the Python executable in the environment. On POSIX systems, if a " +"specific executable ``python3.x`` was used, symlinks to ``python`` and ``python3`` will be created " +"pointing to that executable, unless files with those names already exist." msgstr "" #: ../../library/venv.rst:282 -msgid "" -"Installs activation scripts appropriate to the platform into the virtual " -"environment." +msgid "Installs activation scripts appropriate to the platform into the virtual environment." msgstr "" #: ../../library/venv.rst:287 msgid "" -"Upgrades the core venv dependency packages (currently ``pip`` and " -"``setuptools``) in the environment. This is done by shelling out to the " -"``pip`` executable in the environment." +"Upgrades the core venv dependency packages (currently ``pip`` and ``setuptools``) in the " +"environment. This is done by shelling out to the ``pip`` executable in the environment." msgstr "" #: ../../library/venv.rst:295 msgid "" -"A placeholder method which can be overridden in third party implementations " -"to pre-install packages in the virtual environment or perform other post-" -"creation steps." +"A placeholder method which can be overridden in third party implementations to pre-install packages " +"in the virtual environment or perform other post-creation steps." msgstr "" #: ../../library/venv.rst:299 msgid "" -"Windows now uses redirector scripts for ``python[w].exe`` instead of copying " -"the actual binaries. In 3.7.2 only :meth:`setup_python` does nothing unless " -"running from a build in the source tree." +"Windows now uses redirector scripts for ``python[w].exe`` instead of copying the actual binaries. In " +"3.7.2 only :meth:`setup_python` does nothing unless running from a build in the source tree." msgstr "" #: ../../library/venv.rst:304 msgid "" -"Windows copies the redirector scripts as part of :meth:`setup_python` " -"instead of :meth:`setup_scripts`. This was not the case in 3.7.2. When using " -"symlinks, the original executables will be linked." +"Windows copies the redirector scripts as part of :meth:`setup_python` instead of :meth:" +"`setup_scripts`. This was not the case in 3.7.2. When using symlinks, the original executables will " +"be linked." msgstr "" #: ../../library/venv.rst:309 msgid "" -"In addition, :class:`EnvBuilder` provides this utility method that can be " -"called from :meth:`setup_scripts` or :meth:`post_setup` in subclasses to " -"assist in installing custom scripts into the virtual environment." +"In addition, :class:`EnvBuilder` provides this utility method that can be called from :meth:" +"`setup_scripts` or :meth:`post_setup` in subclasses to assist in installing custom scripts into the " +"virtual environment." msgstr "" #: ../../library/venv.rst:315 msgid "" -"*path* is the path to a directory that should contain subdirectories " -"\"common\", \"posix\", \"nt\", each containing scripts destined for the bin " -"directory in the environment. The contents of \"common\" and the directory " -"corresponding to :data:`os.name` are copied after some text replacement of " -"placeholders:" +"*path* is the path to a directory that should contain subdirectories \"common\", \"posix\", \"nt\", " +"each containing scripts destined for the bin directory in the environment. The contents of " +"\"common\" and the directory corresponding to :data:`os.name` are copied after some text replacement " +"of placeholders:" msgstr "" #: ../../library/venv.rst:321 -msgid "" -"``__VENV_DIR__`` is replaced with the absolute path of the environment " -"directory." +msgid "``__VENV_DIR__`` is replaced with the absolute path of the environment directory." msgstr "" #: ../../library/venv.rst:324 msgid "" -"``__VENV_NAME__`` is replaced with the environment name (final path segment " -"of environment directory)." +"``__VENV_NAME__`` is replaced with the environment name (final path segment of environment " +"directory)." msgstr "" #: ../../library/venv.rst:327 msgid "" -"``__VENV_PROMPT__`` is replaced with the prompt (the environment name " -"surrounded by parentheses and with a following space)" +"``__VENV_PROMPT__`` is replaced with the prompt (the environment name surrounded by parentheses and " +"with a following space)" msgstr "" #: ../../library/venv.rst:330 msgid "" -"``__VENV_BIN_NAME__`` is replaced with the name of the bin directory (either " -"``bin`` or ``Scripts``)." +"``__VENV_BIN_NAME__`` is replaced with the name of the bin directory (either ``bin`` or ``Scripts``)." msgstr "" #: ../../library/venv.rst:333 -msgid "" -"``__VENV_PYTHON__`` is replaced with the absolute path of the environment's " -"executable." +msgid "``__VENV_PYTHON__`` is replaced with the absolute path of the environment's executable." msgstr "" #: ../../library/venv.rst:336 -msgid "" -"The directories are allowed to exist (for when an existing environment is " -"being upgraded)." +msgid "The directories are allowed to exist (for when an existing environment is being upgraded)." msgstr "" #: ../../library/venv.rst:339 @@ -625,8 +563,8 @@ msgstr "" #: ../../library/venv.rst:345 msgid "" -"Create an :class:`EnvBuilder` with the given keyword arguments, and call " -"its :meth:`~EnvBuilder.create` method with the *env_dir* argument." +"Create an :class:`EnvBuilder` with the given keyword arguments, and call its :meth:`~EnvBuilder." +"create` method with the *env_dir* argument." msgstr "" #: ../../library/venv.rst:360 @@ -635,15 +573,12 @@ msgstr "" #: ../../library/venv.rst:362 msgid "" -"The following script shows how to extend :class:`EnvBuilder` by implementing " -"a subclass which installs setuptools and pip into a created virtual " -"environment::" +"The following script shows how to extend :class:`EnvBuilder` by implementing a subclass which " +"installs setuptools and pip into a created virtual environment::" msgstr "" #: ../../library/venv.rst:581 -msgid "" -"This script is also available for download `online `_." +msgid "This script is also available for download `online `_." msgstr "" #: ../../library/venv.rst:14 From 91b8ea7387a9664f8b3083aad0bf5729e27a486b Mon Sep 17 00:00:00 2001 From: Jackson Date: Sat, 8 Jul 2023 17:10:47 +0800 Subject: [PATCH 02/10] [DEL] --- library/cpython | 1 - 1 file changed, 1 deletion(-) delete mode 160000 library/cpython diff --git a/library/cpython b/library/cpython deleted file mode 160000 index 2ef1dc37f02..00000000000 --- a/library/cpython +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2ef1dc37f02b08536b677dd23ec51541a60effd7 From e1437762cca0f9dfb5f08654171a2762cf402f9c Mon Sep 17 00:00:00 2001 From: jacksonchen1998 Date: Sun, 9 Jul 2023 12:56:10 +0800 Subject: [PATCH 03/10] [UPDATE] --- library/venv.po | 392 ++++++++++++++++++++++++++++-------------------- 1 file changed, 229 insertions(+), 163 deletions(-) diff --git a/library/venv.po b/library/venv.po index d43912fa109..ce83cc6913d 100644 --- a/library/venv.po +++ b/library/venv.po @@ -8,9 +8,10 @@ msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-05-09 00:15+0000\n" -"PO-Revision-Date: 2023-07-08 16:13+0800\n" -"Last-Translator: Adrian Liaw \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-tw)\n" +"PO-Revision-Date: 2023-07-09 12:55+0800\n" +"Last-Translator: Po-Chuan Chen \n" +"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" +"tw)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -28,17 +29,20 @@ msgstr "**原始碼:**\\ :source:`Lib/venv/`" #: ../../library/venv.rst:21 msgid "" -"The :mod:`!venv` module supports creating lightweight \"virtual environments\", each with their own " -"independent set of Python packages installed in their :mod:`site` directories. A virtual environment " -"is created on top of an existing Python installation, known as the virtual environment's \"base\" " -"Python, and may optionally be isolated from the packages in the base environment, so only those " -"explicitly installed in the virtual environment are available." +"The :mod:`!venv` module supports creating lightweight \"virtual environments" +"\", each with their own independent set of Python packages installed in " +"their :mod:`site` directories. A virtual environment is created on top of an " +"existing Python installation, known as the virtual environment's \"base\" " +"Python, and may optionally be isolated from the packages in the base " +"environment, so only those explicitly installed in the virtual environment " +"are available." msgstr "" #: ../../library/venv.rst:29 msgid "" -"When used from within a virtual environment, common installation tools such as `pip`_ will install " -"Python packages into a virtual environment without needing to be told to do so explicitly." +"When used from within a virtual environment, common installation tools such " +"as `pip`_ will install Python packages into a virtual environment without " +"needing to be told to do so explicitly." msgstr "" #: ../../library/venv.rst:33 @@ -47,8 +51,9 @@ msgstr "更多關於 Python 虛擬環境的背景資訊請見 :pep:`405`\\ 。" #: ../../library/venv.rst:37 msgid "" -"`Python Packaging User Guide: Creating and using virtual environments `__" +"`Python Packaging User Guide: Creating and using virtual environments " +"`__" msgstr "" #: ../../includes/wasm-notavail.rst:3 @@ -57,8 +62,9 @@ msgstr "" #: ../../includes/wasm-notavail.rst:5 msgid "" -"This module does not work or is not available on WebAssembly platforms ``wasm32-emscripten`` and " -"``wasm32-wasi``. See :ref:`wasm-availability` for more information." +"This module does not work or is not available on WebAssembly platforms " +"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for " +"more information." msgstr "" #: ../../library/venv.rst:43 @@ -66,28 +72,34 @@ msgid "Creating virtual environments" msgstr "建立虛擬環境" #: ../../using/venv-create.inc:1 -msgid "Creation of :ref:`virtual environments ` is done by executing the command ``venv``::" +msgid "" +"Creation of :ref:`virtual environments ` is done by executing the " +"command ``venv``::" msgstr "" #: ../../using/venv-create.inc:6 msgid "" -"Running this command creates the target directory (creating any parent directories that don't exist " -"already) and places a ``pyvenv.cfg`` file in it with a ``home`` key pointing to the Python " -"installation from which the command was run (a common name for the target directory is ``.venv``). " -"It also creates a ``bin`` (or ``Scripts`` on Windows) subdirectory containing a copy/symlink of the " -"Python binary/binaries (as appropriate for the platform or arguments used at environment creation " -"time). It also creates an (initially empty) ``lib/pythonX.Y/site-packages`` subdirectory (on " -"Windows, this is ``Lib\\site-packages``). If an existing directory is specified, it will be re-used." +"Running this command creates the target directory (creating any parent " +"directories that don't exist already) and places a ``pyvenv.cfg`` file in it " +"with a ``home`` key pointing to the Python installation from which the " +"command was run (a common name for the target directory is ``.venv``). It " +"also creates a ``bin`` (or ``Scripts`` on Windows) subdirectory containing a " +"copy/symlink of the Python binary/binaries (as appropriate for the platform " +"or arguments used at environment creation time). It also creates an " +"(initially empty) ``lib/pythonX.Y/site-packages`` subdirectory (on Windows, " +"this is ``Lib\\site-packages``). If an existing directory is specified, it " +"will be re-used." msgstr "" #: ../../using/venv-create.inc:17 msgid "" -"``pyvenv`` was the recommended tool for creating virtual environments for Python 3.3 and 3.4, and " -"is :ref:`deprecated in Python 3.6 `." +"``pyvenv`` was the recommended tool for creating virtual environments for " +"Python 3.3 and 3.4, and is :ref:`deprecated in Python 3.6 `." msgstr "" #: ../../using/venv-create.inc:22 -msgid "The use of ``venv`` is now recommended for creating virtual environments." +msgid "" +"The use of ``venv`` is now recommended for creating virtual environments." msgstr "" #: ../../using/venv-create.inc:27 @@ -96,8 +108,8 @@ msgstr "" #: ../../using/venv-create.inc:31 msgid "" -"Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for your :ref:`Python " -"installation `::" +"Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for " +"your :ref:`Python installation `::" msgstr "" #: ../../using/venv-create.inc:36 @@ -105,58 +117,66 @@ msgid "The command, if run with ``-h``, will show the available options::" msgstr "" #: ../../using/venv-create.inc:70 -msgid "Add ``--upgrade-deps`` option to upgrade pip + setuptools to the latest on PyPI" +msgid "" +"Add ``--upgrade-deps`` option to upgrade pip + setuptools to the latest on " +"PyPI" msgstr "" #: ../../using/venv-create.inc:73 -msgid "Installs pip by default, added the ``--without-pip`` and ``--copies`` options" +msgid "" +"Installs pip by default, added the ``--without-pip`` and ``--copies`` " +"options" msgstr "" #: ../../using/venv-create.inc:77 msgid "" -"In earlier versions, if the target directory already existed, an error was raised, unless the ``--" -"clear`` or ``--upgrade`` option was provided." +"In earlier versions, if the target directory already existed, an error was " +"raised, unless the ``--clear`` or ``--upgrade`` option was provided." msgstr "" #: ../../using/venv-create.inc:82 msgid "" -"While symlinks are supported on Windows, they are not recommended. Of particular note is that double-" -"clicking ``python.exe`` in File Explorer will resolve the symlink eagerly and ignore the virtual " -"environment." +"While symlinks are supported on Windows, they are not recommended. Of " +"particular note is that double-clicking ``python.exe`` in File Explorer will " +"resolve the symlink eagerly and ignore the virtual environment." msgstr "" #: ../../using/venv-create.inc:87 msgid "" -"On Microsoft Windows, it may be required to enable the ``Activate.ps1`` script by setting the " -"execution policy for the user. You can do this by issuing the following PowerShell command:" +"On Microsoft Windows, it may be required to enable the ``Activate.ps1`` " +"script by setting the execution policy for the user. You can do this by " +"issuing the following PowerShell command:" msgstr "" #: ../../using/venv-create.inc:91 -msgid "PS C:\\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser" +msgid "" +"PS C:\\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser" msgstr "" #: ../../using/venv-create.inc:93 msgid "" -"See `About Execution Policies `_ for more " -"information." +"See `About Execution Policies `_ for more information." msgstr "" #: ../../using/venv-create.inc:97 msgid "" -"The created ``pyvenv.cfg`` file also includes the ``include-system-site-packages`` key, set to " -"``true`` if ``venv`` is run with the ``--system-site-packages`` option, ``false`` otherwise." +"The created ``pyvenv.cfg`` file also includes the ``include-system-site-" +"packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-" +"packages`` option, ``false`` otherwise." msgstr "" #: ../../using/venv-create.inc:101 msgid "" -"Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be invoked to bootstrap ``pip`` " -"into the virtual environment." +"Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be " +"invoked to bootstrap ``pip`` into the virtual environment." msgstr "" #: ../../using/venv-create.inc:104 msgid "" -"Multiple paths can be given to ``venv``, in which case an identical virtual environment will be " -"created, according to the given options, at each provided path." +"Multiple paths can be given to ``venv``, in which case an identical virtual " +"environment will be created, according to the given options, at each " +"provided path." msgstr "" #: ../../library/venv.rst:50 @@ -165,20 +185,23 @@ msgstr "" #: ../../library/venv.rst:52 msgid "" -"When a Python interpreter is running from a virtual environment, :data:`sys.prefix` and :data:`sys." -"exec_prefix` point to the directories of the virtual environment, whereas :data:`sys.base_prefix` " -"and :data:`sys.base_exec_prefix` point to those of the base Python used to create the environment. " -"It is sufficient to check ``sys.prefix != sys.base_prefix`` to determine if the current interpreter " -"is running from a virtual environment." +"When a Python interpreter is running from a virtual environment, :data:`sys." +"prefix` and :data:`sys.exec_prefix` point to the directories of the virtual " +"environment, whereas :data:`sys.base_prefix` and :data:`sys." +"base_exec_prefix` point to those of the base Python used to create the " +"environment. It is sufficient to check ``sys.prefix != sys.base_prefix`` to " +"determine if the current interpreter is running from a virtual environment." msgstr "" #: ../../library/venv.rst:61 msgid "" -"A virtual environment may be \"activated\" using a script in its binary directory (``bin`` on POSIX; " -"``Scripts`` on Windows). This will prepend that directory to your :envvar:`!PATH`, so that running :" -"program:`python` will invoke the environment's Python interpreter and you can run installed scripts " -"without having to use their full path. The invocation of the activation script is platform-specific " -"(:samp:`{}` must be replaced by the path to the directory containing the virtual environment):" +"A virtual environment may be \"activated\" using a script in its binary " +"directory (``bin`` on POSIX; ``Scripts`` on Windows). This will prepend that " +"directory to your :envvar:`!PATH`, so that running :program:`python` will " +"invoke the environment's Python interpreter and you can run installed " +"scripts without having to use their full path. The invocation of the " +"activation script is platform-specific (:samp:`{}` must be replaced by " +"the path to the directory containing the virtual environment):" msgstr "" #: ../../library/venv.rst:71 @@ -250,53 +273,61 @@ msgid ":program:`fish` and :program:`csh` activation scripts." msgstr "" #: ../../library/venv.rst:89 -msgid "PowerShell activation scripts installed under POSIX for PowerShell Core support." +msgid "" +"PowerShell activation scripts installed under POSIX for PowerShell Core " +"support." msgstr "" #: ../../library/venv.rst:93 msgid "" -"You don't specifically *need* to activate a virtual environment, as you can just specify the full " -"path to that environment's Python interpreter when invoking Python. Furthermore, all scripts " -"installed in the environment should be runnable without activating it." +"You don't specifically *need* to activate a virtual environment, as you can " +"just specify the full path to that environment's Python interpreter when " +"invoking Python. Furthermore, all scripts installed in the environment " +"should be runnable without activating it." msgstr "" #: ../../library/venv.rst:99 msgid "" -"In order to achieve this, scripts installed into virtual environments have a \"shebang\" line which " -"points to the environment's Python interpreter, i.e. :samp:`#!/{}/bin/python`. This " -"means that the script will run with that interpreter regardless of the value of :envvar:`!PATH`. On " -"Windows, \"shebang\" line processing is supported if you have the :ref:`launcher` installed. Thus, " -"double-clicking an installed script in a Windows Explorer window should run it with the correct " -"interpreter without the environment needing to be activated or on the :envvar:`!PATH`." +"In order to achieve this, scripts installed into virtual environments have a " +"\"shebang\" line which points to the environment's Python interpreter, i.e. :" +"samp:`#!/{}/bin/python`. This means that the script will run " +"with that interpreter regardless of the value of :envvar:`!PATH`. On " +"Windows, \"shebang\" line processing is supported if you have the :ref:" +"`launcher` installed. Thus, double-clicking an installed script in a Windows " +"Explorer window should run it with the correct interpreter without the " +"environment needing to be activated or on the :envvar:`!PATH`." msgstr "" #: ../../library/venv.rst:108 msgid "" -"When a virtual environment has been activated, the :envvar:`!VIRTUAL_ENV` environment variable is " -"set to the path of the environment. Since explicitly activating a virtual environment is not " -"required to use it, :envvar:`!VIRTUAL_ENV` cannot be relied upon to determine whether a virtual " +"When a virtual environment has been activated, the :envvar:`!VIRTUAL_ENV` " +"environment variable is set to the path of the environment. Since explicitly " +"activating a virtual environment is not required to use it, :envvar:`!" +"VIRTUAL_ENV` cannot be relied upon to determine whether a virtual " "environment is being used." msgstr "" #: ../../library/venv.rst:114 msgid "" -"Because scripts installed in environments should not expect the environment to be activated, their " -"shebang lines contain the absolute paths to their environment's interpreters. Because of this, " -"environments are inherently non-portable, in the general case. You should always have a simple means " -"of recreating an environment (for example, if you have a requirements file ``requirements.txt``, you " -"can invoke ``pip install -r requirements.txt`` using the environment's ``pip`` to install all of the " -"packages needed by the environment). If for any reason you need to move the environment to a new " -"location, you should recreate it at the desired location and delete the one at the old location. If " -"you move an environment because you moved a parent directory of it, you should recreate the " -"environment in its new location. Otherwise, software installed into the environment may not work as " -"expected." +"Because scripts installed in environments should not expect the environment " +"to be activated, their shebang lines contain the absolute paths to their " +"environment's interpreters. Because of this, environments are inherently non-" +"portable, in the general case. You should always have a simple means of " +"recreating an environment (for example, if you have a requirements file " +"``requirements.txt``, you can invoke ``pip install -r requirements.txt`` " +"using the environment's ``pip`` to install all of the packages needed by the " +"environment). If for any reason you need to move the environment to a new " +"location, you should recreate it at the desired location and delete the one " +"at the old location. If you move an environment because you moved a parent " +"directory of it, you should recreate the environment in its new location. " +"Otherwise, software installed into the environment may not work as expected." msgstr "" #: ../../library/venv.rst:128 msgid "" -"You can deactivate a virtual environment by typing ``deactivate`` in your shell. The exact mechanism " -"is platform-specific and is an internal implementation detail (typically, a script or shell function " -"will be used)." +"You can deactivate a virtual environment by typing ``deactivate`` in your " +"shell. The exact mechanism is platform-specific and is an internal " +"implementation detail (typically, a script or shell function will be used)." msgstr "" #: ../../library/venv.rst:136 @@ -305,50 +336,57 @@ msgstr "API" #: ../../library/venv.rst:140 msgid "" -"The high-level method described above makes use of a simple API which provides mechanisms for third-" -"party virtual environment creators to customize environment creation according to their needs, the :" -"class:`EnvBuilder` class." +"The high-level method described above makes use of a simple API which " +"provides mechanisms for third-party virtual environment creators to " +"customize environment creation according to their needs, the :class:" +"`EnvBuilder` class." msgstr "" #: ../../library/venv.rst:148 -msgid "The :class:`EnvBuilder` class accepts the following keyword arguments on instantiation:" +msgid "" +"The :class:`EnvBuilder` class accepts the following keyword arguments on " +"instantiation:" msgstr "" #: ../../library/venv.rst:151 msgid "" -"``system_site_packages`` -- a Boolean value indicating that the system Python site-packages should " -"be available to the environment (defaults to ``False``)." +"``system_site_packages`` -- a Boolean value indicating that the system " +"Python site-packages should be available to the environment (defaults to " +"``False``)." msgstr "" #: ../../library/venv.rst:154 msgid "" -"``clear`` -- a Boolean value which, if true, will delete the contents of any existing target " -"directory, before creating the environment." +"``clear`` -- a Boolean value which, if true, will delete the contents of any " +"existing target directory, before creating the environment." msgstr "" #: ../../library/venv.rst:157 msgid "" -"``symlinks`` -- a Boolean value indicating whether to attempt to symlink the Python binary rather " -"than copying." +"``symlinks`` -- a Boolean value indicating whether to attempt to symlink the " +"Python binary rather than copying." msgstr "" #: ../../library/venv.rst:160 msgid "" -"``upgrade`` -- a Boolean value which, if true, will upgrade an existing environment with the running " -"Python - for use when that Python has been upgraded in-place (defaults to ``False``)." +"``upgrade`` -- a Boolean value which, if true, will upgrade an existing " +"environment with the running Python - for use when that Python has been " +"upgraded in-place (defaults to ``False``)." msgstr "" #: ../../library/venv.rst:164 msgid "" -"``with_pip`` -- a Boolean value which, if true, ensures pip is installed in the virtual environment. " -"This uses :mod:`ensurepip` with the ``--default-pip`` option." +"``with_pip`` -- a Boolean value which, if true, ensures pip is installed in " +"the virtual environment. This uses :mod:`ensurepip` with the ``--default-" +"pip`` option." msgstr "" #: ../../library/venv.rst:168 msgid "" -"``prompt`` -- a String to be used after virtual environment is activated (defaults to ``None`` which " -"means directory name of the environment would be used). If the special string ``\".\"`` is provided, " -"the basename of the current directory is used as the prompt." +"``prompt`` -- a String to be used after virtual environment is activated " +"(defaults to ``None`` which means directory name of the environment would be " +"used). If the special string ``\".\"`` is provided, the basename of the " +"current directory is used as the prompt." msgstr "" #: ../../library/venv.rst:173 @@ -369,8 +407,8 @@ msgstr "新增 ``upgrade_deps`` 參數" #: ../../library/venv.rst:184 msgid "" -"Creators of third-party virtual environment tools will be free to use the provided :class:" -"`EnvBuilder` class as a base class." +"Creators of third-party virtual environment tools will be free to use the " +"provided :class:`EnvBuilder` class as a base class." msgstr "" #: ../../library/venv.rst:187 @@ -379,58 +417,64 @@ msgstr "" #: ../../library/venv.rst:191 msgid "" -"Create a virtual environment by specifying the target directory (absolute or relative to the current " -"directory) which is to contain the virtual environment. The ``create`` method will either create " -"the environment in the specified directory, or raise an appropriate exception." +"Create a virtual environment by specifying the target directory (absolute or " +"relative to the current directory) which is to contain the virtual " +"environment. The ``create`` method will either create the environment in " +"the specified directory, or raise an appropriate exception." msgstr "" #: ../../library/venv.rst:197 msgid "" -"The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks available for subclass " -"customization::" +"The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks " +"available for subclass customization::" msgstr "" #: ../../library/venv.rst:212 msgid "" -"Each of the methods :meth:`ensure_directories`, :meth:`create_configuration`, :meth:`setup_python`, :" -"meth:`setup_scripts` and :meth:`post_setup` can be overridden." +"Each of the methods :meth:`ensure_directories`, :meth:" +"`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` and :" +"meth:`post_setup` can be overridden." msgstr "" #: ../../library/venv.rst:218 msgid "" -"Creates the environment directory and all necessary subdirectories that don't already exist, and " -"returns a context object. This context object is just a holder for attributes (such as paths) for " -"use by the other methods. If the :class:`EnvBuilder` is created with the arg ``clear=True``, " -"contents of the environment directory will be cleared and then all necessary subdirectories will be " -"recreated." +"Creates the environment directory and all necessary subdirectories that " +"don't already exist, and returns a context object. This context object is " +"just a holder for attributes (such as paths) for use by the other methods. " +"If the :class:`EnvBuilder` is created with the arg ``clear=True``, contents " +"of the environment directory will be cleared and then all necessary " +"subdirectories will be recreated." msgstr "" #: ../../library/venv.rst:225 -msgid "The returned context object is a :class:`types.SimpleNamespace` with the following attributes:" +msgid "" +"The returned context object is a :class:`types.SimpleNamespace` with the " +"following attributes:" msgstr "" #: ../../library/venv.rst:228 msgid "" -"``env_dir`` - The location of the virtual environment. Used for ``__VENV_DIR__`` in activation " -"scripts (see :meth:`install_scripts`)." +"``env_dir`` - The location of the virtual environment. Used for " +"``__VENV_DIR__`` in activation scripts (see :meth:`install_scripts`)." msgstr "" #: ../../library/venv.rst:231 msgid "" -"``env_name`` - The name of the virtual environment. Used for ``__VENV_NAME__`` in activation scripts " -"(see :meth:`install_scripts`)." +"``env_name`` - The name of the virtual environment. Used for " +"``__VENV_NAME__`` in activation scripts (see :meth:`install_scripts`)." msgstr "" #: ../../library/venv.rst:234 msgid "" -"``prompt`` - The prompt to be used by the activation scripts. Used for ``__VENV_PROMPT__`` in " -"activation scripts (see :meth:`install_scripts`)." +"``prompt`` - The prompt to be used by the activation scripts. Used for " +"``__VENV_PROMPT__`` in activation scripts (see :meth:`install_scripts`)." msgstr "" #: ../../library/venv.rst:237 msgid "" -"``executable`` - The underlying Python executable used by the virtual environment. This takes into " -"account the case where a virtual environment is created from another virtual environment." +"``executable`` - The underlying Python executable used by the virtual " +"environment. This takes into account the case where a virtual environment is " +"created from another virtual environment." msgstr "" #: ../../library/venv.rst:241 @@ -447,30 +491,35 @@ msgstr "" #: ../../library/venv.rst:247 msgid "" -"``bin_name`` - The name of the script path relative to the virtual environment location. Used for " -"``__VENV_BIN_NAME__`` in activation scripts (see :meth:`install_scripts`)." +"``bin_name`` - The name of the script path relative to the virtual " +"environment location. Used for ``__VENV_BIN_NAME__`` in activation scripts " +"(see :meth:`install_scripts`)." msgstr "" #: ../../library/venv.rst:251 msgid "" -"``env_exe`` - The name of the Python interpreter in the virtual environment. Used for " -"``__VENV_PYTHON__`` in activation scripts (see :meth:`install_scripts`)." +"``env_exe`` - The name of the Python interpreter in the virtual environment. " +"Used for ``__VENV_PYTHON__`` in activation scripts (see :meth:" +"`install_scripts`)." msgstr "" #: ../../library/venv.rst:255 msgid "" -"``env_exec_cmd`` - The name of the Python interpreter, taking into account filesystem redirections. " -"This can be used to run Python in the virtual environment." +"``env_exec_cmd`` - The name of the Python interpreter, taking into account " +"filesystem redirections. This can be used to run Python in the virtual " +"environment." msgstr "" #: ../../library/venv.rst:260 -msgid "The attribute ``lib_path`` was added to the context, and the context object was documented." +msgid "" +"The attribute ``lib_path`` was added to the context, and the context object " +"was documented." msgstr "" #: ../../library/venv.rst:264 msgid "" -"The *venv* :ref:`sysconfig installation scheme ` is used to construct the paths " -"of the created directories." +"The *venv* :ref:`sysconfig installation scheme ` is used " +"to construct the paths of the created directories." msgstr "" #: ../../library/venv.rst:271 @@ -479,82 +528,96 @@ msgstr "" #: ../../library/venv.rst:275 msgid "" -"Creates a copy or symlink to the Python executable in the environment. On POSIX systems, if a " -"specific executable ``python3.x`` was used, symlinks to ``python`` and ``python3`` will be created " -"pointing to that executable, unless files with those names already exist." +"Creates a copy or symlink to the Python executable in the environment. On " +"POSIX systems, if a specific executable ``python3.x`` was used, symlinks to " +"``python`` and ``python3`` will be created pointing to that executable, " +"unless files with those names already exist." msgstr "" #: ../../library/venv.rst:282 -msgid "Installs activation scripts appropriate to the platform into the virtual environment." +msgid "" +"Installs activation scripts appropriate to the platform into the virtual " +"environment." msgstr "" #: ../../library/venv.rst:287 msgid "" -"Upgrades the core venv dependency packages (currently ``pip`` and ``setuptools``) in the " -"environment. This is done by shelling out to the ``pip`` executable in the environment." +"Upgrades the core venv dependency packages (currently ``pip`` and " +"``setuptools``) in the environment. This is done by shelling out to the " +"``pip`` executable in the environment." msgstr "" #: ../../library/venv.rst:295 msgid "" -"A placeholder method which can be overridden in third party implementations to pre-install packages " -"in the virtual environment or perform other post-creation steps." +"A placeholder method which can be overridden in third party implementations " +"to pre-install packages in the virtual environment or perform other post-" +"creation steps." msgstr "" #: ../../library/venv.rst:299 msgid "" -"Windows now uses redirector scripts for ``python[w].exe`` instead of copying the actual binaries. In " -"3.7.2 only :meth:`setup_python` does nothing unless running from a build in the source tree." +"Windows now uses redirector scripts for ``python[w].exe`` instead of copying " +"the actual binaries. In 3.7.2 only :meth:`setup_python` does nothing unless " +"running from a build in the source tree." msgstr "" #: ../../library/venv.rst:304 msgid "" -"Windows copies the redirector scripts as part of :meth:`setup_python` instead of :meth:" -"`setup_scripts`. This was not the case in 3.7.2. When using symlinks, the original executables will " -"be linked." +"Windows copies the redirector scripts as part of :meth:`setup_python` " +"instead of :meth:`setup_scripts`. This was not the case in 3.7.2. When using " +"symlinks, the original executables will be linked." msgstr "" #: ../../library/venv.rst:309 msgid "" -"In addition, :class:`EnvBuilder` provides this utility method that can be called from :meth:" -"`setup_scripts` or :meth:`post_setup` in subclasses to assist in installing custom scripts into the " -"virtual environment." +"In addition, :class:`EnvBuilder` provides this utility method that can be " +"called from :meth:`setup_scripts` or :meth:`post_setup` in subclasses to " +"assist in installing custom scripts into the virtual environment." msgstr "" #: ../../library/venv.rst:315 msgid "" -"*path* is the path to a directory that should contain subdirectories \"common\", \"posix\", \"nt\", " -"each containing scripts destined for the bin directory in the environment. The contents of " -"\"common\" and the directory corresponding to :data:`os.name` are copied after some text replacement " -"of placeholders:" +"*path* is the path to a directory that should contain subdirectories \"common" +"\", \"posix\", \"nt\", each containing scripts destined for the bin " +"directory in the environment. The contents of \"common\" and the directory " +"corresponding to :data:`os.name` are copied after some text replacement of " +"placeholders:" msgstr "" #: ../../library/venv.rst:321 -msgid "``__VENV_DIR__`` is replaced with the absolute path of the environment directory." +msgid "" +"``__VENV_DIR__`` is replaced with the absolute path of the environment " +"directory." msgstr "" #: ../../library/venv.rst:324 msgid "" -"``__VENV_NAME__`` is replaced with the environment name (final path segment of environment " -"directory)." +"``__VENV_NAME__`` is replaced with the environment name (final path segment " +"of environment directory)." msgstr "" #: ../../library/venv.rst:327 msgid "" -"``__VENV_PROMPT__`` is replaced with the prompt (the environment name surrounded by parentheses and " -"with a following space)" +"``__VENV_PROMPT__`` is replaced with the prompt (the environment name " +"surrounded by parentheses and with a following space)" msgstr "" #: ../../library/venv.rst:330 msgid "" -"``__VENV_BIN_NAME__`` is replaced with the name of the bin directory (either ``bin`` or ``Scripts``)." +"``__VENV_BIN_NAME__`` is replaced with the name of the bin directory (either " +"``bin`` or ``Scripts``)." msgstr "" #: ../../library/venv.rst:333 -msgid "``__VENV_PYTHON__`` is replaced with the absolute path of the environment's executable." +msgid "" +"``__VENV_PYTHON__`` is replaced with the absolute path of the environment's " +"executable." msgstr "" #: ../../library/venv.rst:336 -msgid "The directories are allowed to exist (for when an existing environment is being upgraded)." +msgid "" +"The directories are allowed to exist (for when an existing environment is " +"being upgraded)." msgstr "" #: ../../library/venv.rst:339 @@ -563,8 +626,8 @@ msgstr "" #: ../../library/venv.rst:345 msgid "" -"Create an :class:`EnvBuilder` with the given keyword arguments, and call its :meth:`~EnvBuilder." -"create` method with the *env_dir* argument." +"Create an :class:`EnvBuilder` with the given keyword arguments, and call " +"its :meth:`~EnvBuilder.create` method with the *env_dir* argument." msgstr "" #: ../../library/venv.rst:360 @@ -573,12 +636,15 @@ msgstr "" #: ../../library/venv.rst:362 msgid "" -"The following script shows how to extend :class:`EnvBuilder` by implementing a subclass which " -"installs setuptools and pip into a created virtual environment::" +"The following script shows how to extend :class:`EnvBuilder` by implementing " +"a subclass which installs setuptools and pip into a created virtual " +"environment::" msgstr "" #: ../../library/venv.rst:581 -msgid "This script is also available for download `online `_." +msgid "" +"This script is also available for download `online `_." msgstr "" #: ../../library/venv.rst:14 From 689ea9d0e10049975b83d438366f9b214aaa2f15 Mon Sep 17 00:00:00 2001 From: jacksonchen1998 Date: Sun, 9 Jul 2023 15:29:37 +0800 Subject: [PATCH 04/10] [UPDATE] translate Creating virtual environments --- library/venv.po | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/library/venv.po b/library/venv.po index ce83cc6913d..67446999e0f 100644 --- a/library/venv.po +++ b/library/venv.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-05-09 00:15+0000\n" -"PO-Revision-Date: 2023-07-09 12:55+0800\n" +"PO-Revision-Date: 2023-07-09 15:09+0800\n" "Last-Translator: Po-Chuan Chen \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -75,7 +75,7 @@ msgstr "建立虛擬環境" msgid "" "Creation of :ref:`virtual environments ` is done by executing the " "command ``venv``::" -msgstr "" +msgstr "建立 :ref:`虛擬環境 ` 的方法是透過執行指令 ``venv``:" #: ../../using/venv-create.inc:6 msgid "" @@ -90,49 +90,63 @@ msgid "" "this is ``Lib\\site-packages``). If an existing directory is specified, it " "will be re-used." msgstr "" +"執行此命令會建立目標目錄(同時也會建立不存在的父目錄)並在目錄中放置一個名為 " +"``pyvenv.cfg`` 的檔案,其中包含一個指向執行該命令的 Python 安裝路徑的 " +"``home`` 鍵(目標目錄的常見名稱為 ``.venv``)。同時,它會建立一個 ``bin`` " +"(在 Windows 上為 ``Scripts``)子目錄,其中包含一個 Python 二進制檔案的副本/" +"符號連結(根據建立環境時使用的平台或引數而定)。此外,它還會建立一個(最初為" +"空的) ``lib/pythonX.Y/site-packages`` 子目錄(在 Windows 上為 ``Lib\\site-" +"packages``)。如果指定的目錄已存在,則將重新使用該目錄。" #: ../../using/venv-create.inc:17 msgid "" "``pyvenv`` was the recommended tool for creating virtual environments for " "Python 3.3 and 3.4, and is :ref:`deprecated in Python 3.6 `." msgstr "" +"``pyvenv`` 是在 Python 3.3 和 3.4 中建立虛擬環境的推薦工具,但在 Python 3.6 " +"中已被 :ref:`棄用 `。" #: ../../using/venv-create.inc:22 msgid "" "The use of ``venv`` is now recommended for creating virtual environments." -msgstr "" +msgstr "目前建議使用 ``venv`` 來建立虛擬環境。" #: ../../using/venv-create.inc:27 msgid "On Windows, invoke the ``venv`` command as follows::" -msgstr "" +msgstr "在 Windows 上,執行以下命令以使用 ``venv``:" #: ../../using/venv-create.inc:31 msgid "" "Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for " "your :ref:`Python installation `::" msgstr "" +"或者,如你已經為你的 :ref:`Python 安裝 ` 配置了 ``PATH`` " +"和 ``PATHEXT`` 變數,則可以執行以下命令:" #: ../../using/venv-create.inc:36 msgid "The command, if run with ``-h``, will show the available options::" -msgstr "" +msgstr "如果使用 ``-h`` 選項執行該命令,將會顯示可用的選項:" #: ../../using/venv-create.inc:70 msgid "" "Add ``--upgrade-deps`` option to upgrade pip + setuptools to the latest on " "PyPI" msgstr "" +"新增 ``--upgrade-deps`` 選項以將 pip 和 setuptools 升級至 PyPI 上的最新版本" #: ../../using/venv-create.inc:73 msgid "" "Installs pip by default, added the ``--without-pip`` and ``--copies`` " "options" -msgstr "" +msgstr "預設情況下安裝 pip,並新增了 ``--without-pip`` 和 ``--copies`` 選項" #: ../../using/venv-create.inc:77 msgid "" "In earlier versions, if the target directory already existed, an error was " "raised, unless the ``--clear`` or ``--upgrade`` option was provided." msgstr "" +"在較早的版本中,如果目標目錄已存在,除非提供了 ``--clear`` 或 ``--upgrade`` " +"選項,否則會引發錯誤。" #: ../../using/venv-create.inc:82 msgid "" @@ -140,6 +154,8 @@ msgid "" "particular note is that double-clicking ``python.exe`` in File Explorer will " "resolve the symlink eagerly and ignore the virtual environment." msgstr "" +"雖然在 Windows 上支援符號連結,但並不建議使用。特別需要注意的是,在檔案總管中" +"按兩下 ``python.exe`` 會急切地解析符號連結並忽略虛擬環境。" #: ../../using/venv-create.inc:87 msgid "" @@ -147,6 +163,8 @@ msgid "" "script by setting the execution policy for the user. You can do this by " "issuing the following PowerShell command:" msgstr "" +"在 Microsoft Windows 上,可能需要通過設置使用者的執行策略來啟用 ``Activate." +"ps1`` 腳本。你可以發出以下 PowerShell 命令來執行此操作:" #: ../../using/venv-create.inc:91 msgid "" @@ -158,6 +176,8 @@ msgid "" "See `About Execution Policies `_ for more information." msgstr "" +"有關更多資訊,請參閱 `關於執行原則 `_。" #: ../../using/venv-create.inc:97 msgid "" @@ -165,12 +185,17 @@ msgid "" "packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-" "packages`` option, ``false`` otherwise." msgstr "" +"被建立的 ``pyvenv.cfg`` 檔案還包括了 ``include-system-site-packages`` 的鍵," +"如果使用 ``venv`` 執行時帶有 ``--system-site-packages`` 選項,則設置為 " +"``true``,否則設置為 ``false``。" #: ../../using/venv-create.inc:101 msgid "" "Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be " "invoked to bootstrap ``pip`` into the virtual environment." msgstr "" +"除非 ``--without-pip`` 選項被提供,否則將調用 :mod:`ensurepip` 來啟用 " +"``pip`` 到虛擬環境中。" #: ../../using/venv-create.inc:104 msgid "" @@ -178,6 +203,8 @@ msgid "" "environment will be created, according to the given options, at each " "provided path." msgstr "" +"可以向 ``venv`` 提供多個路徑,這樣每個提供的路徑都將根據給定的選項建立一個相" +"同的虛擬環境。" #: ../../library/venv.rst:50 msgid "How venvs work" From 5257e3a24d60c2de6bf89eb8d3ede69cdfde3809 Mon Sep 17 00:00:00 2001 From: Jackson <56949000+jacksonchen1998@users.noreply.github.com> Date: Sun, 9 Jul 2023 23:54:58 +0800 Subject: [PATCH 05/10] Update library/venv.po Co-authored-by: Wei-Hsiang (Matt) Wang --- library/venv.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/venv.po b/library/venv.po index 67446999e0f..152c8145430 100644 --- a/library/venv.po +++ b/library/venv.po @@ -75,7 +75,7 @@ msgstr "建立虛擬環境" msgid "" "Creation of :ref:`virtual environments ` is done by executing the " "command ``venv``::" -msgstr "建立 :ref:`虛擬環境 ` 的方法是透過執行指令 ``venv``:" +msgstr "建立\\ :ref:`虛擬環境 `\\ 的方法是透過執行指令 ``venv``:" #: ../../using/venv-create.inc:6 msgid "" From 98d8a5be9b5c8a8e0f7b862ea62269b8861b1f28 Mon Sep 17 00:00:00 2001 From: Jackson <56949000+jacksonchen1998@users.noreply.github.com> Date: Sun, 9 Jul 2023 23:55:05 +0800 Subject: [PATCH 06/10] Update library/venv.po Co-authored-by: Wei-Hsiang (Matt) Wang --- library/venv.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/venv.po b/library/venv.po index 152c8145430..331f5cc41cc 100644 --- a/library/venv.po +++ b/library/venv.po @@ -93,7 +93,7 @@ msgstr "" "執行此命令會建立目標目錄(同時也會建立不存在的父目錄)並在目錄中放置一個名為 " "``pyvenv.cfg`` 的檔案,其中包含一個指向執行該命令的 Python 安裝路徑的 " "``home`` 鍵(目標目錄的常見名稱為 ``.venv``)。同時,它會建立一個 ``bin`` " -"(在 Windows 上為 ``Scripts``)子目錄,其中包含一個 Python 二進制檔案的副本/" +"(在 Windows 上為 ``Scripts``)子目錄,其中包含一個 Python 二進位檔案的副本/" "符號連結(根據建立環境時使用的平台或引數而定)。此外,它還會建立一個(最初為" "空的) ``lib/pythonX.Y/site-packages`` 子目錄(在 Windows 上為 ``Lib\\site-" "packages``)。如果指定的目錄已存在,則將重新使用該目錄。" From 1b203a87cc48583c45b55d3c5b86065382b5f7f5 Mon Sep 17 00:00:00 2001 From: Jackson <56949000+jacksonchen1998@users.noreply.github.com> Date: Sun, 9 Jul 2023 23:57:37 +0800 Subject: [PATCH 07/10] Update library/venv.po Co-authored-by: Wei-Hsiang (Matt) Wang --- library/venv.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/venv.po b/library/venv.po index 331f5cc41cc..8bcb4f21363 100644 --- a/library/venv.po +++ b/library/venv.po @@ -104,7 +104,7 @@ msgid "" "Python 3.3 and 3.4, and is :ref:`deprecated in Python 3.6 `." msgstr "" "``pyvenv`` 是在 Python 3.3 和 3.4 中建立虛擬環境的推薦工具,但在 Python 3.6 " -"中已被 :ref:`棄用 `。" +"中已被\\ :ref:`棄用 `。" #: ../../using/venv-create.inc:22 msgid "" From 0fe9443bfc1a774c4664417bb824e7287489e3d2 Mon Sep 17 00:00:00 2001 From: Jackson <56949000+jacksonchen1998@users.noreply.github.com> Date: Sun, 9 Jul 2023 23:57:47 +0800 Subject: [PATCH 08/10] Update library/venv.po Co-authored-by: Wei-Hsiang (Matt) Wang --- library/venv.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/venv.po b/library/venv.po index 8bcb4f21363..33b4252c5a4 100644 --- a/library/venv.po +++ b/library/venv.po @@ -176,7 +176,7 @@ msgid "" "See `About Execution Policies `_ for more information." msgstr "" -"有關更多資訊,請參閱 `關於執行原則 `_。" #: ../../using/venv-create.inc:97 From e2ff339d391d2c87442d98af1fed150499208e90 Mon Sep 17 00:00:00 2001 From: Jackson <56949000+jacksonchen1998@users.noreply.github.com> Date: Sun, 9 Jul 2023 23:58:16 +0800 Subject: [PATCH 09/10] Update library/venv.po Co-authored-by: Wei-Hsiang (Matt) Wang --- library/venv.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/venv.po b/library/venv.po index 33b4252c5a4..9a1144a8ad4 100644 --- a/library/venv.po +++ b/library/venv.po @@ -120,7 +120,7 @@ msgid "" "Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for " "your :ref:`Python installation `::" msgstr "" -"或者,如你已經為你的 :ref:`Python 安裝 ` 配置了 ``PATH`` " +"或者,如你已經為你的 :ref:`Python 安裝 `\\ 配置了 ``PATH`` " "和 ``PATHEXT`` 變數,則可以執行以下命令:" #: ../../using/venv-create.inc:36 From be7c1b779a7e8ce4a30b47e3d076557edd4512a1 Mon Sep 17 00:00:00 2001 From: jacksonchen1998 Date: Mon, 10 Jul 2023 00:02:47 +0800 Subject: [PATCH 10/10] [UDAPTE] Some typo in`venv.po` --- library/venv.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/venv.po b/library/venv.po index 9a1144a8ad4..edabd97b3b2 100644 --- a/library/venv.po +++ b/library/venv.po @@ -90,7 +90,7 @@ msgid "" "this is ``Lib\\site-packages``). If an existing directory is specified, it " "will be re-used." msgstr "" -"執行此命令會建立目標目錄(同時也會建立不存在的父目錄)並在目錄中放置一個名為 " +"執行此命令會建立目標目錄(同時也會建立任何還不存在的父目錄)並在目錄中放置一個名為 " "``pyvenv.cfg`` 的檔案,其中包含一個指向執行該命令的 Python 安裝路徑的 " "``home`` 鍵(目標目錄的常見名稱為 ``.venv``)。同時,它會建立一個 ``bin`` " "(在 Windows 上為 ``Scripts``)子目錄,其中包含一個 Python 二進位檔案的副本/" @@ -176,7 +176,7 @@ msgid "" "See `About Execution Policies `_ for more information." msgstr "" -"有關更多資訊,請參閱\\ `關於執行原則 `_。" #: ../../using/venv-create.inc:97 @@ -194,7 +194,7 @@ msgid "" "Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be " "invoked to bootstrap ``pip`` into the virtual environment." msgstr "" -"除非 ``--without-pip`` 選項被提供,否則將調用 :mod:`ensurepip` 來啟用 " +"除非 ``--without-pip`` 選項被提供,否則將調用 :mod:`ensurepip` 來啟動 " "``pip`` 到虛擬環境中。" #: ../../using/venv-create.inc:104