From 90f21212ff71bdf9649c027bf9dc36fea297bd18 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Mon, 29 Jun 2020 17:23:53 -0400 Subject: [PATCH] Use the square button icon instead of name, for consistency --- data/core.yaml | 2 +- dist/locales/en.json | 2 +- modules/ui/intro/building.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/core.yaml b/data/core.yaml index 3a104b0da..52605c6dc 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -2024,7 +2024,7 @@ en: close: "**Hit escape or click the {button} button to close the feature editor.**" rightclick_building: "**Right-click to select the building you created and show the edit menu.**" square_building: "The house that you just added will look even better with perfectly square corners. **Press the {button} button to square the building shape.**" - retry_square: "You didn't press the Square button. Try again." + retry_square: "You didn't press the {button} button. Try again." done_square: "See how the corners of the building moved into place? Let's learn another useful trick." add_tank: "Next we'll trace this circular storage tank. **Press the {button} Area button to add a new area.**" start_tank: "Don't worry, you won't need to draw a perfect circle. Just draw an area inside the tank that touches its edge. **Click or press spacebar to place a starting node on the edge of the tank.**" diff --git a/dist/locales/en.json b/dist/locales/en.json index 52b670a45..2f9f8db96 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -2503,7 +2503,7 @@ "close": "**Hit escape or click the {button} button to close the feature editor.**", "rightclick_building": "**Right-click to select the building you created and show the edit menu.**", "square_building": "The house that you just added will look even better with perfectly square corners. **Press the {button} button to square the building shape.**", - "retry_square": "You didn't press the Square button. Try again.", + "retry_square": "You didn't press the {button} button. Try again.", "done_square": "See how the corners of the building moved into place? Let's learn another useful trick.", "add_tank": "Next we'll trace this circular storage tank. **Press the {button} Area button to add a new area.**", "start_tank": "Don't worry, you won't need to draw a perfect circle. Just draw an area inside the tank that touches its edge. **Click or press spacebar to place a starting node on the edge of the tank.**", diff --git a/modules/ui/intro/building.js b/modules/ui/intro/building.js index 7e35ee222..ebd5fc0c0 100644 --- a/modules/ui/intro/building.js +++ b/modules/ui/intro/building.js @@ -404,7 +404,7 @@ export function uiIntroBuilding(context, reveal) { function retryClickSquare() { context.enter(modeBrowse(context)); - revealHouse(house, t('intro.buildings.retry_square'), { + revealHouse(house, t('intro.buildings.retry_square', { button: icon('#iD-operation-orthogonalize', 'pre-text') }), { buttonText: t('intro.ok'), buttonCallback: function() { continueTo(rightClickHouse); } });