Skip to content

Commit 0d36194

Browse files
Update Farsi translations from Transifex
1 parent a8ee8ee commit 0d36194

26 files changed

Lines changed: 14890 additions & 14683 deletions

c-api/arg.po

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.14\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2025-06-20 14:21+0000\n"
16+
"POT-Creation-Date: 2025-06-27 14:20+0000\n"
1717
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
1818
"Last-Translator: navid BH, 2025\n"
1919
"Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/"
@@ -559,7 +559,7 @@ msgstr ""
559559
msgid "Allow :class:`bytearray` objects."
560560
msgstr ""
561561

562-
#: ../../c-api/arg.rst:300 ../../c-api/arg.rst:695
562+
#: ../../c-api/arg.rst:300 ../../c-api/arg.rst:701
563563
msgid "``C`` (:class:`str` of length 1) [int]"
564564
msgstr ""
565565

@@ -569,15 +569,15 @@ msgid ""
569569
"1, to a C :c:expr:`int`."
570570
msgstr ""
571571

572-
#: ../../c-api/arg.rst:304 ../../c-api/arg.rst:702
572+
#: ../../c-api/arg.rst:304 ../../c-api/arg.rst:708
573573
msgid "``f`` (:class:`float`) [float]"
574574
msgstr ""
575575

576576
#: ../../c-api/arg.rst:305
577577
msgid "Convert a Python floating-point number to a C :c:expr:`float`."
578578
msgstr ""
579579

580-
#: ../../c-api/arg.rst:307 ../../c-api/arg.rst:699
580+
#: ../../c-api/arg.rst:307 ../../c-api/arg.rst:705
581581
msgid "``d`` (:class:`float`) [double]"
582582
msgstr ""
583583

@@ -597,7 +597,7 @@ msgstr ""
597597
msgid "Other objects"
598598
msgstr ""
599599

600-
#: ../../c-api/arg.rst:316 ../../c-api/arg.rst:708
600+
#: ../../c-api/arg.rst:316 ../../c-api/arg.rst:714
601601
msgid "``O`` (object) [PyObject \\*]"
602602
msgstr ""
603603

@@ -1134,39 +1134,47 @@ msgstr ""
11341134
msgid "Convert a C :c:expr:`int` to a Python :class:`bool` object."
11351135
msgstr ""
11361136

1137-
#: ../../c-api/arg.rst:691
1137+
#: ../../c-api/arg.rst:689
1138+
msgid ""
1139+
"Be aware that this format requires an ``int`` argument. Unlike most other "
1140+
"contexts in C, variadic arguments are not coerced to a suitable type "
1141+
"automatically. You can convert another type (for example, a pointer or a "
1142+
"float) to a suitable ``int`` value using ``(x) ? 1 : 0`` or ``!!x``."
1143+
msgstr ""
1144+
1145+
#: ../../c-api/arg.rst:697
11381146
msgid "``c`` (:class:`bytes` of length 1) [char]"
11391147
msgstr ""
11401148

1141-
#: ../../c-api/arg.rst:692
1149+
#: ../../c-api/arg.rst:698
11421150
msgid ""
11431151
"Convert a C :c:expr:`int` representing a byte to a Python :class:`bytes` "
11441152
"object of length 1."
11451153
msgstr ""
11461154

1147-
#: ../../c-api/arg.rst:696
1155+
#: ../../c-api/arg.rst:702
11481156
msgid ""
11491157
"Convert a C :c:expr:`int` representing a character to Python :class:`str` "
11501158
"object of length 1."
11511159
msgstr ""
11521160

1153-
#: ../../c-api/arg.rst:700
1161+
#: ../../c-api/arg.rst:706
11541162
msgid "Convert a C :c:expr:`double` to a Python floating-point number."
11551163
msgstr ""
11561164

1157-
#: ../../c-api/arg.rst:703
1165+
#: ../../c-api/arg.rst:709
11581166
msgid "Convert a C :c:expr:`float` to a Python floating-point number."
11591167
msgstr ""
11601168

1161-
#: ../../c-api/arg.rst:705
1169+
#: ../../c-api/arg.rst:711
11621170
msgid "``D`` (:class:`complex`) [Py_complex \\*]"
11631171
msgstr ""
11641172

