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

Skip to content

Commit 67fd0de

Browse files
[po] auto sync
1 parent 2581509 commit 67fd0de

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

library/site.po

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,12 @@ msgid ""
263263
"}\\\\site-packages` on Windows. This directory is a site directory, which "
264264
"means that :file:`.pth` files in it will be processed."
265265
msgstr ""
266+
"正在运行的 Python 的用户级 site-packages 的路径。 它可以为 ``None``,如果 "
267+
":func:`getusersitepackages` 尚未被调用的话。 默认值在 UNIX 和非框架 Mac OS X 编译版上为 "
268+
":file:`~/.local/lib/python{X.Y}/site-packages`,在 Mac 框架编译版上为 "
269+
":file:`~/Library/Python/{X.Y}/lib/python/site-packages`,而在 Windows 上则为 "
270+
":file:`{%APPDATA%}\\\\Python\\\\Python{XY}\\\\site-packages`。 "
271+
"此目录属于站点目录,这意味着其中的 :file:`.pth` 文件将会被处理。"
266272

267273
#: ../../library/site.rst:188
268274
msgid ""
@@ -275,13 +281,20 @@ msgid ""
275281
"modules, etc. for the :ref:`user installation scheme <inst-alt-install-"
276282
"user>`. See also :envvar:`PYTHONUSERBASE`."
277283
msgstr ""
284+
"用户级 site-packages 的基准目录的路径。 它可以为 ``None``,如果 :func:`getuserbase` 尚未被调用的话。 "
285+
"默认值在 UNIX 和 Mac OS X 非框架编译版上为 :file:`~/.local`,在 Mac 框架编译版上为 "
286+
":file:`~/Library/Python/{X.Y}`,而在 Windows 上则为 :file:`{%APPDATA%}\\\\Python`。"
287+
" 这个值会被 Distutils 用来计算脚本、数据文件和 Python 模块等的安装目录。 对于 :ref:`用户安装规范 <inst-alt-"
288+
"install-user>`。 另请参阅 :envvar:`PYTHONUSERBASE`。"
278289

279290
#: ../../library/site.rst:200
280291
msgid ""
281292
"Adds all the standard site-specific directories to the module search path. "
282293
"This function is called automatically when this module is imported, unless "
283294
"the Python interpreter was started with the :option:`-S` flag."
284295
msgstr ""
296+
"将所有的标准站点专属目录添加到模块搜索路径。 这个函数会在导入此模块时被自动调用,除非 Python 解释器启动时附带了 :option:`-S` "
297+
"旗标。"
285298

286299
#: ../../library/site.rst:204
287300
msgid "This function used to be called unconditionally."
@@ -292,6 +305,8 @@ msgid ""
292305
"Add a directory to sys.path and process its :file:`.pth` files. Typically "
293306
"used in :mod:`sitecustomize` or :mod:`usercustomize` (see above)."
294307
msgstr ""
308+
"将一个目录添加到 sys.path 并处理其 :file:`.pth` 文件。 通常被用于 :mod:`sitecustomize` 或 "
309+
":mod:`usercustomize` (见下文)。"
295310

296311
#: ../../library/site.rst:216
297312
msgid "Return a list containing all global site-packages directories."
@@ -303,6 +318,8 @@ msgid ""
303318
" initialized yet, this function will also set it, respecting "
304319
":envvar:`PYTHONUSERBASE`."
305320
msgstr ""
321+
"返回用户基准目录的路径 :data:`USER_BASE`。 如果它尚未被初始化,则此函数还将参照 :envvar:`PYTHONUSERBASE` "
322+
"来设置它。"
306323

307324
#: ../../library/site.rst:232
308325
msgid ""
@@ -312,6 +329,9 @@ msgid ""
312329
"site-packages was added to ``sys.path`` :data:`ENABLE_USER_SITE` should be "
313330
"used."
314331
msgstr ""
332+
"返回用户专属 site-packages 目录的路径 :data:`USER_SITE`。 如果它尚未被初始化,则此函数还将参照 "
333+
":data:`USER_BASE` 来设置它。 要确定用户专属 site-packages 是否已被添加到 ``sys.path`` 则应当使用 "
334+
":data:`ENABLE_USER_SITE`。"
315335

316336
#: ../../library/site.rst:244
317337
msgid "Command Line Interface"
@@ -330,6 +350,8 @@ msgid ""
330350
":data:`USER_BASE` and whether the directory exists, then the same thing for "
331351
":data:`USER_SITE`, and finally the value of :data:`ENABLE_USER_SITE`."
332352
msgstr ""
353+
"如果它被不带参数地调用,它将在标准输出打印 :data:`sys.path` 的内容,再打印 :data:`USER_BASE` "
354+
"的值以及该目录是否存在,然后打印 :data:`USER_SITE` 的相应信息,最后打印 :data:`ENABLE_USER_SITE` 的值。"
333355

334356
#: ../../library/site.rst:263
335357
msgid "Print the path to the user base directory."
@@ -343,7 +365,7 @@ msgstr "输出用户site-packages目录的路径。"
343365
msgid ""
344366
"If both options are given, user base and user site will be printed (always "
345367
"in this order), separated by :data:`os.pathsep`."
346-
msgstr ""
368+
msgstr "如果同时给出了两个选项,则将打印用户基准目录和用户站点信息(总是按此顺序),并以 :data:`os.pathsep` 分隔。"
347369

348370
#: ../../library/site.rst:272
349371
msgid ""
@@ -352,6 +374,8 @@ msgid ""
352374
" the user, ``2`` if it is disabled for security reasons or by an "
353375
"administrator, and a value greater than 2 if there is an error."
354376
msgstr ""
377+
"如果给出了其中一个选项,脚本将退出并返回以下值中的一个:如果用户级 site-packages 目录被启用则为 ``0``,如果它被用户禁用则为 "
378+
"``1``,如果它因安全理由或被管理员禁用则为 ``2``,如果发生错误则为大于 2 的值。"
355379

356380
#: ../../library/site.rst:279
357381
msgid ":pep:`370` -- Per user site-packages directory"

0 commit comments

Comments
 (0)