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 @@

- + diff --git a/src/addons/storagemanager/pages/courses-storage/courses-storage.html b/src/addons/storagemanager/pages/courses-storage/courses-storage.html index 0a58d8fee..ffffbc9f3 100644 --- a/src/addons/storagemanager/pages/courses-storage/courses-storage.html +++ b/src/addons/storagemanager/pages/courses-storage/courses-storage.html @@ -4,7 +4,7 @@ -

{{ 'addon.storagemanager.managestorage' | translate }}

+

{{ 'addon.storagemanager.managedownloads' | translate }}

@@ -12,12 +12,9 @@ - - {{ 'addon.storagemanager.info' | translate }} - -

{{ 'core.settings.spaceusage' | translate }}

+

{{ 'addon.storagemanager.totalspaceusage' | translate }}

{{ spaceUsage.spaceUsage | coreBytesToSize }}

{{ 'core.settings.spaceusagehelp' | translate }} @@ -25,29 +22,26 @@ + [attr.aria-label]="'core.settings.deletesitefilestitle' | translate" fill="outline"> + + +

{{ 'addon.storagemanager.coursesspaceusage' | translate }}

+ {{ totalSize | coreBytesToSize }} +
+ + + + +
- - - {{ 'core.courses.courses' | translate }} - - -

{{ 'addon.storagemanager.storageused' | translate }}

- {{ totalSize | coreBytesToSize }} -
- - - - -
-
-
- +
+

{{ 'addon.storagemanager.downloadedcourses' | translate }}

+
@@ -61,7 +55,7 @@ {{ course.totalSize | coreBytesToSize }} - + diff --git a/src/addons/storagemanager/services/handlers/course-menu.ts b/src/addons/storagemanager/services/handlers/course-menu.ts index a0e5c2653..7aa36c6de 100644 --- a/src/addons/storagemanager/services/handlers/course-menu.ts +++ b/src/addons/storagemanager/services/handlers/course-menu.ts @@ -48,8 +48,8 @@ export class AddonStorageManagerCourseMenuHandlerService implements CoreCourseOp course: CoreCourseAnyCourseDataWithOptions, ): CoreCourseOptionsMenuHandlerData { return { - icon: 'fas-archive', - title: 'addon.storagemanager.managecoursestorage', + icon: 'cloud-download', + title: 'addon.storagemanager.coursedownloads', page: 'storage/' + course.id, pageParams: { title: course.displayname ?? course.fullname, diff --git a/src/addons/storagemanager/services/handlers/settings.ts b/src/addons/storagemanager/services/handlers/settings.ts index 9bcaf413c..3e3fbfc1a 100644 --- a/src/addons/storagemanager/services/handlers/settings.ts +++ b/src/addons/storagemanager/services/handlers/settings.ts @@ -41,7 +41,7 @@ export class AddonStorageManagerSettingsHandlerService implements CoreSettingsHa getDisplayData(): CoreSettingsHandlerData { return { icon: 'fas-archive', - title: 'addon.storagemanager.managestorage', + title: 'addon.storagemanager.managedownloads', page: AddonStorageManagerSettingsHandlerService.PAGE_NAME, class: 'addon-storagemanager-settings-handler', }; diff --git a/src/core/features/courses/components/course-options-menu/core-courses-course-options-menu.html b/src/core/features/courses/components/course-options-menu/core-courses-course-options-menu.html index 59db9a4dc..39e1cc94f 100644 --- a/src/core/features/courses/components/course-options-menu/core-courses-course-options-menu.html +++ b/src/core/features/courses/components/course-options-menu/core-courses-course-options-menu.html @@ -9,7 +9,7 @@ *ngIf="prefetch.status == 'downloaded' || prefetch.status == 'outdated'"> -

{{ 'addon.storagemanager.deletecourse' | translate }}

+

{{ 'addon.storagemanager.deletedata' | translate }}