From 4be41235b5099ace6a923018eddbbbdd2a93f376 Mon Sep 17 00:00:00 2001
From: Chris Garrity
Date: Tue, 12 Nov 2019 18:17:30 -0500
Subject: [PATCH 1/2] Additional ChromeOS/Android FAQs for the download page
Two more questions related to bluetooth on ChromeOS/Android.
They should only be visible if either Chrome or Android is selected, and the `CHROME_APP_RELEASED` feature flag is true.
---
src/views/download/download.jsx | 38 +++++++++++++++++++++++++++++++++
src/views/download/l10n.json | 9 +++++++-
2 files changed, 46 insertions(+), 1 deletion(-)
diff --git a/src/views/download/download.jsx b/src/views/download/download.jsx
index 10ad737b1..d936234e4 100644
--- a/src/views/download/download.jsx
+++ b/src/views/download/download.jsx
@@ -9,6 +9,7 @@ const bindAll = require('lodash.bindall');
const Page = require('../../components/page/www/page.jsx');
const render = require('../../lib/render.jsx');
const detectOS = require('../../lib/detect-os.js').default;
+const OS_ENUM = require('../../lib/os-enum.js');
const {CHROME_APP_RELEASED} = require('../../lib/feature-flags.js');
const OSChooser = require('../../components/os-chooser/os-chooser.jsx');
const InstallScratch = require('../../components/install-scratch/install-scratch.jsx');
@@ -303,6 +304,43 @@ class Download extends React.Component {
}
+ {CHROME_APP_RELEASED && isFromGooglePlay(this.state.OS) && (
+
+
+
+
+
+ :
+
+ ),
+ whyNoDevicesContactUsLink: (
+
+
+
+ )
+ }}
+ />
+
+
+ )}
+ {CHROME_APP_RELEASED && isFromGooglePlay(this.state.OS) && (
+
+
+
+
+
+
+
+
+ )}
diff --git a/src/views/download/l10n.json b/src/views/download/l10n.json
index 92e204675..74256bd9a 100644
--- a/src/views/download/l10n.json
+++ b/src/views/download/l10n.json
@@ -40,5 +40,12 @@
"download.canIShareAnswer": "This isn’t supported currently. For now, you can save a project from Scratch Desktop, upload it to your Scratch account, and share it there. In a later version we will add the ability to upload to your Scratch account directly in Scratch Desktop.",
"download.canIShareApp": "Can I share to the online community from the Scratch app for {operatingsystem}?",
"download.canIShareAnswerPlayStore": "Yes. Click the 3-dots menu on a project in the lobby and select \"Share\" from the options. In addition to sharing by email, you can sign in to your Scratch account and share a project to the Scratch online community.",
- "download.canIShareAnswerDownloaded": "Sharing directly to online community from the Scratch app for {operatingsystem} is not currently supported. For now, you can export a project from the Scratch app, then log onto the Scratch website, and upload and share your project there."
+ "download.canIShareAnswerDownloaded": "Sharing directly to online community from the Scratch app for {operatingsystem} is not currently supported. For now, you can export a project from the Scratch app, then log onto the Scratch website, and upload and share your project there.",
+ "download.whyNoDevicesVisible" : "Why doesn't Scratch show any devices when I try to connect hardware extensions?",
+ "download.whyNoDevicesVisibleAnswer": "We’ve found that turning your {devicePosessive} bluetooth off and on again in the system settings usually allows you to see hardware devices again. If the problem persists, please {whyNoDevicesContactUsLink}.",
+ "download.whyNoDevicesContactUsLink": "contact us",
+ "download.chromebookPossessive": "Chromebook's",
+ "download.androidPossessive": "Android tablet's",
+ "download.whyAskForLocation" : "Why is {operatingsystem} asking for my location?",
+ "download.whyAskForLocationAnswer" : "Scratch uses bluetooth to connect to other devices, such as a Micro:Bit or Lego Boost. Bluetooth can be used to provide location data to the app, so Google requires every app that uses bluetooth ask users for permission to access their location. Scratch will not use bluetooth to track your location."
}
From 0d93c3faf01ef8b1386a7414baeed711612e4732 Mon Sep 17 00:00:00 2001
From: Chris Garrity
Date: Wed, 13 Nov 2019 09:43:24 -0500
Subject: [PATCH 2/2] Correct TM capitalization
---
src/views/download/l10n.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/download/l10n.json b/src/views/download/l10n.json
index 74256bd9a..91c6df250 100644
--- a/src/views/download/l10n.json
+++ b/src/views/download/l10n.json
@@ -47,5 +47,5 @@
"download.chromebookPossessive": "Chromebook's",
"download.androidPossessive": "Android tablet's",
"download.whyAskForLocation" : "Why is {operatingsystem} asking for my location?",
- "download.whyAskForLocationAnswer" : "Scratch uses bluetooth to connect to other devices, such as a Micro:Bit or Lego Boost. Bluetooth can be used to provide location data to the app, so Google requires every app that uses bluetooth ask users for permission to access their location. Scratch will not use bluetooth to track your location."
+ "download.whyAskForLocationAnswer" : "Scratch uses bluetooth to connect to other devices, such as a micro:bit or LEGO BOOST. Bluetooth can be used to provide location data to the app, so Google requires every app that uses bluetooth ask users for permission to access their location. Scratch will not use bluetooth to track your location."
}