-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathandroid.po
More file actions
103 lines (76 loc) · 9.57 KB
/
Copy pathandroid.po
File metadata and controls
103 lines (76 loc) · 9.57 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
# 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:
# Revisto <theRevisto@gmail.com>, 2025
# Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-09-16 12:56+0000\n"
"PO-Revision-Date: 2024-09-27 14:19+0000\n"
"Language-Team: Persian (https://github.com/python/python-docs-fa/fa/)\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
msgid "Using Python on Android"
msgstr "استفاده از پایتون در اندروید"
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 "پایتون روی اندروید با پایتون روی پلتفرمهای دسکتاپ متفاوت است. در یک پلتفرم دسکتاپ، پایتون معمولاً بهعنوان یک منبع سیستمی نصب میشود که هر کاربر آن رایانه میتواند از آن استفاده کند. سپس کاربران برای تعامل با پایتون، پرونده اجرایی :program:`python` را اجرا کرده و دستورها را در یک اعلان تعاملی وارد میکنند، یا یک اسکریپت پایتون را اجرا میکنند."
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` را اجرا کنید یا با REPL پایتون تعامل داشته باشید."
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 "در نتیجه، تنها راهی که میتوانید روی اندروید از پایتون استفاده کنید، حالت تعبیهشده است – یعنی با نوشتن یک برنامهی بومی اندروید، تعبیه کردن یک مفسر پایتون با استفاده از ``libpython`` و فراخوانی کد پایتون با استفاده از :ref:`API تعبیهی پایتون <embedding>`. سپس مفسر کامل پایتون، کتابخانهی استاندارد و تمام کد پایتون شما درون برنامهتان بستهبندی میشوند تا برنامه آنها را برای استفادهی خصوصی خود به کار بگیرد."
msgid "The Python standard library has some notable omissions and restrictions on Android. See the :ref:`API availability guide <mobile-availability>` for details."
msgstr "کتابخانه استاندارد پایتون در اندروید دارای برخی موارد حذفشده و محدودیتهای قابل توجه است. برای جزئیات، :ref:`راهنمای دسترسیپذیری API <mobile-availability>` را ببینید."
msgid "Adding Python to an Android app"
msgstr "افزودن پایتون به یک برنامه اندروید"
msgid "Most app developers should use one of the following tools, which will provide a much easier experience:"
msgstr "اکثر توسعهدهندگان اپلیکیشن باید از یکی از ابزارهای زیر استفاده کنند که تجربهای بسیار آسانتر فراهم میکند:"
msgid "`Briefcase <https://briefcase.beeware.org>`__, from the BeeWare project"
msgstr "`Briefcase <https://briefcase.beeware.org>`__، از پروژهی BeeWare"
msgid "`Buildozer <https://buildozer.readthedocs.io>`__, from the Kivy project"
msgstr "`Buildozer <https://buildozer.readthedocs.io>`__، از پروژهی Kivy"
msgid "`Chaquopy <https://chaquo.com/chaquopy>`__"
msgstr "`Chaquopy <https://chaquo.com/chaquopy>`__"
msgid "`pyqtdeploy <https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/>`__"
msgstr "`pyqtdeploy <https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/>`__"
msgid "`Termux <https://termux.dev/en/>`__"
msgstr "`Termux <https://termux.dev/en/>`__"
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 <Android/testbed>` بهعنوان راهنما استفاده کنید؛ هر یک از گامهای زیر شامل پیوندی به پرونده مربوطه است."
msgid "First, acquire a build of Python for Android:"
msgstr "ابتدا، یک ساخت از پایتون برای اندروید به دست آورید:"
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/>`__ است. پوشه ``prefix`` که در ادامه ذکر میشود، در سطح بالای بسته قرار دارد."
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}` ایجاد خواهد شد."
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>` خود اضافه کنید تا موارد زیر را به پروژهی شما کپی کند. همهی موارد بهجز کد پایتون خودتان را میتوان از ``prefix/lib`` کپی کرد:"
msgid "In your JNI libraries:"
msgstr "در کتابخانههای JNI شما:"
msgid "``libpython*.*.so``"
msgstr "``libpython*.*.so``"
msgid "``lib*_python.so`` (external libraries such as OpenSSL)"
msgstr "``lib*_python.so`` (کتابخانههای خارجی مانند OpenSSL)"
msgid "In your assets:"
msgstr "در داراییهای (assets) شما:"
msgid "``python*.*`` (the Python standard library)"
msgstr "``python*.*`` (کتابخانه استاندارد پایتون)"
msgid "``python*.*/site-packages`` (your own Python code)"
msgstr "``python*.*/site-packages`` (کد پایتون خودتان)"
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:`استخراج داراییها (assets) به سامانه فایلبندی <Android/testbed/app/src/main/java/org/python/testbed/MainActivity.kt>` کدی به برنامهتان اضافه کنید."
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:`راهاندازی پایتون در حالت تعبیهشده <Android/testbed/app/src/main/c/main_activity.c>`، کدی به برنامهی خود اضافه کنید. این کد باید کد C باشد که از طریق JNI فراخوانی میشود."
msgid "Building a Python package for Android"
msgstr "ساخت بسته پایتون برای اندروید"
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 "بستههای پایتون را میتوان برای اندروید بهصورت چرخ (wheel) ساخت و در PyPI منتشر کرد. ابزار توصیهشده برای انجام این کار `cibuildwheel <https://cibuildwheel.pypa.io/en/stable/platforms/#android>`__ است که تمام جزئیات راهاندازی محیط کامپایل متقاطع، ساختن چرخ و آزمون آن روی یک شبیهساز را بهصورت خودکار انجام میدهد."