MOBILE-3213 files: Improve download message with 0 bytes.
parent
826c9a0f30
commit
89e90624b3
|
@ -1393,6 +1393,7 @@
|
|||
"core.course.confirmdeletemodulefiles": "local_moodlemobileapp",
|
||||
"core.course.confirmdownload": "local_moodlemobileapp",
|
||||
"core.course.confirmdownloadunknownsize": "local_moodlemobileapp",
|
||||
"core.course.confirmdownloadzerosize": "local_moodlemobileapp",
|
||||
"core.course.confirmlimiteddownload": "local_moodlemobileapp",
|
||||
"core.course.confirmpartialdownloadsize": "local_moodlemobileapp",
|
||||
"core.course.contents": "local_moodlemobileapp",
|
||||
|
|
|
@ -1391,6 +1391,7 @@
|
|||
"core.course.confirmdeletemodulefiles": "Are you sure you want to delete these files?",
|
||||
"core.course.confirmdownload": "You are about to download {{size}}.{{availableSpace}} Are you sure you want to continue?",
|
||||
"core.course.confirmdownloadunknownsize": "It was not possible to calculate the size of the download.{{availableSpace}} Are you sure you want to continue?",
|
||||
"core.course.confirmdownloadzerosize": "You are about to start downloading.{{availableSpace}} Are you sure you want to continue?",
|
||||
"core.course.confirmlimiteddownload": "You are not currently connected to Wi-Fi. ",
|
||||
"core.course.confirmpartialdownloadsize": "You are about to download <strong>at least</strong> {{size}}.{{availableSpace}} Are you sure you want to continue?",
|
||||
"core.course.contents": "Contents",
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"confirmdeletemodulefiles": "Are you sure you want to delete these files?",
|
||||
"confirmdownload": "You are about to download {{size}}.{{availableSpace}} Are you sure you want to continue?",
|
||||
"confirmdownloadunknownsize": "It was not possible to calculate the size of the download.{{availableSpace}} Are you sure you want to continue?",
|
||||
"confirmdownloadzerosize": "You are about to start downloading.{{availableSpace}} Are you sure you want to continue?",
|
||||
"confirmpartialdownloadsize": "You are about to download <strong>at least</strong> {{size}}.{{availableSpace}} Are you sure you want to continue?",
|
||||
"confirmlimiteddownload": "You are not currently connected to Wi-Fi. ",
|
||||
"contents": "Contents",
|
||||
|
|
|
@ -200,7 +200,7 @@ export class CoreDomUtilsProvider {
|
|||
{ size: readableSize, availableSpace: availableSpace }));
|
||||
} else if (alwaysConfirm || size.size >= wifiThreshold ||
|
||||
(this.appProvider.isNetworkAccessLimited() && size.size >= limitedThreshold)) {
|
||||
message = message || 'core.course.confirmdownload';
|
||||
message = message || (size.size === 0 ? 'core.course.confirmdownloadzerosize' : 'core.course.confirmdownload');
|
||||
|
||||
return this.showConfirm(wifiPrefix + this.translate.instant(message,
|
||||
{ size: readableSize, availableSpace: availableSpace }));
|
||||
|
|
Loading…
Reference in New Issue