Skip to content

Commit 897bedb

Browse files
authored
Merge branch '3.11' into 3.11
2 parents b8c8309 + f624462 commit 897bedb

File tree

195 files changed

+4334
-3166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+4334
-3166
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
# Check for updates to GitHub Actions every week
10+
interval: "weekly"
11+

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
name: Test
1212
runs-on: ubuntu-22.04
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Preparar Python v3.11
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: "3.11"
1919
- name: Sincronizar con CPython
@@ -32,6 +32,9 @@ jobs:
3232
diff -Naur TRANSLATORS <(LANG=es python scripts/sort.py < TRANSLATORS)
3333
- name: Powrap
3434
run: powrap --check --quiet **/*.po
35+
- name: Sphinx lint
36+
run: |
37+
sphinx-lint */*.po
3538
- name: Pospell
3639
run: |
3740
python scripts/check_spell.py

.overrides/reviewers-guide.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,43 @@ Tres razones por las que puede fallar el *build* de Travis:
4848

4949
Para facilitar la comparación de ficheros se emplea este programa que va a hacer que todas las líneas tengan el mismo tamaño. Solucionar este problema en nuestra traducción es muy sencillo, solo hay que instalar la herramienta powrap en nuestro entorno y ejecutar el comando ``powrap nuestro_fichero.po``
5050

51+
``sphinx-lint`` falla
52+
---------------------
53+
54+
El formato en el que la documentación de python está escrito
55+
(`reStructredText <https://es.wikipedia.org/wiki/ReStructuredText>`_ , o rst)
56+
puede ser difícil de manejar y escribir correctamente.
57+
``sphinx-lint`` ayuda a encontrar errores comunes al momento de escribir
58+
entradas en este formato, y advierte al respecto.
59+
60+
Entre los errores más comunes están:
61+
62+
* Textos literales no están separados por un espacio
63+
respecto a las palabras que lo rodean:
64+
65+
* Mal: :literal:`no hay espacio antes del\`\`literal\`\``
66+
* Mal: :literal:`después del \`\`literal \`\`no hay un espacio`
67+
* Bien: :literal:`hay espacio antes del \`\`literal\`\` y después también`
68+
69+
* Textos literales comienzan o terminan con espacios:
70+
71+
* Mal: :literal:`\`\` literal empieza con un espacio\`\``
72+
* Mal: :literal:`\`\`literal termina con un espacio \`\``
73+
* Bien: :literal:`\`\`literal no termina ni empieza con espacios\`\``
74+
75+
* Textos literales no están delineados con dos acentos fuertes:
76+
77+
* Mal: :literal:`\`\`falta uno al final :(\``
78+
* Mal: :literal:`\`falta uno al principio :(\`\``
79+
* Bien: :literal:`\`\`todo bien :)\`\``
80+
81+
* Enlaces no terminan en un guión bajo:
82+
83+
* Mal: :literal:`\`<https://python.org>\``
84+
* Mal: :literal:`\`Python <https://python.org>\``
85+
* Bien: :literal:`\`<https://python.org>\`_`
86+
* Bien: :literal:`\`Python <https://python.org>\`_`
87+
5188

5289
``pospell`` falla
5390
---------------------

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ repos:
1111
language: python
1212
additional_dependencies: ['pospell>=1.1']
1313
files: \.po$
14+
- id: lint
15+
name: Run sphinx linting
16+
entry: sphinx-lint
17+
language: python
18+
additional_dependencies: ['sphinx-lint==0.6.7']
19+
files: \.po$

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ progress: venv
9999
spell: venv
100100
$(VENV)/bin/python scripts/check_spell.py
101101

