From b38ddc0fd6cb8c7a097e8fd63075aec98dd1aad4 Mon Sep 17 00:00:00 2001 From: camperbot Date: Thu, 30 Sep 2021 07:29:50 -0700 Subject: [PATCH] chore(i18n,curriculum): update translations (#43633) --- .../use-hex-code-for-specific-colors.md | 4 +- .../add-images-to-your-website.md | 6 +- .../manipulating-complex-objects.md | 2 +- .../arguments-optional.md | 4 +- .../make-images-mobile-responsive.md | 12 ++-- ...implementation-of-social-authentication.md | 68 +++++++++++++------ .../problem-92-square-digit-chains.md | 20 +++--- .../problem-95-amicable-chains.md | 22 +++--- .../project-euler/problem-96-su-doku.md | 16 ++--- .../use-hex-code-for-specific-colors.md | 4 +- .../add-images-to-your-website.md | 6 +- .../manipulating-complex-objects.md | 2 +- .../arguments-optional.md | 4 +- .../make-images-mobile-responsive.md | 12 ++-- ...implementation-of-social-authentication.md | 68 +++++++++++++------ .../problem-92-square-digit-chains.md | 20 +++--- .../problem-95-amicable-chains.md | 22 +++--- .../project-euler/problem-96-su-doku.md | 16 ++--- 18 files changed, 180 insertions(+), 128 deletions(-) diff --git a/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-css/use-hex-code-for-specific-colors.md b/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-css/use-hex-code-for-specific-colors.md index 720f0a18c3..cc5a1a8206 100644 --- a/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-css/use-hex-code-for-specific-colors.md +++ b/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-css/use-hex-code-for-specific-colors.md @@ -11,9 +11,9 @@ dashedName: use-hex-code-for-specific-colors 你知道在 CSS 裏面還有其他方式來代表顏色嗎? 其中一個方法叫十六進制編碼,簡稱 hex。 -日常生活中,我們使用的計數方法一般是 decimals,或十進制,即使用數字 0 到 9 來表示。 而 Hexadecimals(或 hex)基於 16 位數字, 它包括 16 種不同字符。 像十進制一樣,0-9 的符號代表 0 到 9 的值。 然後,A、B、C、D、E、F 代表 10 至 15 的值。 總的來說,0 到 F 在十六進制裏代表數字,總共有 16 個值。 你可以在這裏訪問更多[關於十六進制的信息](https://en.wikipedia.org/wiki/Hexadecimal)。 +日常生活中,我們使用的計數方法一般是 decimals,或十進制,即使用數字 0 到 9 來表示。 而 Hexadecimals(或 hex)基於 16 位數字, 它包括 16 種不同字符。 像十進制一樣,0-9 的符號代表 0 到 9 的值。 然後,A、B、C、D、E、F 代表 10 至 15 的值。 總的來說,0 到 F 在十六進制裏代表數字,總共有 16 個值。 你可以在[此處](https://www.freecodecamp.org/news/hexadecimal-number-system/)找到更多關於十六進制信息。 -在 CSS 裏面,我們可以使用 6 個十六進制的數字來代表顏色,每兩個數字控制一種顏色,分別是紅(R)、綠(G)、藍(B)。 例如,`#000000` 代表黑色,同時也是最小的值。 你可以在 [RGB color system here](https://en.wikipedia.org/wiki/RGB_color_model) 找到更多的相關信息。 +在 CSS 裏面,我們可以使用 6 個十六進制的數字來代表顏色,每兩個數字控制一種顏色,分別是紅(R)、綠(G)、藍(B)。 例如,`#000000` 代表黑色,同時也是最小的值。 你可以在[此處](https://www.freecodecamp.org/news/rgb-color-html-and-css-guide/#whatisthergbcolormodel)找到更多關於 RGB 顏色系統的信息。 ```css body { diff --git a/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md b/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md index 9271efa8bb..61fc7c4557 100644 --- a/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md +++ b/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md @@ -37,7 +37,7 @@ dashedName: add-images-to-your-website 在 `main` 元素裏,給 `p` 元素前面插入一個 `img` 元素。 -現在設置 `src` 屬性,使它指向網址 `https://www.bit.ly/fcc-relaxing-cat`。 +現在設置 `src` 屬性,使其指向 url `https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg` 最後,不要忘記給 `img` 加上 `alt` 屬性。 @@ -52,7 +52,7 @@ assert($('img').length); 你的圖片應該有一個 `src` 屬性,其值爲貓咪圖片的 url。 ```js -assert(/^https:\/\/(www\.)?bit\.ly\/fcc-relaxing-cat$/i.test($('img').attr('src'))); +assert(/^https:\/\/cdn\.freecodecamp\.org\/curriculum\/cat-photo-app\/relaxing-cat\.jpg$/i.test($('img').attr('src'))); ``` 你的圖片元素的 `alt` 屬性值不應爲空。 @@ -86,7 +86,7 @@ assert( ```html

CatPhotoApp

- A cute orange cat lying on its back. + A cute orange cat lying on its back.

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/manipulating-complex-objects.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/manipulating-complex-objects.md index 0231d34296..a011884850 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/manipulating-complex-objects.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/manipulating-complex-objects.md @@ -29,7 +29,7 @@ var ourMusic = [ ]; ``` -這是一個包含一個對象的數組。 該對象有關於專輯的各種元數據(metadata)。 它也有一個嵌套的 `formats` 數組。 可以將專輯添加到頂級數組來增加更多的專輯記錄。 對象將數據以一種鍵 - 值對的形式保存。 在上面的示例中,`"artist": "Daft Punk"` 有一個鍵位 `artist` 值爲 `Daft Punk` 的屬性。 [JavaScript Object Notation](http://www.json.org/) 簡稱 `JSON` 是可以用於存儲數據的數據交換格式。 +這是一個包含一個對象的數組。 該對象有關於專輯的各種元數據(metadata)。 它也有一個嵌套的 `formats` 數組。 可以將專輯添加到頂級數組來增加更多的專輯記錄。 對象將數據以一種鍵 - 值對的形式保存。 在上面的示例中,`"artist": "Daft Punk"` 有一個鍵爲 `artist` 值爲 `Daft Punk` 的屬性。 [JavaScript Object Notation](http://www.json.org/) 簡稱 `JSON` 是可以用於存儲數據的數據交換格式。 ```json { diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.md index 3f6562b0e2..931c039647 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.md @@ -42,10 +42,10 @@ assert.deepEqual(addTogether(23, 30), 53); assert.deepEqual(addTogether(5)(7), 12); ``` -`addTogether("http://bit.ly/IqT6zt")` 應返回 `undefined`。 +`addTogether("https://www.youtube.com/watch?v=dQw4w9WgXcQ")` 應該返回 `undefined`。 ```js -assert.isUndefined(addTogether('http://bit.ly/IqT6zt')); +assert.isUndefined(addTogether('https://www.youtube.com/watch?v=dQw4w9WgXcQ')); ``` `addTogether(2, "3")` 應返回 `undefined`。 diff --git a/curriculum/challenges/chinese-traditional/03-front-end-development-libraries/bootstrap/make-images-mobile-responsive.md b/curriculum/challenges/chinese-traditional/03-front-end-development-libraries/bootstrap/make-images-mobile-responsive.md index 63e0b4dcfc..4f188cd3e2 100644 --- a/curriculum/challenges/chinese-traditional/03-front-end-development-libraries/bootstrap/make-images-mobile-responsive.md +++ b/curriculum/challenges/chinese-traditional/03-front-end-development-libraries/bootstrap/make-images-mobile-responsive.md @@ -8,7 +8,7 @@ dashedName: make-images-mobile-responsive # --description-- -首先,在已有的圖片下面添加一張新的圖片。 設置其 `src` 屬性爲 `https://bit.ly/fcc-running-cats`。 +首先,在已有的圖片下面添加一張新的圖片。 將新圖片的 `src` 屬性設置爲 `https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg`。 如果圖片的大小恰恰和我們手機屏幕尺寸大小一樣自然是最好的。 @@ -34,10 +34,10 @@ assert($('img:eq(1)').hasClass('img-responsive')); assert(!$('img:eq(1)').hasClass('smaller-image')); ``` -新圖片的 `src` 屬性值應該爲 `https://bit.ly/fcc-running-cats`。 +新圖片應該有一個值爲 `https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg` 的 `src` 屬性。 ```js -assert($('img:eq(1)').attr('src') === 'https://bit.ly/fcc-running-cats'); +assert($('img:eq(1)').attr('src') === 'https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg'); ``` 確保新的 `img` 元素有一個閉合的尖括號。 @@ -87,7 +87,7 @@ assert(

Click here for cat photos.

- A cute orange cat lying on its back. + A cute orange cat lying on its back.

Things cats love: