From 59abda3ff20273260481eff8b158988cd551993e Mon Sep 17 00:00:00 2001 From: Ilenia Date: Tue, 21 Jun 2022 16:23:13 +0200 Subject: [PATCH] fix(curriculum, i18n): solve issues in crowdin comments (#46597) --- .../escaping-literal-quotes-in-strings.md | 2 +- .../iterate-with-javascript-do...while-loops.md | 2 +- .../access-the-json-data-from-an-api.md | 2 +- .../exercise-tracker.md | 2 +- .../quality-assurance-projects/sudoku-solver.md | 4 ++-- .../page-view-time-series-visualizer.md | 8 ++++---- .../sea-level-predictor.md | 4 ++-- .../algorithms/find-the-symmetric-difference.md | 2 +- .../data-structures/search-within-a-linked-list.md | 2 +- .../project-euler/problem-414-kaprekar-constant.md | 4 +++- .../rosetta-code/amicable-pairs.md | 2 +- .../rosetta-code/execute-a-markov-algorithm.md | 12 ++++++------ .../61a4a6e908bc34725b4c25ac.md | 2 +- .../60fad99e09f9d30c1657e790.md | 2 +- 14 files changed, 26 insertions(+), 24 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings.md index c3a4219cf61..21fcd4fe6eb 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings.md @@ -39,7 +39,7 @@ You should use two double quotes (`"`) and four escaped double quotes (`\"`). assert(code.match(/\\"/g).length === 4 && code.match(/[^\\]"/g).length === 2); ``` -Variable myStr should contain the string: `I am a "double quoted" string inside "double quotes".` +Variable `myStr` should contain the string: `I am a "double quoted" string inside "double quotes".` ```js assert(/I am a "double quoted" string inside "double quotes(\."|"\.)$/.test(myStr)); diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-do...while-loops.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-do...while-loops.md index 3f0a4cddd29..af005afe4f1 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-do...while-loops.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-do...while-loops.md @@ -21,7 +21,7 @@ do { } while (i < 5); ``` -The example above behaves similar to other types of loops, and the resulting array will look like `[0, 1, 2, 3, 4]`. However, what makes the `do...while` different from other loops is how it behaves when the condition fails on the first check. Let's see this in action: Here is a regular `while` loop that will run the code in the loop as long as `i < 5`: +The example above behaves similar to other types of loops, and the resulting array will look like `[0, 1, 2, 3, 4]`. However, what makes the `do...while` different from other loops is how it behaves when the condition fails on the first check. Let's see this in action. Here is a regular `while` loop that will run the code in the loop as long as `i < 5`: ```js const ourArray = []; diff --git a/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/access-the-json-data-from-an-api.md b/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/access-the-json-data-from-an-api.md index 50b0ee7a2f5..b77c40d31e6 100644 --- a/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/access-the-json-data-from-an-api.md +++ b/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/access-the-json-data-from-an-api.md @@ -12,7 +12,7 @@ In the previous challenge, you saw how to get JSON data from the freeCodeCamp Ca Now you'll take a closer look at the returned data to better understand the JSON format. Recall some notation in JavaScript: -
[ ] -> Square brackets represent an array
{ } -> Curly brackets represent an object
" " -> Double quotes represent a string. They are also used for key names in JSON
+
[ ] -> Square brackets represent an array.
{ } -> Curly brackets represent an object.
" " -> Double quotes represent a string. They are also used for key names in JSON.
Understanding the structure of the data that an API returns is important because it influences how you retrieve the values you need. diff --git a/curriculum/challenges/english/05-back-end-development-and-apis/back-end-development-and-apis-projects/exercise-tracker.md b/curriculum/challenges/english/05-back-end-development-and-apis/back-end-development-and-apis-projects/exercise-tracker.md index c6a7c9b7545..1c94e0e7017 100644 --- a/curriculum/challenges/english/05-back-end-development-and-apis/back-end-development-and-apis-projects/exercise-tracker.md +++ b/curriculum/challenges/english/05-back-end-development-and-apis/back-end-development-and-apis-projects/exercise-tracker.md @@ -494,7 +494,7 @@ async(getUserInput) => { }; ``` -The `date` property of any object in the `log` array that is returned from `GET /api/users/:id/logs` should be a string.. Use the `dateString` format of the `Date` API. +The `date` property of any object in the `log` array that is returned from `GET /api/users/:id/logs` should be a string. Use the `dateString` format of the `Date` API. ```js async(getUserInput) => { diff --git a/curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md b/curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md index c0bf5e7d8e3..9c26bb9d1cc 100644 --- a/curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md +++ b/curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md @@ -324,7 +324,7 @@ async (getUserInput) => { }; ``` -If the `value` submitted to `/api/check` is not a number between 1 and 9, the returned values will be `{ error: 'Invalid value' }` +If the `value` submitted to `/api/check` is not a number between 1 and 9, the returned value will be `{ error: 'Invalid value' }` ```js async (getUserInput) => { @@ -369,7 +369,7 @@ async (getUserInput) => { }; ``` -All 14 functional tests are complete and passing. See `/tests/2_functional-tests.js` for the functionality you should write tests for. +All 14 functional tests are complete and passing. See `/tests/2_functional-tests.js` for the expected functionality you should write tests for. ```js async (getUserInput) => { diff --git a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-projects/page-view-time-series-visualizer.md b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-projects/page-view-time-series-visualizer.md index 9b77f4e024a..d09e6670b5c 100644 --- a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-projects/page-view-time-series-visualizer.md +++ b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-projects/page-view-time-series-visualizer.md @@ -21,11 +21,11 @@ For this project you will visualize time series data using a line chart, bar cha Use the data to complete the following tasks: -- Use Pandas to import the data from "fcc-forum-pageviews.csv". Set the index to the "date" column. +- Use Pandas to import the data from "fcc-forum-pageviews.csv". Set the index to the `date` column. - Clean the data by filtering out days when the page views were in the top 2.5% of the dataset or bottom 2.5% of the dataset. -- Create a `draw_line_plot` function that uses Matplotlib to draw a line chart similar to "examples/Figure_1.png". The title should be "Daily freeCodeCamp Forum Page Views 5/2016-12/2019". The label on the x axis should be "Date" and the label on the y axis should be "Page Views". -- Create a `draw_bar_plot` function that draws a bar chart similar to "examples/Figure_2.png". It should show average daily page views for each month grouped by year. The legend should show month labels and have a title of "Months". On the chart, the label on the x axis should be "Years" and the label on the y axis should be "Average Page Views". -- Create a `draw_box_plot` function that uses Seaborn to draw two adjacent box plots similar to "examples/Figure_3.png". These box plots should show how the values are distributed within a given year or month and how it compares over time. The title of the first chart should be "Year-wise Box Plot (Trend)" and the title of the second chart should be "Month-wise Box Plot (Seasonality)". Make sure the month labels on bottom start at "Jan" and the x and x axis are labeled correctly. The boilerplate includes commands to prepare the data. +- Create a `draw_line_plot` function that uses Matplotlib to draw a line chart similar to "examples/Figure_1.png". The title should be `Daily freeCodeCamp Forum Page Views 5/2016-12/2019`. The label on the x axis should be `Date` and the label on the y axis should be `Page Views`. +- Create a `draw_bar_plot` function that draws a bar chart similar to "examples/Figure_2.png". It should show average daily page views for each month grouped by year. The legend should show month labels and have a title of `Months`. On the chart, the label on the x axis should be `Years` and the label on the y axis should be `Average Page Views`. +- Create a `draw_box_plot` function that uses Seaborn to draw two adjacent box plots similar to "examples/Figure_3.png". These box plots should show how the values are distributed within a given year or month and how it compares over time. The title of the first chart should be `Year-wise Box Plot (Trend)` and the title of the second chart should be `Month-wise Box Plot (Seasonality)`. Make sure the month labels on bottom start at `Jan` and the x and y axis are labeled correctly. The boilerplate includes commands to prepare the data. For each chart, make sure to use a copy of the data frame. Unit tests are written for you under `test_module.py`. diff --git a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md index f6de7b72dde..6e53b24f320 100644 --- a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md +++ b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md @@ -22,10 +22,10 @@ You will analyze a dataset of the global average sea level change since 1880. Yo Use the data to complete the following tasks: - Use Pandas to import the data from `epa-sea-level.csv`. -- Use matplotlib to create a scatter plot using the "Year" column as the x-axis and the "CSIRO Adjusted Sea Level" column as the y-axix. +- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axix. - Use the `linregress` function from `scipy.stats` to get the slope and y-intercept of the line of best fit. Plot the line of best fit over the top of the scatter plot. Make the line go through the year 2050 to predict the sea level rise in 2050. - Plot a new line of best fit just using the data from year 2000 through the most recent year in the dataset. Make the line also go through the year 2050 to predict the sea level rise in 2050 if the rate of rise continues as it has since the year 2000. -- The x label should be "Year", the y label should be "Sea Level (inches)", and the title should be "Rise in Sea Level". +- The x label should be `Year`, the y label should be `Sea Level (inches)`, and the title should be `Rise in Sea Level`. Unit tests are written for you under `test_module.py`. diff --git a/curriculum/challenges/english/10-coding-interview-prep/algorithms/find-the-symmetric-difference.md b/curriculum/challenges/english/10-coding-interview-prep/algorithms/find-the-symmetric-difference.md index f5fa4e3e8c3..337dc3c76f7 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/algorithms/find-the-symmetric-difference.md +++ b/curriculum/challenges/english/10-coding-interview-prep/algorithms/find-the-symmetric-difference.md @@ -54,7 +54,7 @@ assert.sameMembers(sym([1, 2, 3], [5, 2, 1, 4, 5]), [3, 4, 5]); assert.equal(sym([1, 2, 3], [5, 2, 1, 4, 5]).length, 3); ``` -`sym([1, 2, 5], [2, 3, 5], [3, 4, 5])` should return `[1, 4, 5]` +`sym([1, 2, 5], [2, 3, 5], [3, 4, 5])` should return `[1, 4, 5]`. ```js assert.sameMembers(sym([1, 2, 5], [2, 3, 5], [3, 4, 5]), [1, 4, 5]); diff --git a/curriculum/challenges/english/10-coding-interview-prep/data-structures/search-within-a-linked-list.md b/curriculum/challenges/english/10-coding-interview-prep/data-structures/search-within-a-linked-list.md index 03361689fef..aa2c05c8810 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/data-structures/search-within-a-linked-list.md +++ b/curriculum/challenges/english/10-coding-interview-prep/data-structures/search-within-a-linked-list.md @@ -16,7 +16,7 @@ Let's also implement a method that does the opposite: an `elementAt` method that # --instructions-- -Write an `isEmpty` method that checks if the linked list is empty, an `indexOf` method that returns the `index` of a given element, and an `elementAt` that returns an `element` at a given `index.` +Write an `isEmpty` method that checks if the linked list is empty, an `indexOf` method that returns the `index` of a given element, and an `elementAt` that returns an `element` at a given `index`. # --hints-- diff --git a/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-414-kaprekar-constant.md b/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-414-kaprekar-constant.md index 8882c36749a..605077970f1 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-414-kaprekar-constant.md +++ b/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-414-kaprekar-constant.md @@ -25,7 +25,9 @@ $$\begin{align} We can consider the Kaprekar routine for other bases and number of digits. Unfortunately, it is not guaranteed a Kaprekar constant exists in all cases; either the routine can end up in a cycle for some input numbers or the constant the routine arrives at can be different for different input numbers. However, it can be shown that for 5 digits and a base $b = 6t + 3 ≠ 9$, a Kaprekar constant exists. -E.g. base 15: ${(10, 4, 14, 9, 5)}\_{15}$ base 21: $(14, 6, 20, 13, 7)_{21}$ +E.g. +base 15: ${(10, 4, 14, 9, 5)}\_{15}$ +base 21: $(14, 6, 20, 13, 7)\_{21}$ Define $C_b$ to be the Kaprekar constant in base $b$ for 5 digits. Define the function $sb(i)$ to be: diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/amicable-pairs.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/amicable-pairs.md index a6543f69d78..af2cf07b171 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/amicable-pairs.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/amicable-pairs.md @@ -19,7 +19,7 @@ Two integers $N$ and $M$ are said to be amicable pairs if $N \\neq M$ and the su
  • 1, 2, 5, 10, 11, 22, 55, 110, 121, 242, 605 respectively.
  • -The sum of the divisors for the first value, **1184**, is **1210** and the sum of the divisors for the second value, **1210**', is **1184**. +The sum of the divisors for the first value, **1184**, is **1210** and the sum of the divisors for the second value, **1210**, is **1184**. # --instructions-- diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md index 8773a5e922b..1edde7bc255 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md @@ -12,7 +12,7 @@ Markov Concepts are used in machine learning, because of its simple approach in We have added in the background: -The `rules` in the form of `nested array`, and the `data` in the form of `array`, too. And the desired `outputs`. +The `rules` in the form of nested array, and the `data` in the form of array, too. And the desired `outputs`. The `rules`: @@ -82,31 +82,31 @@ Using Markov Algorithm, change the `data` into the desired `outputs` using the assert(typeof markov === 'function'); ``` -`markov(["A -> apple","B -> bag","S -> shop","T -> the","the shop -> my brother","a never used -> .terminating rule"],"I bought a B of As from T S.")` should return "I bought a bag of apples from my brother.". +`markov(["A -> apple","B -> bag","S -> shop","T -> the","the shop -> my brother","a never used -> .terminating rule"],"I bought a B of As from T S.")` should return the string `I bought a bag of apples from my brother.`. ```js assert.deepEqual(markov(rules[0], datas[0]), outputs[0]); ``` -`markov(["A -> apple","B -> bag","S -> .shop","T -> the","the shop -> my brother","a never used -> .terminating rule"],"I bought a B of As from T S.")` should return "I bought a bag of apples from T shop.". +`markov(["A -> apple","B -> bag","S -> .shop","T -> the","the shop -> my brother","a never used -> .terminating rule"],"I bought a B of As from T S.")` should return the string `I bought a bag of apples from T shop.`. ```js assert.deepEqual(markov(rules[1], datas[1]), outputs[1]); ``` -`markov(["A -> apple","WWWW -> with","Bgage -> ->.*","B -> bag","->.* -> money","W -> WW","S -> .shop","T -> the","the shop -> my brother","a never used -> .terminating rule"],"I bought a B of As W my Bgage from T S.")` should return "I bought a bag of apples with my money from T shop.". +`markov(["A -> apple","WWWW -> with","Bgage -> ->.*","B -> bag","->.* -> money","W -> WW","S -> .shop","T -> the","the shop -> my brother","a never used -> .terminating rule"],"I bought a B of As W my Bgage from T S.")` should return the string `I bought a bag of apples with my money from T shop.`. ```js assert.deepEqual(markov(rules[2], datas[2]), outputs[2]); ``` -`markov(["_+1 -> _1+","1+1 -> 11+","1! -> !1",",! -> !+","_! -> _","1*1 -> x,@y","1x -> xX","X, -> 1,1","X1 -> 1X","_x -> _X",",x -> ,X","y1 -> 1y","y_ -> _","1@1 -> x,@y","1@_ -> @_",",@_ -> !_","++ -> +","_1 -> 1","1+_ -> 1","_+_ -> "],"_1111*11111_")` should return "11111111111111111111". +`markov(["_+1 -> _1+","1+1 -> 11+","1! -> !1",",! -> !+","_! -> _","1*1 -> x,@y","1x -> xX","X, -> 1,1","X1 -> 1X","_x -> _X",",x -> ,X","y1 -> 1y","y_ -> _","1@1 -> x,@y","1@_ -> @_",",@_ -> !_","++ -> +","_1 -> 1","1+_ -> 1","_+_ -> "],"_1111*11111_")` should return the string `11111111111111111111`. ```js assert.deepEqual(markov(rules[3], datas[3]), outputs[3]); ``` -`markov(["A0 -> 1B","0A1 -> C01","1A1 -> C11","0B0 -> A01","1B0 -> A11","B1 -> 1B","0C0 -> B01","1C0 -> B11","0C1 -> H01","1C1 -> H11"],"")` should return "00011H1111000". +`markov(["A0 -> 1B","0A1 -> C01","1A1 -> C11","0B0 -> A01","1B0 -> A11","B1 -> 1B","0C0 -> B01","1C0 -> B11","0C1 -> H01","1C1 -> H11"],"")` should return the string `00011H1111000`. ```js assert.deepEqual(markov(rules[4], datas[4]), outputs[4]); diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a4a6e908bc34725b4c25ac.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a4a6e908bc34725b4c25ac.md index 67520a6aa9a..a2c577d209b 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a4a6e908bc34725b4c25ac.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a4a6e908bc34725b4c25ac.md @@ -7,7 +7,7 @@ dashedName: step-56 # --description-- -Next, set the color-stop for red to `0%`, the color-stop for green to `50%`, and the color-stop for blue to `100%`; +Next, set the color-stop for red to `0%`, the color-stop for green to `50%`, and the color-stop for blue to `100%`. # --hints-- diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad99e09f9d30c1657e790.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad99e09f9d30c1657e790.md index 4229925f8c9..d3a2e3de159 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad99e09f9d30c1657e790.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad99e09f9d30c1657e790.md @@ -7,7 +7,7 @@ dashedName: step-39 # --description-- -Center the `form` element, by giving it a `margin` of `0 auto`. Then, fix its size to a maximum `width` of `500px`, and a minimum width of `300px`. In between that range, allow it to have a `width` of `60vw`. +Center the `form` element, by giving it a `margin` of `0 auto`. Then, fix its size to a maximum width of `500px`, and a minimum width of `300px`. In between that range, allow it to have a `width` of `60vw`. # --hints--