Skip to content

Commit d603a98

Browse files
committed
Traducido c-api/mapping
1 parent e1049f2 commit d603a98

File tree

1 file changed

+47
-6
lines changed

1 file changed

+47
-6
lines changed

c-api/mapping.po

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,33 @@
66
# Check https://github.com/PyCampES/python-docs-es/blob/3.8/TRANSLATORS to
77
# get the list of volunteers
88
#
9-
#, fuzzy
109
msgid ""
1110
msgstr ""
1211
"Project-Id-Version: Python 3.8\n"
1312
"Report-Msgid-Bugs-To: \n"
1413
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
15-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
16-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"PO-Revision-Date: 2020-05-10 02:44+0200\n"
1715
"Language-Team: python-doc-es\n"
1816
"MIME-Version: 1.0\n"
19-
"Content-Type: text/plain; charset=utf-8\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
2018
"Content-Transfer-Encoding: 8bit\n"
2119
"Generated-By: Babel 2.8.0\n"
20+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
21+
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
22+
"Language: es\n"
23+
"X-Generator: Poedit 2.3\n"
2224

2325
#: ../Doc/c-api/mapping.rst:6
2426
msgid "Mapping Protocol"
25-
msgstr ""
27+
msgstr "Protocolo de mapeo"
2628

2729
#: ../Doc/c-api/mapping.rst:8
2830
msgid ""
2931
"See also :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` and :c:func:"
3032
"`PyObject_DelItem`."
3133
msgstr ""
34+
"Consulte también :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` y :c:"
35+
"func:`PyObject_DelItem`."
3236

3337
#: ../Doc/c-api/mapping.rst:14
3438
msgid ""
@@ -37,19 +41,29 @@ msgid ""
3741
"meth:`__getitem__` method since in general case it is impossible to "
3842
"determine what type of keys it supports. This function always succeeds."
3943
msgstr ""
44+
"Retorna ``1`` si el objeto proporciona el protocolo de mapeo o admite "
45+
"rebanado (*slicing*), y ``0`` de lo contrario. Tenga en cuenta que devuelve "
46+
"``1`` para las clases de Python con un método :meth:`__getitem__` ya que, en "
47+
"general, es imposible determinar qué tipo de claves admite. Esta función "
48+
"siempre tiene éxito."
4049

4150
#: ../Doc/c-api/mapping.rst:25
4251
msgid ""
4352
"Returns the number of keys in object *o* on success, and ``-1`` on failure. "
4453
"This is equivalent to the Python expression ``len(o)``."
4554
msgstr ""
55+
"Retorna el número de claves en el objeto *o* en caso de éxito, y ``-1`` en "
56+
"caso de error. Esto es equivalente a la expresión de Python ``len(o)``."
4657

4758
#: ../Doc/c-api/mapping.rst:31
4859
msgid ""
4960
"Return element of *o* corresponding to the string *key* or ``NULL`` on "
5061
"failure. This is the equivalent of the Python expression ``o[key]``. See "
5162
"also :c:func:`PyObject_GetItem`."
5263
msgstr ""
64+
"Retorna el elemento de *o* correspondiente a la cadena de caracteres *key* o "
65+
"``NULL`` en caso de error. Este es el equivalente de la expresión de Python "
66+
"``o[key]``. Ver también :c:func:`PyObject_GetItem`."
5367

5468
#: ../Doc/c-api/mapping.rst:38
5569
msgid ""
@@ -58,60 +72,87 @@ msgid ""
5872
"also :c:func:`PyObject_SetItem`. This function *does not* steal a reference "
5973
"to *v*."
6074
msgstr ""
75+
"Asigna la cadena de caracteres *key* al valor *v* en el objeto *o*. Retorna "
76+
"``-1`` en caso de falla. Este es el equivalente de la declaración de Python "
77+
"``o[key] = v``. Ver también :c:func:`PyObject_SetItem`. Esta función *no* "
78+
"roba una referencia a *v*."
6179

