summaryrefslogtreecommitdiffhomepage
path: root/installer-downloader/src/resource.rs
blob: 04396546a18d0339ccbbf7bc9c8c69d10635bc08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
//! Shared text and other resources

/// Installer downloader version
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

/// Window title
pub const WINDOW_TITLE: &str = "Mullvad VPN loader";
/// Window width
pub const WINDOW_WIDTH: usize = 600;
/// Window height
pub const WINDOW_HEIGHT: usize = 334;

/// Text description in the top banner
pub const BANNER_DESC: &str =
    "The Mullvad VPN app installer will be downloaded and verified for authenticity.";

/// Beta preface text
pub const BETA_PREFACE_DESC: &str = "Want to try the new Beta version? ";
/// Beta link text
pub const BETA_LINK_TEXT: &str = "Click here!";

/// Stable link text
pub const STABLE_LINK_TEXT: &str = "Back to stable version";

/// Dimensions of cancel button (including padding)
pub const CANCEL_BUTTON_SIZE: (usize, usize) = (150, 40);

/// Download button text
pub const DOWNLOAD_BUTTON_TEXT: &str = "Download & install";

/// Dimensions of download button (including padding)
pub const DOWNLOAD_BUTTON_SIZE: (usize, usize) = (150, 40);

/// Failed to create temporary directory
pub const CREATE_TEMPDIR_FAILED: &str = "Failed to create temporary directory for artifacts. Please check if you have enough space on your hard drive.";

/// Displayed when createing a temporary directory fails (retry button)
pub const CREATE_TEMPDIR_FAILED_RETRY_BUTTON_TEXT: &str = "Try again";

/// Displayed when createing a temporary directory (cancel button)
pub const CREATE_TEMPDIR_FAILED_CANCEL_BUTTON_TEXT: &str = "Cancel";

/// Cancel button text
pub const CANCEL_BUTTON_TEXT: &str = "Cancel";

/// Displayed while fetching version info from the API
pub const FETCH_VERSION_DESC: &str = "Loading version details...";

/// The first part of "Version: 2025.1"
pub const LATEST_VERSION_PREFIX: &str = "Version";

/// Displayed while fetching version info from the API failed
pub const FETCH_VERSION_ERROR_DESC: &str = "Failed to load version details, please try again or make sure you have the latest installer loader.";

/// Displayed while fetching version info from the API failed
pub const FETCH_VERSION_ERROR_DESC_WITH_EXISTING_DOWNLOAD: &str = "Failed to fetch new version details, please try again or install the already downloaded version (%s).";

/// Displayed while fetching version info from the API failed (retry button)
pub const FETCH_VERSION_ERROR_RETRY_BUTTON_TEXT: &str = "Try again";

/// Displayed while fetching version info from the API failed (cancel button)
pub const FETCH_VERSION_ERROR_CANCEL_BUTTON_TEXT: &str = "Cancel";

/// Displayed while fetching version info from the API failed,
/// but there exists a previously downloaded installer (install button)
pub const FETCH_VERSION_ERROR_INSTALL_BUTTON_TEXT: &str = "Install";

/// The first part of "Downloading from \<some url\>... (x%)", displayed during download
pub const DOWNLOADING_DESC_PREFIX: &str = "Downloading from";

/// Displayed after completed download
pub const DOWNLOAD_COMPLETE_DESC: &str = "Download complete. Verifying...";

/// Displayed when download fails
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 = "Try again";

/// Displayed when download fails (cancel button)
pub const DOWNLOAD_FAILED_CANCEL_BUTTON_TEXT: &str = "Cancel";

/// Displayed verifying a cached app installer.
pub const VERIFYING_CACHED: &str = "Verifying...";

/// Displayed when download fails
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 = "Try again";

/// Displayed when download fails (cancel button)
pub const VERIFICATION_FAILED_CANCEL_BUTTON_TEXT: &str = "Cancel";

/// Displayed after verification
pub const VERIFICATION_SUCCEEDED_DESC: &str = "Verification successful. Starting install...";

/// Displayed when launch fails
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";

/// Displayed when launch fails (cancel button)
pub const LAUNCH_FAILED_CANCEL_BUTTON_TEXT: &str = "Cancel";