@@ -29,10 +29,10 @@ msgid ""
2929"running a :program:`python` executable and entering commands at an "
3030"interactive prompt, or by running a Python script."
3131msgstr ""
32- "Android 上的 Python 與桌面版的 Python 不同。 在桌面版上,Python 通常作為系 "
33- "統資源安裝 ,供該台電腦上的任何使用者使用。使用者通常透過執 "
34- "行 :program:`python` 可執行檔並在互動式提示字元中輸入指令,或是直接執行 "
35- "Python 腳本與 Python 互動 。"
32+ "Android 上的 Python 與桌面版的 Python 不同。 在桌面版上,Python 通常作為系統 "
33+ "資源安裝 ,供該台電腦上的任何使用者使用。使用者通常透過執行 :program:`python` "
34+ "可執行檔並在互動式提示字元中輸入指令,或是直接執行 Python 腳本與 Python 互 "
35+ "動 。"
3636
3737#: ../../using/android.rst:13
3838msgid ""
@@ -47,11 +47,16 @@ msgstr ""
4747msgid ""
4848"As a result, the only way you can use Python on Android is in embedded mode "
4949"– that is, by writing a native Android application, embedding a Python "
50- "interpreter using ``libpython``, and invoking Python code using the :ref: "
51- "`Python embedding API <embedding>`. The full Python interpreter, the "
52- "standard library, and all your Python code is then packaged into your app "
53- "for its own private use."
50+ "interpreter using ``libpython``, and invoking Python code using "
51+ "the :ref: `Python embedding API <embedding>`. The full Python interpreter, "
52+ "the standard library, and all your Python code is then packaged into your "
53+ "app for its own private use."
5454msgstr ""
55+ "因此,在 Android 上使用 Python 的唯一方式就是以嵌入模式運作 - 也就是撰寫一個"
56+ "原生的 Android 應用程式,使用 ``libpython`` 嵌入 Python 直譯器,並透"
57+ "過 :ref:`Python embedding API <embedding>` 呼叫 Python 程式碼。完整的 Python "
58+ "直譯器、標準函式庫,以及你所有的 Python 程式碼,都會被打包進你的應用程式,供"
59+ "該應用程式使用。"
5560
5661#: ../../using/android.rst:23
5762msgid ""
@@ -176,6 +181,9 @@ msgid ""
176181"testbed/app/src/main/c/main_activity.c>`. This will need to be C code called "
177182"via JNI."
178183msgstr ""
184+ "在你的應用程式中加入程式碼,以 :source:`start Python in embedded mode "
185+ "<Android/testbed/app/src/main/c/main_activity.c>`。這需要透過 JNI 呼叫的 C 語"
186+ "言程式碼。"
179187
180188#: ../../using/android.rst:75
181189msgid "Building a Python package for Android"
@@ -184,8 +192,12 @@ msgstr "建置用於 Android 的 Python 套件"
184192#: ../../using/android.rst:77
185193msgid ""
186194"Python packages can be built for Android as wheels and released on PyPI. The "
187- "recommended tool for doing this is `cibuildwheel <https://cibuildwheel.pypa. "
188- "io/en/stable/platforms/#android>`__, which automates all the details of "
189- "setting up a cross-compilation environment, building the wheel, and testing "
190- "it on an emulator."
195+ "recommended tool for doing this is `cibuildwheel <https://"
196+ "cibuildwheel.pypa. io/en/stable/platforms/#android>`__, which automates all "
197+ "the details of setting up a cross-compilation environment, building the "
198+ "wheel, and testing it on an emulator."
191199msgstr ""
200+ "Python 套件可以為 Android 建置成 wheels 並發布到 PyPI。建議使用的工具是 "
201+ "`cibuildwheel <https://cibuildwheel.pypa.io/en/stable/platforms/"
202+ "#android>`__,它會自動設定交叉編譯環境、建置 wheel,以及在模擬器上測試等所有"
203+ "細節。"
0 commit comments