-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbinascii.po
More file actions
148 lines (110 loc) · 15.2 KB
/
Copy pathbinascii.po
File metadata and controls
148 lines (110 loc) · 15.2 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
# 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:
# Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025
# Rafael Fontenelle <rffontenelle@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: 2026-08-28 11:24+0330\n"
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\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"
"X-Generator: Poedit 3.6\n"
msgid ":mod:`!binascii` --- Convert between binary and ASCII"
msgstr ":mod:`!binascii` --- تبدیل بین دادههای دودویی و ASCII"
msgid "The :mod:`!binascii` module contains a number of methods to convert between binary and various ASCII-encoded binary representations. Normally, you will not use these functions directly but use wrapper modules like :mod:`base64` instead. The :mod:`!binascii` module contains low-level functions written in C for greater speed that are used by the higher-level modules."
msgstr "ماژول :mod:`!binascii` شامل تعدادی متد برای تبدیل میان دادههای دودویی و بازنماییهای دودویی مختلف کدگذاریشده با ASCII است. بهطور معمول، شما این توابع را مستقیماً استفاده نمیکنید، بلکه در عوض از ماژولهای پوششی مانند :mod:`base64` استفاده میکنید. ماژول :mod:`!binascii` شامل توابع سطح پایینی است که برای سرعت بیشتر به زبان C نوشته شدهاند و توسط ماژولهای سطح بالاتر استفاده میشوند."
msgid "``a2b_*`` functions accept Unicode strings containing only ASCII characters. Other functions only accept :term:`bytes-like objects <bytes-like object>` (such as :class:`bytes`, :class:`bytearray` and other objects that support the buffer protocol)."
msgstr "توابع ``a2b_*`` رشتههای یونیکدی را میپذیرند که فقط شامل نویسههای ASCII باشند. سایر توابع فقط :term:`اشیاء شبهبایت <bytes-like object>` (مانند :class:`bytes`، :class:`bytearray` و اشیاء دیگری که از پروتکل بافر پشتیبانی میکنند) را میپذیرند."
msgid "ASCII-only unicode strings are now accepted by the ``a2b_*`` functions."
msgstr "رشتههای یونیکدی که فقط شامل نویسههای ASCII هستند، اکنون توسط توابع ``a2b_*`` پذیرفته میشوند."
msgid "The :mod:`!binascii` module defines the following functions:"
msgstr "ماژول :mod:`!binascii` توابع زیر را تعریف میکند:"
msgid "Convert a single line of uuencoded data back to binary and return the binary data. Lines normally contain 45 (binary) bytes, except for the last line. Line data may be followed by whitespace."
msgstr "یک خط منفرد از دادههای uuencoded را به دادههای دودویی تبدیل میکند و دادههای دودویی را برمیگرداند. سطرها معمولاً حاوی ۴۵ بایت (دودویی) هستند، بهجز خط آخر. ممکن است پس از دادههای خط، فضای سفید وجود داشته باشد."
msgid "Convert binary data to a line of ASCII characters, the return value is the converted line, including a newline char. The length of *data* should be at most 45. If *backtick* is true, zeros are represented by ``'`'`` instead of spaces."
msgstr "دادههای دودویی را به سطری از نویسههای ASCII تبدیل میکند؛ مقدار بازگشتی، خط تبدیلشده بههمراه یک نویسه خط جدید است. طول *data* باید حداکثر 45 باشد. اگر *backtick* درست باشد، صفرها بهجای فاصلهها با ``'`'`` نمایش داده میشوند."
msgid "Added the *backtick* parameter."
msgstr "پارامتر *backtick* افزوده شد."
msgid "Convert a block of base64 data back to binary and return the binary data. More than one line may be passed at a time."
msgstr "یک بلوک از دادههای base64 را دوباره به دودویی تبدیل میکند و دادههای دودویی را برمیگرداند. شما میتوانید بیش از یک خط را در هر بار ارسال کنید."
msgid "If *strict_mode* is true, only valid base64 data will be converted. Invalid base64 data will raise :exc:`binascii.Error`."
msgstr "اگر *strict_mode* درست باشد، فقط دادههای معتبر base64 تبدیل میشوند. دادههای نامعتبر base64 باعث پرتاب :exc:`binascii.Error` میشوند."
msgid "Valid base64:"
msgstr "base64 معتبر:"
msgid "Conforms to :rfc:`3548`."
msgstr "با :rfc:`3548` مطابقت دارد."
msgid "Contains only characters from the base64 alphabet."
msgstr "فقط شامل نویسههای الفبای base64 است."
msgid "Contains no excess data after padding (including excess padding, newlines, etc.)."
msgstr "فاقد داده اضافی پس از پدینگ (padding) است (از جمله پدینگ اضافی، سطرهای جدید و غیره)."
msgid "Does not start with a padding."
msgstr "با یک پرکننده (padding) شروع نمیشود."
msgid "Added the *strict_mode* parameter."
msgstr "پارامتر *strict_mode* اضافه شد."
msgid "Convert binary data to a line of ASCII characters in base64 coding. The return value is the converted line, including a newline char if *newline* is true. The output of this function conforms to :rfc:`3548`."
msgstr "دادههای دودویی را به سطری از نویسههای ASCII با کدگذاری base64 تبدیل میکند. مقدار بازگشتی، خط تبدیلشده است و در صورتی که *newline* درست باشد، شامل یک نویسه خط جدید نیز میشود. خروجی این تابع با :rfc:`3548` مطابقت دارد."
msgid "Added the *newline* parameter."
msgstr "پارامتر *newline* افزوده شد."
msgid "Convert a block of quoted-printable data back to binary and return the binary data. More than one line may be passed at a time. If the optional argument *header* is present and true, underscores will be decoded as spaces."
msgstr "یک بلوک از دادههای quoted-printable را دوباره به دودویی تبدیل میکند و دادههای دودویی را برمیگرداند. میتوان بیش از یک خط را در هر نوبت ارسال کرد. اگر آرگومان اختیاری *header* وجود داشته باشد و مقدار آن درست باشد، زیرسطرها بهعنوان فاصله کدگشایی میشوند."
msgid "Convert binary data to a line(s) of ASCII characters in quoted-printable encoding. The return value is the converted line(s). If the optional argument *quotetabs* is present and true, all tabs and spaces will be encoded. If the optional argument *istext* is present and true, newlines are not encoded but trailing whitespace will be encoded. If the optional argument *header* is present and true, spaces will be encoded as underscores per :rfc:`1522`. If the optional argument *header* is present and false, newline characters will be encoded as well; otherwise linefeed conversion might corrupt the binary data stream."
msgstr "دادههای دودویی را به یک یا چند خط از نویسههای ASCII با کدگذاری quoted-printable تبدیل میکند. مقدار بازگشتی، خط یا سطرهای تبدیلشده است. اگر آرگومان اختیاری *quotetabs* موجود و درست باشد، همهی تبها و فاصلهها کدگذاری خواهند شد. اگر آرگومان اختیاری *istext* موجود و درست باشد، نویسههای خط جدید کدگذاری نمیشوند، اما فاصلههای انتهایی کدگذاری خواهند شد. اگر آرگومان اختیاری *header* موجود و درست باشد، فاصلهها مطابق :rfc:`1522` بهصورت زیرخط کدگذاری میشوند. اگر آرگومان اختیاری *header* موجود و نادرست باشد، نویسههای خط جدید نیز کدگذاری خواهند شد؛ در غیر این صورت، تبدیل linefeed ممکن است جریان دادههای دودویی را خراب کند."
msgid "Compute a 16-bit CRC value of *data*, starting with *value* as the initial CRC, and return the result. This uses the CRC-CCITT polynomial *x*:sup:`16` + *x*:sup:`12` + *x*:sup:`5` + 1, often represented as 0x1021. This CRC is used in the binhex4 format."
msgstr "مقدار CRC ۱۶بیتی *data* را، با شروع از *value* بهعنوان CRC اولیه، محاسبه میکند و نتیجه را برمیگرداند. این از چندجملهای CRC-CCITT *x*:sup:`16` + *x*:sup:`12` + *x*:sup:`5` + 1 استفاده میکند، که اغلب بهصورت 0x1021 نمایش داده میشود. این CRC در قالب binhex4 استفاده میشود."
msgid "Compute CRC-32, the unsigned 32-bit checksum of *data*, starting with an initial CRC of *value*. The default initial CRC is zero. The algorithm is consistent with the ZIP file checksum. Since the algorithm is designed for use as a checksum algorithm, it is not suitable for use as a general hash algorithm. Use as follows::"
msgstr "CRC-32، جمعآزمای ۳۲ بیتی بدون علامت برای *data* را با شروع از مقدار اولیهی CRC برابر با *value* محاسبه کنید. مقدار اولیهی پیشفرض CRC صفر است. این الگوریتم با جمعآزمای پرونده ZIP سازگار است. از آنجا که این الگوریتم برای استفاده بهعنوان الگوریتم جمعآزما طراحی شده است، برای استفاده بهعنوان یک الگوریتم هش عمومی مناسب نیست. بهصورت زیر استفاده کنید::"
msgid ""
"print(binascii.crc32(b\"hello world\"))\n"
"# Or, in two pieces:\n"
"crc = binascii.crc32(b\"hello\")\n"
"crc = binascii.crc32(b\" world\", crc)\n"
"print('crc32 = {:#010x}'.format(crc))"
msgstr ""
"print(binascii.crc32(b\"hello world\"))\n"
"# Or, in two pieces:\n"
"crc = binascii.crc32(b\"hello\")\n"
"crc = binascii.crc32(b\" world\", crc)\n"
"print('crc32 = {:#010x}'.format(crc))"
msgid "The result is always unsigned."
msgstr "نتیجه همواره بدون علامت است."
msgid "Return the hexadecimal representation of the binary *data*. Every byte of *data* is converted into the corresponding 2-digit hex representation. The returned bytes object is therefore twice as long as the length of *data*."
msgstr "بازنمایی مبنای شانزدهی دادهی دودویی *data* را برمیگرداند. هر بایت از *data* به بازنمایی مبنای شانزدهی ۲رقمی متناظر تبدیل میشود. بنابراین، شیء bytes برگرداندهشده دو برابر طول *data* طول دارد."
msgid "Similar functionality (but returning a text string) is also conveniently accessible using the :meth:`bytes.hex` method."
msgstr "قابلیت مشابهی (اما با برگرداندن یک رشته متنی) همچنین بهراحتی با استفاده از متد :meth:`bytes.hex` قابل دسترسی است."
msgid "If *sep* is specified, it must be a single character str or bytes object. It will be inserted in the output after every *bytes_per_sep* input bytes. Separator placement is counted from the right end of the output by default, if you wish to count from the left, supply a negative *bytes_per_sep* value."
msgstr "اگر *sep* مشخص شده باشد، باید یک شیء str یا bytes تکنویسهای باشد. این جداکننده در خروجی پس از هر *bytes_per_sep* بایت ورودی درج میشود. بهطور پیشفرض، شمارش محل قرارگیری جداکننده از انتهای راست خروجی انجام میشود؛ اگر میخواهید از سمت چپ شمارش کنید، یک مقدار منفی برای *bytes_per_sep* ارائه دهید."
msgid "The *sep* and *bytes_per_sep* parameters were added."
msgstr "پارامترهای *sep* و *bytes_per_sep* افزوده شدند."
msgid "Return the binary data represented by the hexadecimal string *hexstr*. This function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even number of hexadecimal digits (which can be upper or lower case), otherwise an :exc:`Error` exception is raised."
msgstr "دادهی دودویی نمایشدادهشده توسط رشتهی مبنای شانزده *hexstr* را برمیگرداند. این تابع معکوس :func:`b2a_hex` است. *hexstr* باید حاوی تعداد زوجی از ارقام مبنای شانزده باشد (که میتوانند بهصورت حروف بزرگ یا کوچک باشند)، در غیر این صورت استثنای :exc:`Error` پرتاب میشود."
msgid "Similar functionality (but more liberal towards whitespace) is also accessible using the :meth:`bytes.fromhex` class method."
msgstr "قابلیت مشابهی (اما با سختگیری کمتر نسبت به فضای خالی) نیز از طریق متد کلاسی :meth:`bytes.fromhex` در دسترس است."
msgid "Exception raised on errors. These are usually programming errors."
msgstr "استثنایی که در صورت بروز خطا پرتاب میشود. این موارد معمولاً خطاهای برنامهنویسی هستند."
msgid "Exception raised on incomplete data. These are usually not programming errors, but may be handled by reading a little more data and trying again."
msgstr "استثنایی که هنگام ناقص بودن دادهها پرتاب میشود. این استثناها معمولاً خطاهای برنامهنویسی نیستند، اما ممکن است با خواندن اندکی داده بیشتر و تلاش دوباره مدیریت شوند."
msgid "Module :mod:`base64`"
msgstr "ماژول :mod:`base64`"
msgid "Support for RFC compliant base64-style encoding in base 16, 32, 64, and 85."
msgstr "پشتیبانی از کدگذاری بهسبک base64 مطابق با RFC در مبنای ۱۶، ۳۲، ۶۴ و ۸۵."
msgid "Module :mod:`quopri`"
msgstr "ماژول :mod:`quopri`"
msgid "Support for quoted-printable encoding used in MIME email messages."
msgstr "پشتیبانی از کدگذاری quoted-printable مورد استفاده در پیامهای ایمیل MIME."
msgid "module"
msgstr "ماژول"
msgid "base64"
msgstr "base64"