1165-
#: ../../c-api/arg.rst:706
1173+
#: ../../c-api/arg.rst:712
11661174
msgid "Convert a C :c:type:`Py_complex` structure to a Python complex number."
11671175
msgstr ""
11681176

1169-
#: ../../c-api/arg.rst:709
1177+
#: ../../c-api/arg.rst:715
11701178
msgid ""
11711179
"Pass a Python object untouched but create a new :term:`strong reference` to "
11721180
"it (i.e. its reference count is incremented by one). If the object passed in "
@@ -1176,75 +1184,75 @@ msgid ""
11761184
"no exception has been raised yet, :exc:`SystemError` is set."
11771185
msgstr ""
11781186

1179-
#: ../../c-api/arg.rst:718
1187+
#: ../../c-api/arg.rst:724
11801188
msgid "``S`` (object) [PyObject \\*]"
11811189
msgstr ""
11821190

1183-
#: ../../c-api/arg.rst:719
1191+
#: ../../c-api/arg.rst:725
11841192
msgid "Same as ``O``."
11851193
msgstr ""
11861194

1187-
#: ../../c-api/arg.rst:721
1195+
#: ../../c-api/arg.rst:727
11881196
msgid "``N`` (object) [PyObject \\*]"
11891197
msgstr ""
11901198

1191-
#: ../../c-api/arg.rst:722
1199+
#: ../../c-api/arg.rst:728
11921200
msgid ""
11931201
"Same as ``O``, except it doesn't create a new :term:`strong reference`. "
11941202
"Useful when the object is created by a call to an object constructor in the "
11951203
"argument list."
11961204
msgstr ""
11971205

1198-
#: ../../c-api/arg.rst:726
1206+
#: ../../c-api/arg.rst:732
11991207
msgid "``O&`` (object) [*converter*, *anything*]"
12001208
msgstr ""
12011209

1202-
#: ../../c-api/arg.rst:727
1210+
#: ../../c-api/arg.rst:733
12031211
msgid ""
12041212
"Convert *anything* to a Python object through a *converter* function. The "
12051213
"function is called with *anything* (which should be compatible with :c:expr:"
12061214
"`void*`) as its argument and should return a \"new\" Python object, or "
12071215
"``NULL`` if an error occurred."
12081216
msgstr ""
12091217

1210-
#: ../../c-api/arg.rst:732
1218+
#: ../../c-api/arg.rst:738
12111219
msgid "``(items)`` (:class:`tuple`) [*matching-items*]"
12121220
msgstr ""
12131221

1214-
#: ../../c-api/arg.rst:733
1222+
#: ../../c-api/arg.rst:739
12151223
msgid ""
12161224
"Convert a sequence of C values to a Python tuple with the same number of "
12171225
"items."
12181226
msgstr ""
12191227

1220-
#: ../../c-api/arg.rst:735
1228+
#: ../../c-api/arg.rst:741
12211229
msgid "``[items]`` (:class:`list`) [*matching-items*]"
12221230
msgstr ""
12231231

1224-
#: ../../c-api/arg.rst:736
1232+
#: ../../c-api/arg.rst:742
12251233
msgid ""
12261234
"Convert a sequence of C values to a Python list with the same number of "
12271235
"items."
12281236
msgstr ""
12291237

1230-
#: ../../c-api/arg.rst:738
1238+
#: ../../c-api/arg.rst:744
12311239
msgid "``{items}`` (:class:`dict`) [*matching-items*]"
12321240
msgstr ""
12331241

1234-
#: ../../c-api/arg.rst:739
1242+
#: ../../c-api/arg.rst:745
12351243
msgid ""
12361244
"Convert a sequence of C values to a Python dictionary. Each pair of "
12371245
"consecutive C values adds one item to the dictionary, serving as key and "
12381246
"value, respectively."
12391247
msgstr ""
12401248

1241-
#: ../../c-api/arg.rst:743
1249+
#: ../../c-api/arg.rst:749
12421250
msgid ""
12431251
"If there is an error in the format string, the :exc:`SystemError` exception "
12441252
"is set and ``NULL`` returned."
12451253
msgstr ""
12461254

