chore(i18n,curriculum): update translations (#41909)
This commit is contained in:
		@@ -26,7 +26,7 @@ Por ejemplo, un elemento `main` con dos elementos hijos anidados en su interior:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# --instructions--
 | 
					# --instructions--
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Crea un segundo elemento `p` después del elemento `p` existente con el siguiente texto ipsum gatuno: `Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.`
 | 
					Crea un segundo elemento `p` con el siguiente texto de gatito ipsum: `Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Luego, crea un elemento `main` y anida los dos elementos `p` dentro del elemento `main`.
 | 
					Luego, crea un elemento `main` y anida los dos elementos `p` dentro del elemento `main`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ Puedes anidar enlaces dentro de otros elementos de texto.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```html
 | 
					```html
 | 
				
			||||||
<p>
 | 
					<p>
 | 
				
			||||||
  Here's a <a target="_blank" href="http://freecodecamp.org"> link to freecodecamp.org</a> for you to follow.
 | 
					  Here's a <a target="_blank" href="https://www.freecodecamp.org"> link to freecodecamp.org</a> for you to follow.
 | 
				
			||||||
</p>
 | 
					</p>
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -32,18 +32,18 @@ A continuación está el elemento *anchor* `<a>` (que requiere una etiqueta de c
 | 
				
			|||||||
`target` es un atributo de etiqueta anchor que especifica dónde abrir el enlace. El valor `_blank` especifica abrir el enlace en una nueva pestaña. El `href` es un atributo de etiqueta anchor que contiene la dirección URL del enlace:
 | 
					`target` es un atributo de etiqueta anchor que especifica dónde abrir el enlace. El valor `_blank` especifica abrir el enlace en una nueva pestaña. El `href` es un atributo de etiqueta anchor que contiene la dirección URL del enlace:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```html
 | 
					```html
 | 
				
			||||||
<a href="http://freecodecamp.org"> ... </a>
 | 
					<a href="https://www.freecodecamp.org" target="_blank"> ... </a>
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
El texto, `link to freecodecamp.org`, dentro de un elemento `a` se llama <dfn>anchor text</dfn>, y mostrará el enlace para hacer clic:
 | 
					El texto, `link to freecodecamp.org`, dentro de un elemento `a` se llama <dfn>anchor text</dfn>, y mostrará el enlace para hacer clic:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```html
 | 
					```html
 | 
				
			||||||
<a href=" ... ">link to freecodecamp.org</a>
 | 
					<a href=" ... " target="...">link to freecodecamp.org</a>
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
El resultado final del ejemplo se verá así:
 | 
					El resultado final del ejemplo se verá así:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Aquí hay un enlace [a freecodecamp.org](http://freecodecamp.org) para que lo sigas.
 | 
					Aquí hay un enlace <a href="https://www.freecodecamp.org" target="_blank">a freecodecamp.org</a> para que lo sigas.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# --instructions--
 | 
					# --instructions--
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -59,11 +59,11 @@ assert(
 | 
				
			|||||||
);
 | 
					);
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
El elemento `a` debe enlazar a "`https://freecatphotoapp.com`".
 | 
					El elemento `a` debe enlazar a "`https://www.freecatphotoapp.com`".
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
assert(
 | 
					assert(
 | 
				
			||||||
  $('a[href="https://freecatphotoapp.com"]').length  === 1 
 | 
					  $('a[href="https://www.freecatphotoapp.com"]').length  === 1 
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -87,7 +87,7 @@ Tu elemento `a` debe ser anidado dentro de tu nuevo elemento `p`.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
assert(
 | 
					assert(
 | 
				
			||||||
  $('a[href="https://freecatphotoapp.com"]').parent().is('p')
 | 
					  $('a[href="https://www.freecatphotoapp.com"]').parent().is('p')
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -95,7 +95,7 @@ El elemento `p` debe contener el texto `View more` (con un espacio después de 
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
assert(
 | 
					assert(
 | 
				
			||||||
  $('a[href="https://freecatphotoapp.com"]')
 | 
					  $('a[href="https://www.freecatphotoapp.com"]')
 | 
				
			||||||
    .parent()
 | 
					    .parent()
 | 
				
			||||||
    .text()
 | 
					    .text()
 | 
				
			||||||
    .match(/View\smore\s/gi)
 | 
					    .match(/View\smore\s/gi)
 | 
				
			||||||
@@ -140,7 +140,7 @@ assert(
 | 
				
			|||||||
<h2>CatPhotoApp</h2>
 | 
					<h2>CatPhotoApp</h2>
 | 
				
			||||||
<main>
 | 
					<main>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <a href="https://freecatphotoapp.com" target="_blank">cat photos</a>
 | 
					  <a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
 | 
					  <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -154,7 +154,7 @@ assert(
 | 
				
			|||||||
```html
 | 
					```html
 | 
				
			||||||
<h2>CatPhotoApp</h2>
 | 
					<h2>CatPhotoApp</h2>
 | 
				
			||||||
<main>
 | 
					<main>
 | 
				
			||||||
  <p>View more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a></p>
 | 
					  <p>View more <a target="_blank" href="https://www.freecatphotoapp.com">cat photos</a></p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
 | 
					  <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -180,6 +180,12 @@ assert(telephoneCheck('(555-555-5555') === false);
 | 
				
			|||||||
assert(telephoneCheck('(555)5(55?)-5555') === false);
 | 
					assert(telephoneCheck('(555)5(55?)-5555') === false);
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					`telephoneCheck("55 55-55-555-5")` debe devolver `false`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```js
 | 
				
			||||||
 | 
					assert(telephoneCheck('55 55-55-555-5') === false);
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# --seed--
 | 
					# --seed--
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## --seed-contents--
 | 
					## --seed-contents--
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
id: bad87fee1348bd9acdd08826
 | 
					id: bad87fee1348bd9acdd08826
 | 
				
			||||||
title: Learn How Script Tags and Document Ready Work
 | 
					title: Aprende como funciona la etiqueta script y la función "document ready"
 | 
				
			||||||
challengeType: 6
 | 
					challengeType: 6
 | 
				
			||||||
forumTopicId: 18224
 | 
					forumTopicId: 18224
 | 
				
			||||||
dashedName: learn-how-script-tags-and-document-ready-work
 | 
					dashedName: learn-how-script-tags-and-document-ready-work
 | 
				
			||||||
@@ -8,23 +8,23 @@ dashedName: learn-how-script-tags-and-document-ready-work
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# --description--
 | 
					# --description--
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Now we're ready to learn jQuery, the most popular JavaScript tool of all time.
 | 
					Ahora estamos listos para aprender jQuery, la herramienta de JavaScript más popular de todos los tiempos.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Before we can start using jQuery, we need to add some things to our HTML.
 | 
					Antes de empezar a usar jQuery, necesitamos añadir algunas cosas a nuestro HTML.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
First, add a `script` element at the top of your page. Be sure to close it on the following line.
 | 
					Primero, añade un elemento `script` en la parte superior de tu página. Asegúrate de cerrarlo en la siguiente línea.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Your browser will run any JavaScript inside a `script` element, including jQuery.
 | 
					Tu navegador ejecutará cualquier JavaScript dentro de un elemento `script`, incluyendo jQuery.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Inside your `script` element, add this code: `$(document).ready(function() {` to your `script`. Then close it on the following line (still inside your `script` element) with: `});`
 | 
					Dentro de tu elemento `script`, añade este código: `$(document).ready(function() {` a tu `script`. Luego ciérralo en la siguiente línea (todavía dentro de tu elemento `script`) con: `});`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
We'll learn more about `functions` later. The important thing to know is that code you put inside this `function` will run as soon as your browser has loaded your page.
 | 
					Aprenderemos más sobre `functions` más tarde. Lo importante a saber es que el código que pongas dentro de esta `function` (función) se ejecutará tan pronto como tu navegador haya cargado tu página.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This is important because without your `document ready function`, your code may run before your HTML is rendered, which would cause bugs.
 | 
					Esto es importante porque sin tu `document ready function`, tu código podría ejecutarse antes de que se procese tu HTML, lo que causaría errores.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# --hints--
 | 
					# --hints--
 | 
				
			||||||
 | 
					
 | 
				
			||||||
You should create a `script` element making sure it is valid and has a closing tag.
 | 
					Debes crear un elemento `script` asegurándote de que sea válido y tenga una etiqueta de cierre.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
assert(
 | 
					assert(
 | 
				
			||||||
@@ -39,7 +39,7 @@ assert(
 | 
				
			|||||||
);
 | 
					);
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
You should add `$(document).ready(function() {` to the beginning of your `script` element.
 | 
					Debes añadir `$(document).ready(function() {` al principio de tu elemento `script`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
assert(
 | 
					assert(
 | 
				
			||||||
@@ -49,7 +49,7 @@ assert(
 | 
				
			|||||||
);
 | 
					);
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
You should close your `$(document).ready(function() {` function with `});`
 | 
					Debes cerrar tu función `$(document).ready(function() {` con `});`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
assert(code.match(/\n*?\s*?\}\s*?\);/g));
 | 
					assert(code.match(/\n*?\s*?\}\s*?\);/g));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user