Skip to content

Traducir library typing#195 #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Jun 25, 2020
Merged

Traducir library typing#195 #221

merged 22 commits into from
Jun 25, 2020

Conversation

hectorcanto
Copy link
Contributor

@hectorcanto hectorcanto commented May 10, 2020

Traduccion parcial de library/typing
Como es un texto largo y complejo se entrega el primer tercio para ir revisando, así cualquier sugerenecia se puede aplicar a todo el texto.

Se incluyen algunas decisiones tomadas en cuanto a términos.
Hay bastantes fuzzies, será necesario revisarlas en contexto para que tengan sentido.

Closes #195

Copy link
Collaborator

@humitos humitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muy bueno! Hice varias correcciones pequeñas y dejé algunas preguntas.


#: ../Doc/library/typing.rst:51
msgid ""
"Type aliases are useful for simplifying complex type signatures. For "
"example::"
msgstr ""
"Los alias de tipo son útiles para simplificar indicadores de tipo complejos. "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

¿Quizás podemos marcar "type signature" como fuzzy? Acá se usa indicadores de tipo, pero luego se usa lo mismo para "type hint". ¿Es lo mismo?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

para mi signature es una caracterización de algo, algo que lo identifica. Lo unico es que aqui no queda claro creo si lo que es complejo es el indicador, o el tipo (que es el tipo, claro) Y algo así?

Los alias de tipo son útiles para simplificar la anotación de tipado en tipos más complejos (o objetos más complejos, no sé)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aquí complejo se refiere a la "signatura", y signatura es un sinónimo de anotación/indicar - simplificar una anotación de tipo compleja. Para no meter un término más que solo aporta frescura al texto (y quita precisión) voy a ver si dejo algo más directo.

Copy link
Contributor

@clacri clacri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hola Hector, me he picado y lo he revisado todo hoy :) ten en cuenta que son sugerencias muchas de ellas, evalúa si te parece o no aceptarlas. Otras cosillas si son algún typo o algún error con las dichosas comillas, pero vamos, que la verdad es que está súper :)


#: ../Doc/library/typing.rst:51
msgid ""
"Type aliases are useful for simplifying complex type signatures. For "
"example::"
msgstr ""
"Los alias de tipo son útiles para simplificar indicadores de tipo complejos. "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

para mi signature es una caracterización de algo, algo que lo identifica. Lo unico es que aqui no queda claro creo si lo que es complejo es el indicador, o el tipo (que es el tipo, claro) Y algo así?

Los alias de tipo son útiles para simplificar la anotación de tipado en tipos más complejos (o objetos más complejos, no sé)

@@ -143,8 +186,15 @@ msgid ""
"treat ``Alias`` as being *exactly equivalent* to ``Original`` in all cases. "
"This is useful when you want to simplify complex type signatures."
msgstr ""
"Recuérdese que el uso de alias de tipo implica que los dos tipos son "
"*equivalentes* entre sí. Haciendo que ``Alias = Original`` provocará que el "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"*equivalentes* entre sí. Haciendo que ``Alias = Original`` provocará que el "
"*equivalentes* entre sí. Hacer ``Alias = Original`` provocará que el "

@@ -153,10 +203,16 @@ msgid ""
"``Derived`` is expected. This is useful when you want to prevent logic "
"errors with minimal runtime cost."
msgstr ""
"En cotraste, ``NewType`` de clara un tipo que es *subtipo* de otro. "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"En cotraste, ``NewType`` de clara un tipo que es *subtipo* de otro. "
"En contraste, ``NewType`` de clara un tipo que es *subtipo* de otro. "

a mi me gusta en contraste, si acaso, aunque es un poco más formal, como estás comparando con lo anterior, puedes decir en contraposición

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

he puesto "en cambio" al final, ok?


#: ../Doc/library/typing.rst:1338
msgid ""
"A special typing construct to indicate to type checkers that a name cannot "
"be re-assigned or overridden in a subclass. For example::"
msgstr ""
"Un construcción especial para tipado que indica a los validadores de tipo "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Un construcción especial para tipado que indica a los validadores de tipo "
"Un constructo especial para tipado que indica a los validadores de tipo "

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no es constructor?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Un constructor especial"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yo creo que el término es constructo pero es que puede que venga de mi entorno más científico, donde por ejemplo son constructos de DNA. Se refiere a algo que tú generas. Pero en cualquier caso sería creo construcción, no un constructor.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claro. Habría que ver más el contexto. Yo lo pensaba como si fuese "el constructor de una clase", así le llamamos al método __init__ de una clase de Python por ejemplo.

