Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5c8626f

Browse files
authored
Translate 7 untranslated entries in c-api/arg.po (#3430)
- Translate PY_SSIZE_T_CLEAN macro documentation- Translate string/buffer conversion methods introduction- Translate memory allocation note for es/es#/et/et# formats- Translate borrowed buffer explanation- Translate bf_releasebuffer requirement- Translate immutability check note- Translate removed format types (u, u#, Z, Z#)
1 parenta0892df commit5c8626f

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

‎c-api/arg.po‎

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ msgid ""
8585
"formats (``s#``, ``y#``, etc.) explained below. This is not necessary on "
8686
"Python 3.13 and later."
8787
msgstr""
88+
"En Python 3.12 y versiones anteriores, la macro :c:macro:`!PY_SSIZE_T_CLEAN` "
89+
"debe estar definida antes de incluir :file:`Python.h` para usar todas las "
90+
"variantes ``#`` de formatos (``s#``, ``y#``, etc.) explicadas a continuación. "
91+
"Esto no es necesario en Python 3.13 y versiones posteriores."
8892

8993
#:../Doc/c-api/arg.rst:42
9094
msgid""
@@ -103,7 +107,7 @@ msgstr ""
103107

104108
#:../Doc/c-api/arg.rst:48
105109
msgid"There are three ways strings and buffers can be converted to C:"
106-
msgstr""
110+
msgstr"Hay tres formas en que las cadenas de caracteres y los búferes pueden convertirse a C:"
107111

108112
#:../Doc/c-api/arg.rst:50
109113
#,fuzzy
@@ -129,6 +133,9 @@ msgid ""
129133
"**You have to call** :c:func:`PyMem_Free` after you have finished processing "
130134
"the data (or in any early abort case)."
131135
msgstr""
136+
"Los formatos ``es``, ``es#``, ``et`` y ``et#`` asignan el búfer de resultado. "
137+
"**Debe llamar** :c:func:`PyMem_Free` después de haber terminado de procesar "
138+
"los datos (o en cualquier caso de aborto temprano)."
132139

133140
#:../Doc/c-api/arg.rst:63
134141
msgid""
@@ -138,6 +145,12 @@ msgid ""
138145
"corresponding Python object, and shares the lifetime of this object. You "
139146
"won't have to release any memory yourself."
140147
msgstr""
148+
"Otros formatos toman un :class:`str` o un :term:`objeto de tipo bytes <bytes-"
149+
"like object>` de solo lectura, como :class:`bytes`, y proporcionan un "
150+
"puntero ``const char *`` a su búfer. En este caso el búfer es\"prestado\" "
151+
"(*borrowed*): es gestionado por el objeto Python correspondiente y comparte "
152+
"el tiempo de vida de este objeto. No tendrá que liberar ninguna memoria "
153+
"usted mismo."
141154

142155
#:../Doc/c-api/arg.rst:70
143156
msgid""
@@ -146,13 +159,21 @@ msgid ""
146159
"disallows common mutable objects such as :class:`bytearray`, but also some "
147160
"read-only objects such as :class:`memoryview` of :class:`bytes`."
148161
msgstr""
162+
"Para asegurar que el búfer subyacente pueda ser prestado de forma segura, el "
163+
"campo :c:member:`PyBufferProcs.bf_releasebuffer` del objeto debe ser ``NULL``. "
164+
"Esto desautoriza objetos mutables comunes como :class:`bytearray`, pero "
165+
"también algunos objetos de solo lectura como :class:`memoryview` de :class:"
166+
"`bytes`."
149167

150168
#:../Doc/c-api/arg.rst:76
151169
msgid""
152170
"Besides this ``bf_releasebuffer`` requirement, there is no check to verify "
153171
"whether the input object is immutable (e.g. whether it would honor a request "
154172
"for a writable buffer, or whether another thread can mutate the data)."
155173
msgstr""
174+
"Además de este requisito de ``bf_releasebuffer``, no hay verificación para "
175+
"comprobar si el objeto de entrada es inmutable (por ejemplo, si respetaría "
176+
"una solicitud de un búfer escribible, o si otro hilo puede mutar los datos)."
156177

157178
#:../Doc/c-api/arg.rst:98
158179
msgid"``s`` (:class:`str`) [const char\\*]"
@@ -564,6 +585,8 @@ msgid ""
564585
"``u``, ``u#``, ``Z``, and ``Z#`` are removed because they used a legacy "
565586
"``Py_UNICODE*`` representation."
566587
msgstr""
588+
"``u``, ``u#``, ``Z`` y ``Z#`` fueron eliminados porque usaban una "
589+
"representación heredada ``Py_UNICODE*``."
567590

568591
#:../Doc/c-api/arg.rst:230
569592
msgid"Numbers"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp