From 514b4150dec92194ec3d9e7e4df7dee03a443c93 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?=
Date: Wed, 2 Feb 2022 15:20:21 +0100
Subject: [PATCH] MOBILE-3954 storage: Apply UX changes to text
---
scripts/langindex.json | 12 ++++--
src/addons/storagemanager/lang.json | 18 ++++----
.../pages/course-storage/course-storage.html | 11 +++--
.../courses-storage/courses-storage.html | 42 ++++++++-----------
.../services/handlers/course-menu.ts | 4 +-
.../services/handlers/settings.ts | 2 +-
.../core-courses-course-options-menu.html | 2 +-
7 files changed, 46 insertions(+), 45 deletions(-)
diff --git a/scripts/langindex.json b/scripts/langindex.json
index 40c4b9144..af83bf1ca 100644
--- a/scripts/langindex.json
+++ b/scripts/langindex.json
@@ -1104,13 +1104,17 @@
"addon.report_insights.notapplicable": "analytics",
"addon.report_insights.notuseful": "analytics",
"addon.report_insights.useful": "analytics",
+ "addon.storagemanager.coursedownloads": "local_moodlemobileapp",
+ "addon.storagemanager.courseinfo": "local_moodlemobileapp",
+ "addon.storagemanager.coursesspaceusage": "local_moodlemobileapp",
"addon.storagemanager.deletecourse": "local_moodlemobileapp",
"addon.storagemanager.deletecourses": "local_moodlemobileapp",
+ "addon.storagemanager.deletedata": "local_moodlemobileapp",
"addon.storagemanager.deletedatafrom": "local_moodlemobileapp",
- "addon.storagemanager.info": "local_moodlemobileapp",
- "addon.storagemanager.managecoursestorage": "local_moodlemobileapp",
- "addon.storagemanager.managestorage": "local_moodlemobileapp",
- "addon.storagemanager.storageused": "local_moodlemobileapp",
+ "addon.storagemanager.downloadedcourses": "local_moodlemobileapp",
+ "addon.storagemanager.managedownloads": "local_moodlemobileapp",
+ "addon.storagemanager.totaldownloads": "local_moodlemobileapp",
+ "addon.storagemanager.totalspaceusage": "local_moodlemobileapp",
"assets.countries.AD": "countries",
"assets.countries.AE": "countries",
"assets.countries.AF": "countries",
diff --git a/src/addons/storagemanager/lang.json b/src/addons/storagemanager/lang.json
index 389a65e62..1641c3b96 100644
--- a/src/addons/storagemanager/lang.json
+++ b/src/addons/storagemanager/lang.json
@@ -1,9 +1,13 @@
{
- "deletecourse": "Offload all course data",
- "deletecourses": "Offload all courses data",
- "deletedatafrom": "Offload data from {{name}}",
- "info": "Files stored on your device make the app work faster and enable the app to be used offline. You can safely offload files if you need to free up storage space.",
- "managestorage": "Manage storage",
- "managecoursestorage": "Manage course storage",
- "storageused": "File storage used:"
+ "deletedata": "Delete offline data",
+ "deletecourse": "Delete offline data from this course",
+ "deletecourses": "Delete offline data from all courses",
+ "deletedatafrom": "Delete offline data from {{name}}",
+ "courseinfo": "Download course content to work offline. Your activity will sync automatically when your device is back online.",
+ "managedownloads": "Manage downloads",
+ "coursedownloads": "Course downloads",
+ "totaldownloads": "Total downloads",
+ "totalspaceusage": "Total space usage",
+ "coursesspaceusage": "Courses space usage",
+ "downloadedcourses": "Downloaded courses"
}
diff --git a/src/addons/storagemanager/pages/course-storage/course-storage.html b/src/addons/storagemanager/pages/course-storage/course-storage.html
index 3f05975e6..4db31b1e0 100644
--- a/src/addons/storagemanager/pages/course-storage/course-storage.html
+++ b/src/addons/storagemanager/pages/course-storage/course-storage.html
@@ -4,7 +4,7 @@
- {{ 'addon.storagemanager.managecoursestorage' | translate }}
+ {{ 'addon.storagemanager.coursedownloads' | translate }}
@@ -12,15 +12,14 @@
- {{ 'addon.storagemanager.info' | translate }}
+ {{ 'addon.storagemanager.courseinfo' | translate }}
{{ title }}
-
- {{ 'addon.storagemanager.storageused' | translate }}
+ {{ 'addon.storagemanager.totaldownloads' | translate }}
{{ totalSize | coreBytesToSize }}
-
+
@@ -48,7 +47,7 @@