Pero tampoco sé si está hablando de eso 🤷‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En el contexto "construction" significa mecanismo / artefacto / ítem. Se refiere a que "Final" es un algo que sirve para ....
constructo me parece demasiado abstracto, y constructor no tiene sentido.

@hectorcanto
Copy link
Contributor Author

Me pongo a incorporar sus indicaciones, gracias @humitos y @clacri

@hectorcanto hectorcanto marked this pull request as ready for review May 23, 2020 18:28
@hectorcanto
Copy link
Contributor Author

closes #195

@hectorcanto
Copy link
Contributor Author

esta PR esta contra la rama 3.8, es necesario mezclar contra la 3.8.3? @humitos

@raulcd
Copy link
Collaborator

raulcd commented May 23, 2020

La rama 3.8.3 no tiene ningún cambio que falte en la 3.8. Yo creo que esa rama se puede borrar.

@cmaureir
Copy link
Collaborator

solo hay problemas con el dict, yo creo que si agregas un par de palabras ya estamos :)

@hectorcanto
Copy link
Contributor Author

@cmaureir como miro/genero el dict?

@hectorcanto
Copy link
Contributor Author

He quitado todos los duplicados y el build se hace pare lo considera erroneo, que falta?

Copy link
Collaborator

@raulcd raulcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pospell está dando fallos:

library/typing.po:33:linters
library/typing.po:43:fundamenteales
library/typing.po:245:subíndice
library/typing.po:410:Compárese
library/typing.po:443:Subtipado
library/typing.po:548:covariantes
library/typing.po:548:contravariantes
library/typing.po:589:subtipado
library/typing.po:625:covariante
library/typing.po:629:covariante
library/typing.po:695:covariante
library/typing.po:703:covariantes
library/typing.po:892:contravariante
library/typing.po:892:covariante
library/typing.po:926:ReturnType
library/typing.po:926:contravariante
library/typing.po:1014:namedtuple
library/typing.po:1083:via
library/typing.po:1096:TypedDict
library/typing.po:1104:TypedDict
library/typing.po:1104:point
library/typing.po:1171:globals
library/typing.po:1171:Optional
library/typing.po:1233:compárese
library/typing.po:1239:sobreescribir
library/typing.po:1263:superclases
library/typing.po:1322:one
library/typing.po:1322:trick
library/typing.po:1322:ponies
library/typing.po:1366:p
library/typing.po:1375:p
library/typing.po:1379:p
library/typing.po:1383:p
library/typing.po:1387:p
library/typing.po:1409:Optional
library/typing.po:1438:Tuple
library/typing.po:1459:p
library/typing.po:1469:Callable
library/typing.po:1475:subscripción
library/typing.po:1527:ClassVar
The command "pospell -p dict -l es_AR -l es_ES **/*.po" exited with 255.```

@hectorcanto
Copy link
Contributor Author

hectorcanto commented Jun 9, 2020 via email

@raulcd
Copy link
Collaborator

raulcd commented Jun 9, 2020

pero el dict no está fallando:

$ make dict_dups
if [[ $(cat dict| sort | uniq -dc) ]]; then
echo -e "\n #######################\n"
echo "duplicated lines in the dict file"
sort dict | uniq -dc |sort -h
exit 1
else
echo "no duplicated lines"
exit 0
fi
no duplicated lines
The command "make dict_dups" exited with 0.

Esta fallando pospell 🤔

@clacri
Copy link
Contributor

clacri commented Jun 14, 2020

creo que al arreglarte los conflictos del diccionario he introducido duplicados, pero igualmente tienes también muchas palabras que fallan en el pospell

@hectorcanto
Copy link
Contributor Author

hectorcanto commented Jun 14, 2020 via email

@hectorcanto
Copy link
Contributor Author

@raulcd @clacri todos los problemas solucionados, se aprueba?

Copy link
Contributor

@clacri clacri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

para mi si no ha cambiado desde la primera revisión (más allá de lo del dict y eso) aprobada :) hago el merge ya?

@hectorcanto
Copy link
Contributor Author

Errores de mezcla resueltos, por favor mezclen

@clacri clacri merged commit 431f291 into python:3.8 Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translate library/typing.po
5 participants