Skip to content

Add Spanish translation for Conditionals and Interactivity tutorial - #1559

Open
xdroberto wants to merge 1 commit into
processing:mainfrom
xdroberto:es-conditionals-and-interactivity
Open

Add Spanish translation for Conditionals and Interactivity tutorial#1559
xdroberto wants to merge 1 commit into
processing:mainfrom
xdroberto:es-conditionals-and-interactivity

Conversation

@xdroberto

Copy link
Copy Markdown

Adds the Spanish translation of the Conditionals and Interactivity tutorial, addressing the Spanish part of #1379. This follows #1558 (Spanish translation of Introduction to GLSL).

Notes on the translation:

  • 1:1 structural parity with the English original (915 lines): all code blocks, components, tables, and markup are untouched. Code comments and the placeholder text inside AnnotatedLine are translated, following the convention of the existing Korean and Chinese translations; code identifiers (including the condition placeholder in the syntax samples) are kept in English.
  • Only title, description, and featuredImageAlt are translated in the frontmatter.
  • The English source uses non-breaking spaces for indentation in several code blocks; these are normalized to regular spaces in the translation, as the Hindi translation of variables-and-change.mdx already does. This keeps the samples safe to copy into an editor.
  • Validated locally with the dev server: /es/tutorials/conditionals-and-interactivity/ renders correctly.

Three errors in the English source

While translating, I found three places where the English text contradicts its own code samples. I wrote the technically correct version in Spanish rather than propagating the errors to Spanish readers, so I want to flag them explicitly:

  1. Line 700 — "Make the sun move by changing the sunHeight variable as long as it is less than 130", but the code right below is if (sunHeight > 130). It should read greater than 130.
  2. Line 775 — "The value in sunHeight stops changing once the Boolean expression ... is false. This happens when sunHeight is any value greater than 130." It is the opposite: the expression becomes false when sunHeight is less than or equal to 130.
  3. Lines 846 and 848 — the logical-operators section asks for sunHeight "less than 130 AND greater than 480", and the sample reads if (sunHeight < 130 && sunHeight > 480). That condition can never be true; based on the preceding nested conditional it should be if (sunHeight > 130 && sunHeight < 480).

This last one is the only line of code in the file that differs from the English original. I am happy to open a separate PR fixing the English source (and to revert the Spanish to a literal translation instead) — whichever you prefer.

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.

1 participant