Skip to content

Commit 6a64dc4

Browse files
thundernixonoutoftime
authored andcommitted
Clarify "try" suggestion language (#1834)
* Clarify "try" suggestion language Teaching in a code nation classroom today, a beginner student say the `Try: href="myvalue"` suggestion, and went to paste that _exact_ string into his `img` element. This was an understandable attempt to fix the issue, and I had to correct him that it was showing the _format_ to follow, rather than something specific to add. * Remove extra words in "Try" prompts where suggestions are literal * change "try coding it like" to "try writing it like" in error messages
1 parent 9042292 commit 6a64dc4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

locales/en/translation.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@
149149
"text-elements-as-list-children": "The text `{{-textContent}}` inside the `<{{-tag}}>` tag must be surrounded by `<{{-children}}>` tags",
150150
"invalid-tag-location": "The `<{{-tag}}>` tag can’t go inside the `<{{-parent}}>` tag.",
151151
"invalid-tag-parent": "The `<{{-tag}}>` tag needs to be inside the `{{-parent}}`",
152-
"attribute-quotes": "You need to put the value of the `{{-attribute}}` attribute in quotation marks\nTry: `{{-attribute}}=\"myvalue\"`",
153-
"attribute-value": "Every attribute needs a value.\nTry: `myattribute=\"myvalue\"`",
152+
"attribute-quotes": "You need to put the value of the `{{-attribute}}` attribute in quotation marks\nTry writing it like this: `{{-attribute}}=\"myvalue\"`",
153+
"attribute-value": "Every attribute needs a value.\nTry writing it like this: `myattribute=\"myvalue\"`",
154154
"doctype": "The first line of your HTML should always be:\n`<!DOCTYPE html>`",
155155
"duplicated-id": "You can't use the id \"{{-id}}\" more than once in your HTML",
156156
"img-src": "`<img>` tags need a `src` attribute, with the URL of the image you want to display.",
@@ -195,8 +195,8 @@
195195
"css": {
196196
"missing-opening-curly": "You should have a `{` at the end of this line.",
197197
"missing-closing-curly": "You have a starting `{` but no ending } to go with it.",
198-
"property-missing-colon": "Put a colon (`:`) between the property and the value.\nTry: `color: red;`",
199-
"selector-missing": "Start every block of CSS with a selector, such as an element name or class name.\nTry: `p {\n color: red;\n}`",
198+
"property-missing-colon": "Put a colon (`:`) between the property and the value.\nTry writing it like this: `color: red;`",
199+
"selector-missing": "Start every block of CSS with a selector, such as an element name or class name.\nTry writing it like this: `p {\n color: red;\n}`",
200200
"block-expected": "Start a block using `{` after your selector.\nTry: `{{-error}} {`",
201201
"extra-tokens-after-value": "The `{{-token}}` at the end of this line doesn’t belong there.",
202202
"illegal-token-after-combinator": "After a `+` or `>` in a selector, you need to specify the name of another element, class, or ID",

0 commit comments

Comments
 (0)