chore(i18n,learn): processed translations (#55599)

This commit is contained in:
freeCodeCamp's Camper Bot
2024-07-22 19:40:06 +05:30
committed by GitHub
parent c3da14c33e
commit fd08605134
27 changed files with 49 additions and 49 deletions
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
@@ -43,7 +43,7 @@ updateScore(10, "hi");
assert.strictEqual(scoreHistory.children.length, 1);
```
When `updateScore(10, "hi")` is called, your new list element should have the text `hi: 10`.
When `updateScore(10, "hi")` is called, your new list element should have the text `hi : 10`.
```js
scoreHistory.innerHTML = "";
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
@@ -43,7 +43,7 @@ updateScore(10, "hi");
assert.strictEqual(scoreHistory.children.length, 1);
```
When `updateScore(10, "hi")` is called, your new list element should have the text `hi: 10`.
When `updateScore(10, "hi")` is called, your new list element should have the text `hi : 10`.
```js
scoreHistory.innerHTML = "";
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
@@ -43,7 +43,7 @@ updateScore(10, "hi");
assert.strictEqual(scoreHistory.children.length, 1);
```
When `updateScore(10, "hi")` is called, your new list element should have the text `hi: 10`.
When `updateScore(10, "hi")` is called, your new list element should have the text `hi : 10`.
```js
scoreHistory.innerHTML = "";
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
@@ -43,7 +43,7 @@ updateScore(10, "hi");
assert.strictEqual(scoreHistory.children.length, 1);
```
When `updateScore(10, "hi")` is called, your new list element should have the text `hi: 10`.
When `updateScore(10, "hi")` is called, your new list element should have the text `hi : 10`.
```js
scoreHistory.innerHTML = "";
@@ -1,10 +1,10 @@
---
id: 64afc4e8f3b37856e035b85f
title: Upcoming Python Certification
title: Bevorstehende Python-Zertifizierung
certification: upcoming-python-certification
challengeType: 7
isPrivate: true
tests:
-
id: 64afc37bf3b37856e035b85e
title: Upcoming Python Project
title: Bevorstehendes Python-Projekt
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
@@ -43,7 +43,7 @@ updateScore(10, "hi");
assert.strictEqual(scoreHistory.children.length, 1);
```
When `updateScore(10, "hi")` is called, your new list element should have the text `hi: 10`.
When `updateScore(10, "hi")` is called, your new list element should have the text `hi : 10`.
```js
scoreHistory.innerHTML = "";
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
@@ -43,7 +43,7 @@ updateScore(10, "hi");
assert.strictEqual(scoreHistory.children.length, 1);
```
When `updateScore(10, "hi")` is called, your new list element should have the text `hi: 10`.
When `updateScore(10, "hi")` is called, your new list element should have the text `hi : 10`.
```js
scoreHistory.innerHTML = "";
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
@@ -43,7 +43,7 @@ updateScore(10, "hi");
assert.strictEqual(scoreHistory.children.length, 1);
```
When `updateScore(10, "hi")` is called, your new list element should have the text `hi: 10`.
When `updateScore(10, "hi")` is called, your new list element should have the text `hi : 10`.
```js
scoreHistory.innerHTML = "";
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
@@ -43,7 +43,7 @@ updateScore(10, "hi");
assert.strictEqual(scoreHistory.children.length, 1);
```
When `updateScore(10, "hi")` is called, your new list element should have the text `hi: 10`.
When `updateScore(10, "hi")` is called, your new list element should have the text `hi : 10`.
```js
scoreHistory.innerHTML = "";
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
@@ -15,13 +15,13 @@ Defina o título `title` para `Ferris Wheel`.
# --hints--
Your code should contain the `DOCTYPE` declaration.
O código deve conter a declaração de `DOCTYPE`.
```js
assert.match(code, /<!DOCTYPE/gi);
```
You should include a space after the `DOCTYPE` declaration.
Você deve incluir um espaço após a declaração de `DOCTYPE`.
```js
assert.match(code, /<!DOCTYPE\s+/gi);
@@ -81,31 +81,31 @@ Você deve acrescentar uma tag de fechamento para o elemento `body`.
assert.match(code, /<\/body\s*>/i);
```
Your `body` element should be the first element after the `head` element.
O elemento `body` deve ser o primeiro elemento depois do elemento `head`.
```js
assert.match(code, /<\/head\s*>\s*<body\s*>/i);
```
Your `head` and `body` elements should be siblings.
Os elementos `head` e `body` devem ser irmãos.
```js
assert.strictEqual(document.querySelector('head')?.nextElementSibling?.localName, 'body');
```
Your `head` element should be the first element inside your `html` element.
O elemento `head` deve ser o primeiro elemento dentro do elemento `html`.
```js
assert.match(code, /<html\s+lang\s*=\s*('|")en\1\s*>\s*<head\s*>/);
```
Your `head` element should be within the `html` element.
O elemento `head` deve estar dentro do elemento `html`.
```js
assert.isTrue([...document.querySelector('html')?.children].some(x => x?.localName === 'head'));
```
Your `body` element should be within the `html` element.
O elemento `body` deve ser filho do elemento `html`.
```js
assert.isTrue([...document.querySelector('html')?.children].some(x => x?.localName === 'body'));
@@ -124,7 +124,7 @@ O elemento `meta` deve ter o atributo `charset` com o valor `UTF-8`.
assert.match(code, /<meta\s+charset=('|"|`)UTF-8\1/i);
```
Your `meta` element should be inside the `head` element.
O elemento `meta` deve estar dentro do elemento `head`.
```js
const regex = /<head\s*>(?:.|\r|\n)*?<meta\s+charset=('|"|`)utf-8\1(?:.|\r|\n)*?<\/head\s*>/i;
@@ -158,7 +158,7 @@ O código deve ter um elemento `link`.
assert.match(code, /<link/);
```
You should have one `link` element.
Você deve ter um elemento `link`.
```js
assert.strictEqual(document.querySelectorAll('link').length, 1);
@@ -7,9 +7,9 @@ dashedName: step-4
# --description--
The `charset` attribute specifies the character encoding used by the document. `utf-8` (Unicode Transformation Format 8-bit) is a character encoding standard used for electronic communication.
O atributo `charset` especifica a codificação de caracteres usada pelo documento. `utf-8` (Formato de Transformação Unicode, de 8 bits) é um padrão de codificação de caracteres usado para comunicação eletrônica.
Inside the `head` element, nest a `meta` element with the attribute `charset` set to `"utf-8"`.
Dentro do elemento `head`, aninhe um elemento `meta` com o atributo `charset` definido como `"utf-8"`.
# --hints--
@@ -20,13 +20,13 @@ const meta = document.querySelectorAll('meta');
assert.strictEqual(meta?.length, 1);
```
Your `meta` element should be a void element, it should not have a closing tag `</meta>`.
O elemento `meta` deve ser um elemento nulo, sem uma tag final `</meta>`.
```js
assert.notMatch(code, /<\/meta>/i);
```
Your `meta` element should have a `charset` attribute set to the value `"utf-8"`.
O elemento `meta` deve ter o atributo `charset` com o valor `"utf-8"`.
```js
const meta = [...document.querySelectorAll('meta')];
@@ -34,7 +34,7 @@ const target = meta?.find(m => m?.getAttribute('charset')?.toLowerCase() === 'ut
assert.exists(target);
```
Your `meta` element should be inside the `head` element.
O elemento `meta` deve estar dentro do elemento `head`.
```js
const metaElementRegex = /<head\s*>(?:.|\r|\n)*?<meta(?:.|\r|\n)*?<\/head\s*>/i;
@@ -7,9 +7,9 @@ dashedName: step-5
# --description--
You can have multiple `meta` elements on a web page. Cada elemento `meta` adiciona informações sobre a página que não podem ser expressas por outros elementos do HTML.
Você pode ter vários elementos `meta` em uma página da web. Cada elemento `meta` adiciona informações sobre a página que não podem ser expressas por outros elementos do HTML.
Add another `meta` element within the `head`. Give it a `name` attribute set to `"viewport"` and a `content` attribute set to `"width=device-width, initial-scale=1.0"` so your page looks the same on all devices.
Adicione outro elemento `meta` dentro do elemento `head`. Dê a ele o atributo `name` definido como `"viewport"` e o atributo `content` definido como `"width=device-width, initial-scale=1.0"` para que a página tenha a mesma aparência em todos os dispositivos.
# --hints--
@@ -20,14 +20,14 @@ const meta = document.querySelectorAll('meta');
assert.strictEqual(meta?.length, 2);
```
Your new `meta` element should be a void element, it should not have a closing tag `</meta>`.
O elemento `meta` deve ser um elemento nulo, sem uma tag final `</meta>`.
```js
assert.notMatch(code, /<\/meta>/i);
```
Your new `meta` element should have a `name` attribute set to `"viewport"`, and a `content` attribute set to `"width=device-width, initial-scale=1.0"`.
O novo elemento `meta` deve ter o atributo `name` definido como `"viewport"` e o atributo `content` definido como `"width=device-width, initial-scale=1.0"`.
```js
const meta = [...document.querySelectorAll('meta')];
@@ -36,7 +36,7 @@ const target = meta?.find(m => m?.getAttribute('name')?.toLowerCase()?.replace(/
assert.exists(target);
```
Your new `meta` element should be inside the `head` element.
O novo elemento `meta` deve estar dentro do elemento `head`.
```js
const metaElementRegex = /<head\s*>(?:.|\r|\n)*?<meta\s+name\s*=\s*('|"|`)\s*viewport\s*\1\s+content\s*=\s*\1\s*width\s*=\s*device-width\s*,\s*initial-scale\s*=\s*1(?:\.0)?\s*\1(?:.|\r|\n)*?<\/head\s*>/i;
@@ -9,23 +9,23 @@ dashedName: step-7
Neste projeto, você trabalhará com um arquivo CSS externo para estilizar a página. Já criamos um arquivo de `styles.css` para você. Mas antes que você possa usá-lo, você precisará vinculá-lo à página.
Adicione um elemento `link` dentro do elemento `head`. Give it a `rel` attribute set to `"stylesheet"` and an `href` attribute set to `"styles.css"`.
Adicione um elemento `link` dentro do elemento `head`. Dê a ele o atributo `rel` definido como `"stylesheet"` e o atributo `href` definido como `"styles.css"`.
# --hints--
You should have one `link` element.
Você deve ter um elemento `link`.
```js
assert.strictEqual(document.querySelectorAll('link')?.length, 1);
```
Your `link` element should be a void element, it should not have a closing tag `</link>`.
O elemento `link` deve ser um elemento nulo, sem uma tag final `</link>`.
```js
assert.notMatch(code, /<\/link>/i);
```
Your `link` element should have a `rel` attribute with the value `"stylesheet"`.
O elemento `link` deve ter o atributo `rel` com o valor de `"stylesheet"`.
```js
const linkElement = document.querySelector('link');
@@ -33,14 +33,14 @@ const rel = linkElement?.getAttribute("rel")?.toLowerCase();
assert.strictEqual(rel, "stylesheet");
```
Your `link` element should have an `href` attribute with the value `"styles.css"`.
O elemento `link` deve ter o atributo `href` com o valor de `"styles.css"`.
```js
const linkElement = document.querySelector('link');
assert.strictEqual(linkElement?.dataset?.href, "styles.css");
```
Your `link` element should be inside the `head` element.
O elemento `link` deve estar dentro do elemento `head`.
```js
const linkElementRegex = /<head\s*>(?:.|\r|\n)*?<link(?:.|\r|\n)*?<\/head\s*>/i;
@@ -43,7 +43,7 @@ updateScore(10, "hi");
assert.strictEqual(scoreHistory.children.length, 1);
```
When `updateScore(10, "hi")` is called, your new list element should have the text `hi: 10`.
When `updateScore(10, "hi")` is called, your new list element should have the text `hi : 10`.
```js
scoreHistory.innerHTML = "";
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
@@ -43,7 +43,7 @@ updateScore(10, "hi");
assert.strictEqual(scoreHistory.children.length, 1);
```
When `updateScore(10, "hi")` is called, your new list element should have the text `hi: 10`.
When `updateScore(10, "hi")` is called, your new list element should have the text `hi : 10`.
```js
scoreHistory.innerHTML = "";
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
@@ -43,7 +43,7 @@ updateScore(10, "hi");
assert.strictEqual(scoreHistory.children.length, 1);
```
When `updateScore(10, "hi")` is called, your new list element should have the text `hi: 10`.
When `updateScore(10, "hi")` is called, your new list element should have the text `hi : 10`.
```js
scoreHistory.innerHTML = "";