Add Spanish translation for Conditionals and Interactivity tutorial - #1559
Open
xdroberto wants to merge 1 commit into
Open
Add Spanish translation for Conditionals and Interactivity tutorial#1559xdroberto wants to merge 1 commit into
xdroberto wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
AnnotatedLineare translated, following the convention of the existing Korean and Chinese translations; code identifiers (including theconditionplaceholder in the syntax samples) are kept in English.title,description, andfeaturedImageAltare translated in the frontmatter.variables-and-change.mdxalready does. This keeps the samples safe to copy into an editor./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:
sunHeightvariable as long as it is less than 130", but the code right below isif (sunHeight > 130). It should read greater than 130.sunHeightstops changing once the Boolean expression ... isfalse. This happens whensunHeightis any value greater than 130." It is the opposite: the expression becomesfalsewhensunHeightis less than or equal to 130.sunHeight"less than 130 AND greater than 480", and the sample readsif (sunHeight < 130 && sunHeight > 480). That condition can never be true; based on the preceding nested conditional it should beif (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.