From 271179dec72a0d77ab3a4f2624e58f0eb6ed8b19 Mon Sep 17 00:00:00 2001
From: Noel De Martin <noel@moodle.com>
Date: Thu, 18 Jun 2020 17:36:33 +0200
Subject: [PATCH] MOBILE-3401: Add cannotfindmysite login FAQ

---
 src/assets/lang/en.json                       | 6 ++++--
 src/core/login/lang/en.json                   | 6 ++++--
 src/core/login/pages/site-help/site-help.html | 6 ++++++
 3 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/src/assets/lang/en.json b/src/assets/lang/en.json
index 8f89970e1..452621fe6 100644
--- a/src/assets/lang/en.json
+++ b/src/assets/lang/en.json
@@ -1751,13 +1751,15 @@
     "core.login.errorupdatesite": "An error occurred while updating the site's token.",
     "core.login.faqcannotconnectanswer": "Please, contact your site administrator.",
     "core.login.faqcannotconnectquestion": "I typed my site address correctly but I still can't connect.",
+    "core.login.faqcannotfindmysiteanswer": "Have you typed the name correctly? If you still can't find it, please enter the site address instead. Not all the Moodle sites are in our public sites directory.",
+    "core.login.faqcannotfindmysitequestion": "I can't find my site.",
     "core.login.faqsetupsiteanswer": "Visit {{$link}} to check out the different options you have to create your own Moodle site.",
     "core.login.faqsetupsitelinktitle": "Get started.",
     "core.login.faqsetupsitequestion": "I want to set up my own Moodle site.",
     "core.login.faqtestappanswer": "To test the app in a Moodle Demo Site, type \"teacher\" or \"student\" in the \"Your site address\" field and click the \"Connect!\" button.",
     "core.login.faqtestappquestion": "I just want to test the app, what can I do?",
-    "core.login.faqwhatisurlanswer": "<p>Every organisation or school has their own custom address for their Moodle site.</p><p>To find the address of the Moodle site you want to connect to, do the following:</p><ol><li>Open a web browser and go to your school's or organisation's Moodle site login page</li><li>At the top of the page, on the address bar, you will see the URL of your Moodle site. E.g. \"campus.example.edu\".<br>{{$image}}</li><li>Copy the address (do not copy the /login and what comes after), paste it into the Moodle App and click \"Connect!\"</li><li>Now you can log into your site, using your username and password</li>",
-    "core.login.faqwhatisurlquestion": "What is the URL of my Moodle site? How can I find my school’s site?",
+    "core.login.faqwhatisurlanswer": "<p>Every organisation or school has their own custom address for their Moodle site. To find the address you can do the following:</p><ol><li>Open a web browser and go to your school's or organisation's Moodle site login page</li><li>At the top of the page, on the address bar, you will see the URL of your Moodle site. E.g. \"campus.example.edu\".<br>{{$image}}</li><li>Copy the address (do not copy the /login and what comes after), paste it into the Moodle App and click \"Connect!\"</li><li>Now you can log into your site, using your username and password</li>",
+    "core.login.faqwhatisurlquestion": "What is the URL of my Moodle site? How can I find my school’s site URL?",
     "core.login.faqwhereisqrcode": "Where can I find the QR code?",
     "core.login.faqwhereisqrcodeanswer": "<p>If your organisation has enabled it, you will find a QR code on the web site at the bottom of your user profile page.</p>{{$image}}",
     "core.login.findyoursite": "Find your site",
diff --git a/src/core/login/lang/en.json b/src/core/login/lang/en.json
index 12e1f3a3d..9bc504061 100644
--- a/src/core/login/lang/en.json
+++ b/src/core/login/lang/en.json
@@ -28,13 +28,15 @@
     "errorupdatesite": "An error occurred while updating the site's token.",
     "faqcannotconnectanswer": "Please, contact your site administrator.",
     "faqcannotconnectquestion": "I typed my site address correctly but I still can't connect.",
+    "faqcannotfindmysiteanswer": "Have you typed the name correctly? If you still can't find it, please enter the site address instead. Not all the Moodle sites are in our public sites directory.",
+    "faqcannotfindmysitequestion": "I can't find my site.",
     "faqsetupsiteanswer": "Visit {{$link}} to check out the different options you have to create your own Moodle site.",
     "faqsetupsitelinktitle": "Get started.",
     "faqsetupsitequestion": "I want to set up my own Moodle site.",
     "faqtestappanswer": "To test the app in a Moodle Demo Site, type \"teacher\" or \"student\" in the \"Your site address\" field and click the \"Connect!\" button.",
     "faqtestappquestion": "I just want to test the app, what can I do?",
-    "faqwhatisurlanswer": "<p>Every organisation or school has their own custom address for their Moodle site.</p><p>To find the address of the Moodle site you want to connect to, do the following:</p><ol><li>Open a web browser and go to your school's or organisation's Moodle site login page</li><li>At the top of the page, on the address bar, you will see the URL of your Moodle site. E.g. \"campus.example.edu\".<br>{{$image}}</li><li>Copy the address (do not copy the /login and what comes after), paste it into the Moodle App and click \"Connect!\"</li><li>Now you can log into your site, using your username and password</li>",
-    "faqwhatisurlquestion": "What is the URL of my Moodle site? How can I find my school’s site?",
+    "faqwhatisurlanswer": "<p>Every organisation or school has their own custom address for their Moodle site. To find the address you can do the following:</p><ol><li>Open a web browser and go to your school's or organisation's Moodle site login page</li><li>At the top of the page, on the address bar, you will see the URL of your Moodle site. E.g. \"campus.example.edu\".<br>{{$image}}</li><li>Copy the address (do not copy the /login and what comes after), paste it into the Moodle App and click \"Connect!\"</li><li>Now you can log into your site, using your username and password</li>",
+    "faqwhatisurlquestion": "What is the URL of my Moodle site? How can I find my school’s site URL?",
     "faqwhereisqrcode": "Where can I find the QR code?",
     "faqwhereisqrcodeanswer": "<p>If your organisation has enabled it, you will find a QR code on the web site at the bottom of your user profile page.</p>{{$image}}",
     "findyoursite": "Find your site",
diff --git a/src/core/login/pages/site-help/site-help.html b/src/core/login/pages/site-help/site-help.html
index 21ed2c8b7..209eede23 100644
--- a/src/core/login/pages/site-help/site-help.html
+++ b/src/core/login/pages/site-help/site-help.html
@@ -11,6 +11,12 @@
 </ion-header>
 <ion-content padding>
     <ion-list>
+        <ion-item text-wrap>
+            <h2><b>{{ 'core.login.faqcannotfindmysitequestion' | translate }}</b></h2>
+        </ion-item>
+        <ion-item text-wrap>
+            <p>{{ 'core.login.faqcannotfindmysiteanswer' | translate }}</p>
+        </ion-item>
         <ion-item text-wrap>
             <h2><b>{{ 'core.login.faqwhatisurlquestion' | translate }}</b></h2>
         </ion-item>