1247-
#: ../../c-api/arg.rst:748
1255+
#: ../../c-api/arg.rst:754
12481256
msgid ""
12491257
"Identical to :c:func:`Py_BuildValue`, except that it accepts a va_list "
12501258
"rather than a variable number of arguments."

c-api/function.po

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.14\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-06-13 14:21+0000\n"
14+
"POT-Creation-Date: 2025-06-27 14:20+0000\n"
1515
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1616
"Last-Translator: Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025\n"
1717
"Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/"
@@ -105,8 +105,8 @@ msgid ""
105105
"must be ``Py_None`` or a tuple."
106106
msgstr ""
107107

108-
#: ../../c-api/function.rst:86 ../../c-api/function.rst:109
109-
#: ../../c-api/function.rst:123
108+
#: ../../c-api/function.rst:86 ../../c-api/function.rst:116
109+
#: ../../c-api/function.rst:130
110110
msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
111111
msgstr ""
112112

@@ -120,89 +120,102 @@ msgid ""
120120
"unaltered (default) vectorcall function!"
121121
msgstr ""
122122

123-
#: ../../c-api/function.rst:100
123+
#: ../../c-api/function.rst:101
124+
msgid ""
125+
"Return the keyword-only argument default values of the function object *op*. "
126+
"This can be a dictionary of arguments or ``NULL``."
127+
msgstr ""
128+
129+
#: ../../c-api/function.rst:107
124130
msgid ""
125131
"Return the closure associated with the function object *op*. This can be "
126132
"``NULL`` or a tuple of cell objects."
127133
msgstr ""
128134

129-
#: ../../c-api/function.rst:106
135+
#: ../../c-api/function.rst:113
130136
msgid ""
131137
"Set the closure associated with the function object *op*. *closure* must be "
132138
"``Py_None`` or a tuple of cell objects."
133139
msgstr ""
134140

135-
#: ../../c-api/function.rst:114
141+
#: ../../c-api/function.rst:121
136142
msgid ""
137143
"Return the annotations of the function object *op*. This can be a mutable "
138144
"dictionary or ``NULL``."
139145
msgstr ""
140146

141-
#: ../../c-api/function.rst:120
147+
#: ../../c-api/function.rst:127
142148
msgid ""
143149
"Set the annotations for the function object *op*. *annotations* must be a "
144150
"dictionary or ``Py_None``."
145151
msgstr ""
146152

147-
#: ../../c-api/function.rst:128
153+
#: ../../c-api/function.rst:141
154+
msgid ""
155+
"These functions are similar to their ``PyFunction_Get*`` counterparts, but "
156+
"do not do type checking. Passing anything other than an instance of :c:data:"
157+
"`PyFunction_Type` is undefined behavior."
158+
msgstr ""
159+
160+
#: ../../c-api/function.rst:148
148161
msgid ""
149162
"Register *callback* as a function watcher for the current interpreter. "
150163
"Return an ID which may be passed to :c:func:`PyFunction_ClearWatcher`. In "
151164
"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
152165
"exception."
153166
msgstr ""
154167

155-
#: ../../c-api/function.rst:138
168+
#: ../../c-api/function.rst:158
156169
msgid ""
157170
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
158171
"`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
159172
"success, or ``-1`` and set an exception on error (e.g. if the given "
160173
"*watcher_id* was never registered.)"
161174
msgstr ""
162175

163-
#: ../../c-api/function.rst:148
176+
#: ../../c-api/function.rst:168
164177
msgid "Enumeration of possible function watcher events:"
165178
msgstr ""
166179

167-
#: ../../c-api/function.rst:150
180+
#: ../../c-api/function.rst:170
168181
msgid "``PyFunction_EVENT_CREATE``"
169182
msgstr ""
170183

171-
#: ../../c-api/function.rst:151
184+
#: ../../c-api/function.rst:171
172185
msgid "``PyFunction_EVENT_DESTROY``"
173186
msgstr ""
174187

175-
#: ../../c-api/function.rst:152
188+
#: ../../c-api/function.rst:172
176189
msgid "``PyFunction_EVENT_MODIFY_CODE``"
177190
msgstr ""
178191

