diff options
| -rw-r--r-- | installer-downloader/src/controller.rs | 8 | ||||
| -rw-r--r-- | installer-downloader/src/resource.rs | 12 |
2 files changed, 11 insertions, 9 deletions
diff --git a/installer-downloader/src/controller.rs b/installer-downloader/src/controller.rs index bf492c0900..b392ad0942 100644 --- a/installer-downloader/src/controller.rs +++ b/installer-downloader/src/controller.rs @@ -286,9 +286,11 @@ async fn handle_action_messages<D, A, DirProvider>( self_.hide_stable_text(); self_.show_error_message(crate::delegate::ErrorMessage { - status_text: "Failed to create download directory".to_owned(), - cancel_button_text: "Cancel".to_owned(), - retry_button_text: "Try again".to_owned(), + status_text: resource::DOWNLOAD_FAILED_DESC.to_owned(), + cancel_button_text: resource::DOWNLOAD_FAILED_CANCEL_BUTTON_TEXT + .to_owned(), + retry_button_text: resource::DOWNLOAD_FAILED_RETRY_BUTTON_TEXT + .to_owned(), }); }); continue; diff --git a/installer-downloader/src/resource.rs b/installer-downloader/src/resource.rs index a8aa106c82..07bfe4161e 100644 --- a/installer-downloader/src/resource.rs +++ b/installer-downloader/src/resource.rs @@ -38,7 +38,7 @@ pub const FETCH_VERSION_DESC: &str = "Loading version details..."; pub const LATEST_VERSION_PREFIX: &str = "Version"; /// Displayed while fetching version info from the API failed -pub const FETCH_VERSION_ERROR_DESC: &str = "Couldn't load version details, please try again or make sure you have the latest installer downloader."; +pub const FETCH_VERSION_ERROR_DESC: &str = "Failed to load version details, please try again or make sure you have the latest installer downloader."; /// Displayed while fetching version info from the API failed (retry button) pub const FETCH_VERSION_ERROR_RETRY_BUTTON_TEXT: &str = "Try again"; @@ -53,19 +53,19 @@ pub const DOWNLOADING_DESC_PREFIX: &str = "Downloading from"; pub const DOWNLOAD_COMPLETE_DESC: &str = "Download complete. Verifying..."; /// Displayed when download fails -pub const DOWNLOAD_FAILED_DESC: &str = "Download failed"; +pub const DOWNLOAD_FAILED_DESC: &str = "Download failed, please check your internet connection or if you have enough space on your hard drive and try downloading again."; /// Displayed when download fails (retry button) -pub const DOWNLOAD_FAILED_RETRY_BUTTON_TEXT: &str = "Redownload"; +pub const DOWNLOAD_FAILED_RETRY_BUTTON_TEXT: &str = "Try again"; /// Displayed when download fails (cancel button) pub const DOWNLOAD_FAILED_CANCEL_BUTTON_TEXT: &str = "Cancel"; /// Displayed when download fails -pub const VERIFICATION_FAILED_DESC: &str = "Couldn’t verify download, please try downloading again or contact our support by sending an email at support@mullvadvpn.net"; +pub const VERIFICATION_FAILED_DESC: &str = "Failed to verify download, please try downloading again or contact our support by sending an email to support@mullvadvpn.net with a description of what happened."; /// Displayed when download fails (retry button) -pub const VERIFICATION_FAILED_RETRY_BUTTON_TEXT: &str = "Redownload"; +pub const VERIFICATION_FAILED_RETRY_BUTTON_TEXT: &str = "Try again"; /// Displayed when download fails (cancel button) pub const VERIFICATION_FAILED_CANCEL_BUTTON_TEXT: &str = "Cancel"; @@ -74,7 +74,7 @@ pub const VERIFICATION_FAILED_CANCEL_BUTTON_TEXT: &str = "Cancel"; pub const VERIFICATION_SUCCEEDED_DESC: &str = "Verification successful. Starting install..."; /// Displayed when launch fails -pub const LAUNCH_FAILED_DESC: &str = "Couldn’t launch installer, please try again or contact our support by sending an email at support@mullvadvpn.net"; +pub const LAUNCH_FAILED_DESC: &str = "Failed to start installation, please try downloading again or contact our support by sending an email to support@mullvadvpn.net with a description of what happened."; /// Displayed when launch fails (retry button) pub const LAUNCH_FAILED_RETRY_BUTTON_TEXT: &str = "Try again"; |