102+
.PHONY: lint
103+
lint: venv
104+
$(VENV)/bin/python -m sphinxlint */*.po
105+
102106

103107
.PHONY: wrap
104108
wrap: venv

TRANSLATORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Ana (@popiula)
2020
Ana de la Calle
2121
Ana Elisa Kuhn (@AnitaaKuhn)
2222
Ana Medina Bernal (@ana-med)
23+
Andrea Alegre (@aandrea)
2324
Andres Bermeo
2425
Andreu Vallbona Plazas (@avallbona)
2526
Andros Fenollosa Hurtado (@tanrax)
@@ -35,6 +36,7 @@ Briceida Mariscal (@BriceidaMars)
3536
Bruno Geninatti (@bgeninatti)
3637
Camilo Baquero (@camilooob)
3738
Carlos A. Crespo (@cacrespo)
39+
Carlos AlMa (@carlosalma)
3840
Carlos Bernad (@carlos-bernad)
3941
Carlos Joel Delgado Pizarro (@c0x6a)
4042
Carlos Martel Lamas (@Letram)
@@ -180,6 +182,7 @@ Paula Aragón (@pandrearro)
180182
Pedro Aaron (@paaaron)
181183
Pedro Jorge De Los Santos
182184
Qkolnek
185+
Rafael Juarez Laureano
183186
Ramiro Algozino (@ralgozino)
184187
Ramón Salado (@ramsal)
185188
Raúl Cumplido (@raulcd)

c-api/abstract.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ msgstr ""
4646
"No es posible utilizar estas funciones en objetos que no se inicializan "
4747
"correctamente, como un objeto de lista que ha sido creado por :c:func:"
4848
"`PyList_New`, pero cuyos elementos no se han establecido en algunos valores "
49-
"no-\\``NULL`` aún."
49+
"no-\\ ``NULL`` aún."

c-api/buffer.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ msgid ""
329329
"strides` and :c:member:`~Py_buffer.suboffsets` MUST be ``NULL``."
330330
msgstr ""
331331
"El número de dimensiones que representa la memoria como un arreglo n-"
332-
"dimensional. Si es `` 0``, :c:member:`~Py_buffer.buf` apunta a un solo "
332+
"dimensional. Si es ``0``, :c:member:`~Py_buffer.buf` apunta a un solo "
333333
"elemento que representa un escalar. En este caso, :c:member:`~Py_buffer."
334334
"shape`, :c:member:`~Py_buffer.strides` y :c:member:`~Py_buffer.suboffsets` "
335335
"DEBE ser ``NULL``."

c-api/bytearray.po

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
14-
"PO-Revision-Date: 2021-08-01 20:18+0200\n"
15-
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
16-
"Language: es\n"
14+
"PO-Revision-Date: 2022-11-05 12:32-0300\n"
15+
"Last-Translator: Sofía Denner <sofi.denner@gmail.com>\n"
1716
"Language-Team: python-doc-es\n"
18-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
17+
"Language: es\n"
1918
"MIME-Version: 1.0\n"
2019
"Content-Type: text/plain; charset=utf-8\n"
2120
"Content-Transfer-Encoding: 8bit\n"
21+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2222
"Generated-By: Babel 2.10.3\n"
23+
"X-Generator: Poedit 3.2\n"
2324

2425
#: ../Doc/c-api/bytearray.rst:6
2526
msgid "Byte Array Objects"
@@ -119,13 +120,9 @@ msgstr ""
119120
#: ../Doc/c-api/bytearray.rst:80
120121
msgid "Similar to :c:func:`PyByteArray_AsString`, but without error checking."
121122
msgstr ""
123+
"Similar a :c:func:`PyByteArray_AsString`, pero sin comprobación de errores."
122124

123125
#: ../Doc/c-api/bytearray.rst:85
124126
msgid "Similar to :c:func:`PyByteArray_Size`, but without error checking."
125127
msgstr ""
126-
127-
#~ msgid "Macro version of :c:func:`PyByteArray_AsString`."
128-
#~ msgstr "Versión macro de :c:func:`PyByteArray_AsString`."
129-
130-
#~ msgid "Macro version of :c:func:`PyByteArray_Size`."
131-
#~ msgstr "Versión macro de :c:func:`PyByteArray_Size`."
128+
"Similar a :c:func:`PyByteArray_Size`, pero sin comprobación de errores."

c-api/bytes.po

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
14-
"PO-Revision-Date: 2021-08-01 20:18+0200\n"
14+
"PO-Revision-Date: 2022-11-01 11:48+0100\n"
1515
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
16-
"Language: es\n"
1716
"Language-Team: python-doc-es\n"
18-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
17+
"Language: es\n"
1918
"MIME-Version: 1.0\n"
2019
"Content-Type: text/plain; charset=utf-8\n"
2120
"Content-Transfer-Encoding: 8bit\n"
21+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2222
"Generated-By: Babel 2.10.3\n"
23+
"X-Generator: Poedit 3.2\n"
2324

2425
#: ../Doc/c-api/bytes.rst:6
2526
msgid "Bytes Objects"
2627
msgstr "Objetos Bytes"
2728

2829
#: ../Doc/c-api/bytes.rst:8
29-
#, fuzzy
3030
msgid ""
3131
"These functions raise :exc:`TypeError` when expecting a bytes parameter and "
3232
"called with a non-bytes parameter."
@@ -197,7 +197,7 @@ msgstr ":attr:`%zd`"
197197

198198
#: ../Doc/c-api/bytes.rst:87
199199
msgid ":c:type:`\\ Py_ssize_t`"
200-
msgstr ""
200+
msgstr ":c:type:`\\ Py_ssize_t`"
201201

202202
#: ../Doc/c-api/bytes.rst:87
203203
msgid "Equivalent to ``printf(\"%zd\")``. [1]_"
@@ -304,7 +304,6 @@ msgid "Return the length of the bytes in bytes object *o*."
304304
msgstr "Retorna la longitud de los bytes en el objeto bytes *o*."
305305

306306
#: ../Doc/c-api/bytes.rst:137
307-
#, fuzzy
308307
msgid "Similar to :c:func:`PyBytes_Size`, but without error checking."
309308
msgstr ""
310309
"Forma macro de :c:func:`PyBytes_Size` pero sin verificación de errores."
@@ -320,15 +319,14 @@ msgid ""
320319
"`PyBytes_AsString` returns ``NULL`` and raises :exc:`TypeError`."
321320
msgstr ""
322321
"Retorna un puntero al contenido de *o*. El puntero se refiere al búfer "
323-
"interno de *o*, que consiste en bytes ``len(o) + 1``. El último byte en el "
322+
"interno de *o*, que consiste en ``len(o) + 1`` bytes. El último byte en el "
324323
"búfer siempre es nulo, independientemente de si hay otros bytes nulos. Los "
325324
"datos no deben modificarse de ninguna manera, a menos que el objeto se haya "
326325
"creado usando ``PyBytes_FromStringAndSize(NULL, size)``. No debe ser "
327326
"desasignado. Si *o* no es un objeto de bytes en absoluto, :c:func:"
328327
"`PyBytes_AsString` retorna ``NULL`` y lanza un :exc:`TypeError`."
329328

330329
#: ../Doc/c-api/bytes.rst:154
331-
#, fuzzy
332330
msgid "Similar to :c:func:`PyBytes_AsString`, but without error checking."
333331
msgstr ""
334332
"Forma macro de :c:func:`PyBytes_AsString` pero sin verificación de errores."
@@ -348,7 +346,7 @@ msgid ""
348346
"raised."
349347
msgstr ""
350348
"Si *length* es ``NULL``, el objeto bytes no puede contener bytes nulos "
351-
"incrustados; si lo hace, la función retorna ``-1`` y se lanza un :exc:"
349+
"incrustados; en caso contrario, la función retorna ``-1`` y se lanza un :exc:"
352350
"`ValueError`."
353351

354352
#: ../Doc/c-api/bytes.rst:166
@@ -361,8 +359,8 @@ msgid ""
361359
"returns ``-1`` and raises :exc:`TypeError`."
362360
msgstr ""
363361
"El búfer se refiere a un búfer interno de *obj*, que incluye un byte nulo "
364-
"adicional al final (sin contar en *length*). Los datos no deben modificarse "
365-
"de ninguna manera, a menos que el objeto se haya creado usando "
362+
"adicional al final (no está considerado en *length*). Los datos no deben "
363+
"modificarse de ninguna manera, a menos que el objeto se haya creado usando "
366364
"``PyBytes_FromStringAndSize(NULL, size)``. No debe ser desasignado. Si *obj* "
367365
"no es un objeto bytes en absoluto, :c:func:`PyBytes_AsStringAndSize` retorna "
368366
"``-1`` y lanza :exc:`TypeError`."
@@ -387,7 +385,7 @@ msgstr ""
387385
"*newpart* agregado a *bytes*; la persona que llama poseerá la nueva "
388386
"referencia. La referencia al valor anterior de *bytes* será robada. Si no se "
389387
"puede crear el nuevo objeto, la referencia anterior a *bytes* se seguirá "
390-
"descartando y el valor de *\\*bytes* se establecerá en ``NULL``; Se "
388+
"descartando y el valor de *\\*bytes* se establecerá en ``NULL``; se "
391389
"establecerá la excepción apropiada."
392390

393391
#: ../Doc/c-api/bytes.rst:189

0 commit comments

Comments
 (0)