8000 Traducido tutorial/controlflow.po, principalmente cambios referidos a match by dmoisset · Pull Request #1555 · python/python-docs-es · GitHub
[go: up one dir, main page]

Skip to content

Traducido tutorial/controlflow.po, principalmente cambios referidos a match #1555

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 4 commits into from
Dec 8, 2021

Conversation

dmoisset
Copy link
Contributor

Closes #1405

Copy link
Collaborator
@cmaureir cmaureir left a comment

Choose a reason for hiding this comment

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

Muchas gracias por la traducción! 🎉
solo dejé un par de comentarios menores.


#: ../Doc/tutorial/controlflow.rst:259
msgid ""
"The simplest form compares a subject value against one or more literals::"
msgstr ""
"La forma más simple compara un valor, el \"sujeto\", con uno o más "
Copy link
Collaborator

Choose a reason for hiding this comment

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

¿por qué las comillas en sujeto?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Estoy introduciendo el término. No sé si hay una convención mejor para esto?

Copy link
Collaborator

Choose a reason for hiding this comment

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

no hay convención, pero intentamos mantener la misma estructura, evitando comillas, asteriscos, etc.


#: ../Doc/tutorial/controlflow.rst:272
msgid ""
"Note the last block: the \"variable name\" ``_`` acts as a *wildcard* and "
"never fails to match. If no case matches, none of the branches is executed."
msgstr ""
"Observa el último bloque: el \"nombre de variable\" ``_`` funciona como un "
"*comodín* y nunca fracasa la coincidencia. Si ninguno de los casos ``case`` "
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"*comodín* y nunca fracasa la coincidencia. Si ninguno de los casos ``case`` "
"*comodín* y nunca falla la coincidencia. Si ninguno de los casos ``case`` "

quizás usar falla? lo dejo a tu criterio

Copy link
Contributor Author

Choose a reason for hiding this comment

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

El matching puede terminar en "success" o "failure" que suelo pensar como "éxito" o "fracaso" más que fallo. Igual la oración me parece rara...


#: ../Doc/tutorial/controlflow.rst:357
msgid ""
"We can add an ``if`` clause to a pattern, known as a \"guard\". If the "
"guard is false, ``match`` goes on to try the next case block. Note that "
"value capture happens before the guard is evaluated::"
msgstr ""
"Podemos añadir una clausula ``if`` a un patrón, conocida como \"guarda\". Si "
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"Podemos añadir una clausula ``if`` a un patrón, conocida como \"guarda\". Si "
"Podemos añadir una clausula ``if`` a un patrón, conocida como \"guarda\". Si "

quizás 'guardía' ?
en francés parece que va por ahí https://fr.wikipedia.org/wiki/Garde_(informatique)

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 mis clases de programación funcional usábamos "guardas" para referirnos a lo equivalente en Haskell. "guardía" es una palabra que jamás vi. El término guarda (como predicado proposicional) aparece en lugares como https://es.wikipedia.org/wiki/Lenguaje_de_Comandos_Guardados .

"*otros]`` and ``(x, y, *otros)`` funcionan de manera similar a las "
"asignaciones con desempaquetado. El nombre luego de ``*`` también puede ser "
"``_``, con lo cual ``(x, y, *_)`` coincide con cualquier secuencia de al "
"menos del elementos, sin ligar ninguno de los demás elementos."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"menos del elementos, sin ligar ninguno de los demás elementos."
"menos del elementos, sin enlazar ninguno de los demás elementos."

creo que en general usar 'enlaces' en vez de 'ligar' queda mejor, sobre todo por el tema del slang en varios países :P

Copy link
Contributor Author

Choose a reason for hiding this comment

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

enlazar me recuerda a linking. Usar "binding" como ligada creí que era terminología común viniendo del lado matemático, como en https://es.wikipedia.org/wiki/Variable_libre_y_variable_ligada. Aparece este término en otros lugares de la documentación?

@cmaureir
Copy link
Collaborator

Si miras el log del CI, también hay un par de palabras que quizás se deban agregar a un diccionario

 tutorial/controlflow.po:282:match
tutorial/controlflow.po:352:dataclasses
tutorial/controlflow.po:368:match
tutorial/controlflow.po:386:tuvieramos
tutorial/controlflow.po:386:match
tutorial/controlflow.po:409:sequencia
tutorial/controlflow.po:420:sequencia
tutorial/controlflow.po:433:sequencia
tutorial/controlflow.po:446:subpatrones

Co-authored-by: Cristián Maureira-Fredes <cmaureir@users.noreply.github.com>
@cmaureir

@cmaureir cmaureir marked this pull request as ready for review December 8, 2021 22:23
@cmaureir cmaureir merged commit b62f5dd into python:3.10 Dec 8, 2021
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 'tutorial/controlflow.po'
2 participants
0