Repository navigation
Expand file tree
/
Copy pathargparse-optparse.po
More file actions
83 lines (63 loc) · 7.87 KB
/
Copy pathargparse-optparse.po
File metadata and controls
83 lines (63 loc) · 7.87 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
# 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:
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
# Revisto <theRevisto@gmail.com>, 2025
# Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026
#
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-10-11 14:19+0000\n"
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
"Language-Team: Persian (https://github.com/python/python-docs-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 "Migrating ``optparse`` code to ``argparse``"
msgstr "مهاجرت کد ``optparse`` به ``argparse``"
msgid "The :mod:`argparse` module offers several higher level features not natively provided by the :mod:`optparse` module, including:"
msgstr "ماژول :mod:`argparse` چندین قابلیت سطح بالاتر ارائه میدهد که بهصورت ذاتی توسط ماژول :mod:`optparse` ارائه نمیشوند، از جمله:"
msgid "Handling positional arguments."
msgstr "مدیریت آرگومانهای جایگاهی."
msgid "Supporting subcommands."
msgstr "پشتیبانی از زیردستورها."
msgid "Allowing alternative option prefixes like ``+`` and ``/``."
msgstr "اجازه دادن به پیشوندهای جایگزین گزینه مانند ``+`` و ``/``."
msgid "Handling zero-or-more and one-or-more style arguments."
msgstr "مدیریت آرگومانهایی با سبک صفر-یا-بیشتر و یک-یا-بیشتر."
msgid "Producing more informative usage messages."
msgstr "تولید پیامهای کاربرد آگاهکنندهتر."
msgid "Providing a much simpler interface for custom ``type`` and ``action``."
msgstr "فراهم کردن رابطی بسیار سادهتر برای ``type`` و ``action`` سفارشی."
msgid "Originally, the :mod:`argparse` module attempted to maintain compatibility with :mod:`optparse`. However, the fundamental design differences between supporting declarative command line option processing (while leaving positional argument processing to application code), and supporting both named options and positional arguments in the declarative interface mean that the API has diverged from that of ``optparse`` over time."
msgstr "در ابتدا، ماژول :mod:`argparse` تلاش میکرد سازگاری با :mod:`optparse` را حفظ کند. با این حال، تفاوتهای بنیادین طراحی میان پشتیبانی از پردازش گزینههای خط فرمان بهصورت اعلانی (در حالی که پردازش آرگومانهای جایگاهی به کد برنامه واگذار شده است)، و پشتیبانی از گزینههای نامدار و همچنین آرگومانهای جایگاهی در رابط اعلانی به این معناست که API بهمرور زمان از ``optparse`` فاصله گرفته است."
msgid "As described in :ref:`choosing-an-argument-parser`, applications that are currently using :mod:`optparse` and are happy with the way it works can just continue to use ``optparse``."
msgstr "همانطور که در :ref:`choosing-an-argument-parser` توضیح داده شده است، برنامههایی که در حال حاضر از :mod:`optparse` استفاده میکنند و از روش کار آن رضایت دارند، میتوانند صرفاً به استفاده از ``optparse`` ادامه دهند."
msgid "Application developers that are considering migrating should also review the list of intrinsic behavioural differences described in that section before deciding whether or not migration is desirable."
msgstr "توسعهدهندگان برنامههای کاربردی که مهاجرت را مدنظر دارند، باید پیش از تصمیمگیری دربارهی اینکه آیا مهاجرت مطلوب است یا خیر، فهرست تفاوتهای رفتاری ذاتی توصیفشده در آن بخش را نیز بررسی کنند."
msgid "For applications that do choose to migrate from :mod:`optparse` to :mod:`argparse`, the following suggestions should be helpful:"
msgstr "برای برنامههایی که مهاجرت از :mod:`optparse` به :mod:`argparse` را انتخاب میکنند، پیشنهادهای زیر باید مفید باشد:"
msgid "Replace all :meth:`optparse.OptionParser.add_option` calls with :meth:`ArgumentParser.add_argument` calls."
msgstr "تمام فراخوانیهای :meth:`optparse.OptionParser.add_option` را با فراخوانیهای :meth:`ArgumentParser.add_argument` جایگزین کنید."
msgid "Replace ``(options, args) = parser.parse_args()`` with ``args = parser.parse_args()`` and add additional :meth:`ArgumentParser.add_argument` calls for the positional arguments. Keep in mind that what was previously called ``options``, now in the :mod:`argparse` context is called ``args``."
msgstr "``(options, args) = parser.parse_args()`` را با ``args = parser.parse_args()`` جایگزین کنید و فراخوانیهای بیشتری از :meth:`ArgumentParser.add_argument` را برای آرگومانهای جایگاهی اضافه کنید. به خاطر داشته باشید که آنچه پیشتر ``options`` نامیده میشد، اکنون در زمینهی :mod:`argparse`، ``args`` نامیده میشود."
msgid "Replace :meth:`optparse.OptionParser.disable_interspersed_args` by using :meth:`~ArgumentParser.parse_intermixed_args` instead of :meth:`~ArgumentParser.parse_args`."
msgstr "برای جایگزینی :meth:`optparse.OptionParser.disable_interspersed_args`، بهجای :meth:`~ArgumentParser.parse_args` از :meth:`~ArgumentParser.parse_intermixed_args` استفاده کنید."
msgid "Replace callback actions and the ``callback_*`` keyword arguments with ``type`` or ``action`` arguments."
msgstr "کنشهای کالبک و آرگومانهای کلیدواژهای ``callback_*`` را با آرگومانهای ``type`` یا ``action`` جایگزین کنید."
msgid "Replace string names for ``type`` keyword arguments with the corresponding type objects (e.g. int, float, complex, etc)."
msgstr "نامهای رشتهای برای آرگومانهای کلیدواژهای ``type`` را با اشیای نوع متناظر جایگزین کنید (مثلاً int، float، complex و غیره)."
msgid "Replace :class:`optparse.Values` with :class:`Namespace` and :exc:`optparse.OptionError` and :exc:`optparse.OptionValueError` with :exc:`ArgumentError`."
msgstr ":class:`optparse.Values` را با :class:`Namespace`، و :exc:`optparse.OptionError` و :exc:`optparse.OptionValueError` را با :exc:`ArgumentError` جایگزین کنید."
msgid "Replace strings with implicit arguments such as ``%default`` or ``%prog`` with the standard Python syntax to use dictionaries to format strings, that is, ``%(default)s`` and ``%(prog)s``."
msgstr "رشتههای دارای آرگومانهای ضمنی مانند ``%default`` یا ``%prog`` را با سینتکس استاندارد پایتون برای استفاده از دیکشنریها جهت قالببندی رشتهها، یعنی ``%(default)s`` و ``%(prog)s``، جایگزین کنید."
msgid "Replace the OptionParser constructor ``version`` argument with a call to ``parser.add_argument('--version', action='version', version='<the version>')``."
msgstr "آرگومان ``version`` سازندهی OptionParser را با فراخوانی ``parser.add_argument('--version', action='version', version='<the version>')`` جایگزین کنید."