179-
#: ../../c-api/function.rst:153
192+
#: ../../c-api/function.rst:173
180193
msgid "``PyFunction_EVENT_MODIFY_DEFAULTS``"
181194
msgstr ""
182195

183-
#: ../../c-api/function.rst:154
196+
#: ../../c-api/function.rst:174
184197
msgid "``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
185198
msgstr ""
186199

187-
#: ../../c-api/function.rst:161
200+
#: ../../c-api/function.rst:181
188201
msgid "Type of a function watcher callback function."
189202
msgstr ""
190203

191-
#: ../../c-api/function.rst:163
204+
#: ../../c-api/function.rst:183
192205
msgid ""
193206
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
194207
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term:"
195208
"`borrowed reference` to the new value that is about to be stored in *func* "
196209
"for the attribute that is being modified."
197210
msgstr ""
198211

199-
#: ../../c-api/function.rst:168
212+
#: ../../c-api/function.rst:188
200213
msgid ""
201214
"The callback may inspect but must not modify *func*; doing so could have "
202215
"unpredictable effects, including infinite recursion."
203216
msgstr ""
204217

205-
#: ../../c-api/function.rst:171
218+
#: ../../c-api/function.rst:191
206219
msgid ""
207220
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
208221
"after *func* has been fully initialized. Otherwise, the callback is invoked "
@@ -214,22 +227,22 @@ msgid ""
214227
"semantics of the Python code being executed."
215228
msgstr ""
216229

217-
#: ../../c-api/function.rst:180
230+
#: ../../c-api/function.rst:200
218231
msgid ""
219232
"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
220233
"callback to the about-to-be-destroyed function will resurrect it, preventing "
221234
"it from being freed at this time. When the resurrected object is destroyed "
222235
"later, any watcher callbacks active at that time will be called again."
223236
msgstr ""
224237

225-
#: ../../c-api/function.rst:185
238+
#: ../../c-api/function.rst:205
226239
msgid ""
227240
"If the callback sets an exception, it must return ``-1``; this exception "
228241
"will be printed as an unraisable exception using :c:func:"
229242
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
230243
msgstr ""
231244

232-
#: ../../c-api/function.rst:189
245+
#: ../../c-api/function.rst:209
233246
msgid ""
234247
"There may already be a pending exception set on entry to the callback. In "
235248
"this case, the callback should return ``0`` with the same exception still "

c-api/init.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.14\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2025-06-13 14:21+0000\n"
15+
"POT-Creation-Date: 2025-06-27 14:20+0000\n"
1616
"PO-Revision-Date: 2021-06-28 00:49+0000\n"
1717
"Last-Translator: Danial Behzadi <dani.behzi@ubuntu.com>, 2025\n"
1818
"Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/"
@@ -1774,7 +1774,7 @@ msgstr ""
17741774
#: ../../c-api/init.rst:1416
17751775
msgid ""
17761776
"Reset all information in an interpreter state object. There must be an :"
1777-
"term:`attached thread state` for the the interpreter."
1777+
"term:`attached thread state` for the interpreter."
17781778
msgstr ""
17791779

17801780
#: ../../c-api/init.rst:1419

c-api/long.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.14\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-06-13 14:21+0000\n"
14+
"POT-Creation-Date: 2025-06-27 14:20+0000\n"
1515
"PO-Revision-Date: 2021-06-28 00:49+0000\n"
1616
"Last-Translator: Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025\n"
1717
"Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/"
@@ -456,10 +456,10 @@ msgstr ""
456456

457457
#: ../../c-api/long.rst:442
458458
msgid ""
459-
"If the returned value is greater than than *n_bytes*, the value was "
460-
"truncated: as many of the lowest bits of the value as could fit are written, "
461-
"and the higher bits are ignored. This matches the typical behavior of a C-"
462-
"style downcast."
459+
"If the returned value is greater than *n_bytes*, the value was truncated: as "
460+
"many of the lowest bits of the value as could fit are written, and the "
461+
"higher bits are ignored. This matches the typical behavior of a C-style "
462+
"downcast."
463463
msgstr ""
464464

465465
#: ../../c-api/long.rst:449

0 commit comments

Comments
 (0)