-
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathandroid.po
More file actions
203 lines (176 loc) · 8.41 KB
/
android.po
File metadata and controls
203 lines (176 loc) · 8.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# python-doc bot, 2025
# Freesand Leo <yuqinju@163.com>, 2025
# 99 <wh2099@pm.me>, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-07 14:20+0000\n"
"PO-Revision-Date: 2025-09-16 00:02+0000\n"
"Last-Translator: 99 <wh2099@pm.me>, 2026\n"
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: ../../using/android.rst:5
msgid "Using Python on Android"
msgstr "在Android上使用 Python"
#: ../../using/android.rst:7
msgid ""
"Python on Android is unlike Python on desktop platforms. On a desktop "
"platform, Python is generally installed as a system resource that can be "
"used by any user of that computer. Users then interact with Python by "
"running a :program:`python` executable and entering commands at an "
"interactive prompt, or by running a Python script."
msgstr ""
"Python 在 Android 上与桌面平台上不同。 在桌面平台上,Python 通常是作为系统资源安装的,该计算机的任何用户都可以使用。 "
"然后,用户通过运行 :program:`python` 可执行文件并在交互提示符中输入命令,或运行脚本。"
#: ../../using/android.rst:13
msgid ""
"On Android, there is no concept of installing as a system resource. The only"
" unit of software distribution is an \"app\". There is also no console where"
" you could run a :program:`python` executable, or interact with a Python "
"REPL."
msgstr ""
"在安卓系统中,没有将安装作为系统资源的概念。 软件分发的唯一单位是\"应用程序\"。 也没有可以运行 :program:`python` 可执行文件或与"
" Python REPL 交互的控制台。"
#: ../../using/android.rst:17
msgid ""
"As a result, the only way you can use Python on Android is in embedded mode "
"– that is, by writing a native Android application, embedding a Python "
"interpreter using ``libpython``, and invoking Python code using the "
":ref:`Python embedding API <embedding>`. The full Python interpreter, the "
"standard library, and all your Python code is then packaged into your app "
"for its own private use."
msgstr ""
"因此,在 Android 上使用 Python 的唯一方式是嵌入模式,即编写本地 Android 应用,使用 ``libpython`` 嵌入 "
"Python 解释器,并使用 :ref:`Python 嵌入 API <embedding>` 调用 Python 代码。然后,完整的 Python "
"解释器、标准库和所有 Python 代码都会打包到您的应用程序中,供其单独使用。"
#: ../../using/android.rst:23
msgid ""
"The Python standard library has some notable omissions and restrictions on "
"Android. See the :ref:`API availability guide <mobile-availability>` for "
"details."
msgstr ""
"Python 标准库在 Android 上有一些明显的遗漏和限制。 详情参见 :ref:`API 可用性指南 <mobile-"
"availability>`。"
#: ../../using/android.rst:28
msgid "Adding Python to an Android app"
msgstr "将 Python 添加到 Android 应用"
#: ../../using/android.rst:30
msgid ""
"Most app developers should use one of the following tools, which will "
"provide a much easier experience:"
msgstr "大多数开发者应当使用下列工具之一,它们将提供更便捷的体验:"
#: ../../using/android.rst:33
msgid ""
"`Briefcase <https://briefcase.readthedocs.io>`__, from the BeeWare project"
msgstr "来自 BeeWare 项目的 `Briefcase <https://briefcase.readthedocs.io>`__"
#: ../../using/android.rst:34
msgid ""
"`Buildozer <https://buildozer.readthedocs.io>`__, from the Kivy project"
msgstr "来自 Kivy 项目的 `Buildozer <https://buildozer.readthedocs.io>`__"
#: ../../using/android.rst:35
msgid "`Chaquopy <https://chaquo.com/chaquopy>`__"
msgstr "`Chaquopy <https://chaquo.com/chaquopy>`__"
#: ../../using/android.rst:36
msgid ""
"`pyqtdeploy <https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/>`__"
msgstr ""
"`pyqtdeploy <https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/>`__"
#: ../../using/android.rst:37
msgid "`Termux <https://termux.dev/en/>`__"
msgstr "`Termux <https://termux.dev/en/>`__"
#: ../../using/android.rst:39
msgid ""
"If you're sure you want to do all of this manually, read on. You can use the"
" :source:`testbed app <Android/testbed>` as a guide; each step below "
"contains a link to the relevant file."
msgstr ""
"如果您确定要手动完成所有这些操作,请继续阅读。您可以使用 :source:`testbed app <Android/testbed>` "
"作为指南;下面的每个步骤都包含相关文件的链接。"
#: ../../using/android.rst:43
msgid "First, acquire a build of Python for Android:"
msgstr "首先,获取针对 Android 的 Python 构建版:"
#: ../../using/android.rst:45
msgid ""
"The easiest way is to download an Android release from `python.org "
"<https://www.python.org/downloads/android/>`__. The ``prefix`` directory "
"mentioned below is at the top level of the package."
msgstr ""
"最简单的方式是从 `python.org <https://www.python.org/downloads/android/>`__ 下载 "
"Android 发布版。 下面提及的 ``prefix`` 目录将位于软件包的最高层级。"
#: ../../using/android.rst:49
msgid ""
"Or if you want to build it yourself, follow the instructions in "
":source:`Android/README.md`. The ``prefix`` directory will be created under "
":samp:`cross-build/{HOST}`."
msgstr ""
"或者如果你想要自行构建,请遵照 :source:`Android/README.md` 中的指导。 ``prefix`` 目录将在 "
":samp:`cross-build/{HOST}` 之下创建。"
#: ../../using/android.rst:53
msgid ""
"Add code to your :source:`build.gradle "
"<Android/testbed/app/build.gradle.kts>` file to copy the following items "
"into your project. All except your own Python code can be copied from "
"``prefix/lib``:"
msgstr ""
"向你的 :source:`build.gradle <Android/testbed/app/build.gradle.kts>` "
"文件添加代码来将以下条目拷贝到你的项目中。 除了你自己的 Python 代码以外所有内容均可从 ``prefix/lib`` 拷贝:"
#: ../../using/android.rst:57
msgid "In your JNI libraries:"
msgstr "在 JNI 库中:"
#: ../../using/android.rst:59
msgid "``libpython*.*.so``"
msgstr "``libpython*.*.so``"
#: ../../using/android.rst:60
msgid "``lib*_python.so`` (external libraries such as OpenSSL)"
msgstr "``lib*_python.so`` (外部库,如 OpenSSL)"
#: ../../using/android.rst:62
msgid "In your assets:"
msgstr "在您的资源文件中:"
#: ../../using/android.rst:64
msgid "``python*.*`` (the Python standard library)"
msgstr "``python*.*`` (Python 标准库)"
#: ../../using/android.rst:65
msgid "``python*.*/site-packages`` (your own Python code)"
msgstr "``python*.*/site-packages`` (您自己的 Python 代码)"
#: ../../using/android.rst:67
msgid ""
"Add code to your app to :source:`extract the assets to the filesystem "
"<Android/testbed/app/src/main/java/org/python/testbed/MainActivity.kt>`."
msgstr ""
"在应用程序中添加代码以 :source:`提取资源文件到文件系统 "
"<Android/testbed/app/src/main/java/org/python/testbed/MainActivity.kt>`。"
#: ../../using/android.rst:70
msgid ""
"Add code to your app to :source:`start Python in embedded mode "
"<Android/testbed/app/src/main/c/main_activity.c>`. This will need to be C "
"code called via JNI."
msgstr ""
"在应用程序中添加代码 :source:`以嵌入模式启动 Python "
"<Android/testbed/app/src/main/c/main_activity.c>`。 这需要通过 JNI 调用 C 代码。"
#: ../../using/android.rst:75
msgid "Building a Python package for Android"
msgstr "为 Android 构建 Python 软件包"
#: ../../using/android.rst:77
msgid ""
"Python packages can be built for Android as wheels and released on PyPI. The"
" recommended tool for doing this is `cibuildwheel "
"<https://cibuildwheel.pypa.io/en/stable/platforms/#android>`__, which "
"automates all the details of setting up a cross-compilation environment, "
"building the wheel, and testing it on an emulator."
msgstr ""
"Python 软件包可以作为针对 Android 构建的 wheel 文件并在 PyPI 上发布。 完成此任务的推荐工具是 `cibuildwheel "
"<https://cibuildwheel.pypa.io/en/stable/platforms/#android>`__,它将自动化设置交叉编译环境、构建"
" wheel 以及在模拟器上进行测试等所有细节。"