6280
#: ../Doc/c-api/mapping.rst:46
6381
msgid ""
6482
"Remove the mapping for the object *key* from the object *o*. Return ``-1`` "
6583
"on failure. This is equivalent to the Python statement ``del o[key]``. This "
6684
"is an alias of :c:func:`PyObject_DelItem`."
6785
msgstr ""
86+
"Elimina la asignación para el objeto *key* del objeto *o*. Retorna ``-1`` en "
87+
"caso de falla. Esto es equivalente a la declaración de Python ``del "
88+
"o[key]``. Este es un alias de :c:func:`PyObject_DelItem`."
6889

6990
#: ../Doc/c-api/mapping.rst:53
7091
msgid ""
7192
"Remove the mapping for the string *key* from the object *o*. Return ``-1`` "
7293
"on failure. This is equivalent to the Python statement ``del o[key]``."
7394
msgstr ""
95+
"Elimina la asignación de la cadena de caracteres *key* del objeto *o*. "
96+
"Retorna ``-1`` en caso de falla. Esto es equivalente a la declaración de "
97+
"Python ``del o[key]``."
7498

7599
#: ../Doc/c-api/mapping.rst:59 ../Doc/c-api/mapping.rst:70
76100
msgid ""
77101
"Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. "
78102
"This is equivalent to the Python expression ``key in o``. This function "
79103
"always succeeds."
80104
msgstr ""
105+
"Retorna ``1`` si el objeto de mapeo tiene la clave *key* y ``0`` de lo "
106+
"contrario. Esto es equivalente a la expresión de Python ``key in o``. Esta "
107+
"función siempre tiene éxito."
81108

82109
#: ../Doc/c-api/mapping.rst:63
83110
msgid ""
84111
"Note that exceptions which occur while calling the :meth:`__getitem__` "
85112
"method will get suppressed. To get error reporting use :c:func:"
86113
"`PyObject_GetItem()` instead."
87114
msgstr ""
115+
"Tenga en cuenta que las excepciones que se producen al llamar al método :"
116+
"meth:`__getitem__` se suprimirán. Para obtener informes de errores, utilice :"
117+
"c:func:`PyObject_GetItem()` en su lugar."
88118

89119
#: ../Doc/c-api/mapping.rst:74
90120
msgid ""
91121
"Note that exceptions which occur while calling the :meth:`__getitem__` "
92122
"method and creating a temporary string object will get suppressed. To get "
93123
"error reporting use :c:func:`PyMapping_GetItemString()` instead."
94124
msgstr ""
125+
"Tenga en cuenta que las excepciones que se producen al llamar al método :"
126+
"meth:`__getitem__` y al crear un objeto de cadena de caracteres temporal se "
127+
"suprimirán. Para obtener informes de errores, utilice :c:func:"
128+
"`PyMapping_GetItemString()` en su lugar."
95129

96130
#: ../Doc/c-api/mapping.rst:81
97131
msgid ""
98132
"On success, return a list of the keys in object *o*. On failure, return "
99133
"``NULL``."
100134
msgstr ""
135+
"En caso de éxito, retorna una lista de las claves en el objeto *o*. En caso "
136+
"de fallo, retorna ``NULL``."
101137

102138
#: ../Doc/c-api/mapping.rst:84 ../Doc/c-api/mapping.rst:93
103139
#: ../Doc/c-api/mapping.rst:102
104140
msgid "Previously, the function returned a list or a tuple."
105-
msgstr ""
141+
msgstr "Anteriormente, la función devolvía una lista o una tupla."
106142

107143
#: ../Doc/c-api/mapping.rst:90
108144
msgid ""
109145
"On success, return a list of the values in object *o*. On failure, return "
110146
"``NULL``."
111147
msgstr ""
148+
"En caso de éxito, retorna una lista de los valores en el objeto *o*. En caso "
149+
"de fallo, retorna ``NULL``."
112150

113151
#: ../Doc/c-api/mapping.rst:99
114152
msgid ""
115153
"On success, return a list of the items in object *o*, where each item is a "
116154
"tuple containing a key-value pair. On failure, return ``NULL``."
117155
msgstr ""
156+
"En caso de éxito, retorna una lista de los elementos en el objeto *o*, donde "
157+
"cada elemento es una tupla que contiene un par clave-valor (*key-value*). En "
158+
"caso de fallo, retorna ``NULL``."

0 commit comments

Comments
 (0)