Skip to content

Commit

Permalink
WIP: Generate recovery key page
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Dec 7, 2021
1 parent ebd730a commit 7b81529
Show file tree
Hide file tree
Showing 82 changed files with 2,036 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/ubuntu_desktop_installer/lib/installer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ class _UbuntuDesktopInstallerWizardState
),
Routes.chooseSecurityKey: WizardRoute(
builder: ChooseSecurityKeyPage.create,
),
Routes.generateRecoveryKey: WizardRoute(
builder: GenerateRecoveryKeyPage.create,
onNext: (_) => Routes.writeChangesToDisk,
),
Routes.allocateDiskSpace: const WizardRoute(
Expand Down
8 changes: 8 additions & 0 deletions packages/ubuntu_desktop_installer/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@
"color": {}
}
},
"generateRecoveryKeyTitle": "Choose a security key",
"generateRecoveryKeyHeader": "A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.",
"generateRecoveryKeyLocation": "Location:",
"generateRecoveryKeyLabel": "Show recovery key",
"generateRecoveryKeyMoreSecurity": "For more security:",
"generateRecoveryKeyOverwriteEmptyDiskSpace": "Overwrite empty disk space",
"generateRecoveryKeyLongerInstallation": "The installation may take much longer.",
"generateRecoveryKeyInstallNow": "Install now",
"installationTypeTitle": "Installation type",
"installationTypeOSDetected": "This computer currently has {os} on it. What would you like to do?",
"@installationTypeOSDetected": {
Expand Down
48 changes: 48 additions & 0 deletions packages/ubuntu_desktop_installer/lib/l10n/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,54 @@ abstract class AppLocalizations {
/// **'<font color=\"{color}\">Warning</font>: If you lose this security key, all data will be lost. If you need to, write down your key and keep it in a safe place elsewhere.'**
String chooseSecurityKeyWarning(Object color);

/// No description provided for @generateRecoveryKeyTitle.
///
/// In en, this message translates to:
/// **'Choose a security key'**
String get generateRecoveryKeyTitle;

/// No description provided for @generateRecoveryKeyHeader.
///
/// In en, this message translates to:
/// **'A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.'**
String get generateRecoveryKeyHeader;

/// No description provided for @generateRecoveryKeyLocation.
///
/// In en, this message translates to:
/// **'Location:'**
String get generateRecoveryKeyLocation;

/// No description provided for @generateRecoveryKeyLabel.
///
/// In en, this message translates to:
/// **'Show recovery key'**
String get generateRecoveryKeyLabel;

/// No description provided for @generateRecoveryKeyMoreSecurity.
///
/// In en, this message translates to:
/// **'For more security:'**
String get generateRecoveryKeyMoreSecurity;

/// No description provided for @generateRecoveryKeyOverwriteEmptyDiskSpace.
///
/// In en, this message translates to:
/// **'Overwrite empty disk space'**
String get generateRecoveryKeyOverwriteEmptyDiskSpace;

/// No description provided for @generateRecoveryKeyLongerInstallation.
///
/// In en, this message translates to:
/// **'The installation may take much longer.'**
String get generateRecoveryKeyLongerInstallation;

/// No description provided for @generateRecoveryKeyInstallNow.
///
/// In en, this message translates to:
/// **'Install now'**
String get generateRecoveryKeyInstallNow;

/// No description provided for @installationTypeTitle.
///
/// In en, this message translates to:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ class AppLocalizationsAm extends AppLocalizations {
return '<font color=\"$color\">Warning</font>: If you lose this security key, all data will be lost. If you need to, write down your key and keep it in a safe place elsewhere.';
}

@override
String get generateRecoveryKeyTitle => 'Choose a security key';

@override
String get generateRecoveryKeyHeader => 'A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.';

@override
String get generateRecoveryKeyLocation => 'Location:';

@override
String get generateRecoveryKeyLabel => 'Show recovery key';

@override
String get generateRecoveryKeyMoreSecurity => 'For more security:';

@override
String get generateRecoveryKeyOverwriteEmptyDiskSpace => 'Overwrite empty disk space';

@override
String get generateRecoveryKeyLongerInstallation => 'The installation may take much longer.';

@override
String get generateRecoveryKeyInstallNow => 'Install now';

@override
String get installationTypeTitle => 'Installation type';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ class AppLocalizationsAr extends AppLocalizations {
return '<font color=\"$color\">Warning</font>: If you lose this security key, all data will be lost. If you need to, write down your key and keep it in a safe place elsewhere.';
}

@override
String get generateRecoveryKeyTitle => 'Choose a security key';

@override
String get generateRecoveryKeyHeader => 'A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.';

@override
String get generateRecoveryKeyLocation => 'Location:';

@override
String get generateRecoveryKeyLabel => 'Show recovery key';

@override
String get generateRecoveryKeyMoreSecurity => 'For more security:';

@override
String get generateRecoveryKeyOverwriteEmptyDiskSpace => 'Overwrite empty disk space';

@override
String get generateRecoveryKeyLongerInstallation => 'The installation may take much longer.';

@override
String get generateRecoveryKeyInstallNow => 'Install now';

@override
String get installationTypeTitle => 'Installation type';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ class AppLocalizationsBe extends AppLocalizations {
return '<font color=\"$color\">Warning</font>: If you lose this security key, all data will be lost. If you need to, write down your key and keep it in a safe place elsewhere.';
}

@override
String get generateRecoveryKeyTitle => 'Choose a security key';

@override
String get generateRecoveryKeyHeader => 'A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.';

@override
String get generateRecoveryKeyLocation => 'Location:';

@override
String get generateRecoveryKeyLabel => 'Show recovery key';

@override
String get generateRecoveryKeyMoreSecurity => 'For more security:';

@override
String get generateRecoveryKeyOverwriteEmptyDiskSpace => 'Overwrite empty disk space';

@override
String get generateRecoveryKeyLongerInstallation => 'The installation may take much longer.';

@override
String get generateRecoveryKeyInstallNow => 'Install now';

@override
String get installationTypeTitle => 'Installation type';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ class AppLocalizationsBg extends AppLocalizations {
return '<font color=\"$color\">Warning</font>: If you lose this security key, all data will be lost. If you need to, write down your key and keep it in a safe place elsewhere.';
}

@override
String get generateRecoveryKeyTitle => 'Choose a security key';

@override
String get generateRecoveryKeyHeader => 'A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.';

@override
String get generateRecoveryKeyLocation => 'Location:';

@override
String get generateRecoveryKeyLabel => 'Show recovery key';

@override
String get generateRecoveryKeyMoreSecurity => 'For more security:';

@override
String get generateRecoveryKeyOverwriteEmptyDiskSpace => 'Overwrite empty disk space';

@override
String get generateRecoveryKeyLongerInstallation => 'The installation may take much longer.';

@override
String get generateRecoveryKeyInstallNow => 'Install now';

@override
String get installationTypeTitle => 'Installation type';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ class AppLocalizationsBn extends AppLocalizations {
return '<font color=\"$color\">Warning</font>: If you lose this security key, all data will be lost. If you need to, write down your key and keep it in a safe place elsewhere.';
}

@override
String get generateRecoveryKeyTitle => 'Choose a security key';

@override
String get generateRecoveryKeyHeader => 'A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.';

@override
String get generateRecoveryKeyLocation => 'Location:';

@override
String get generateRecoveryKeyLabel => 'Show recovery key';

@override
String get generateRecoveryKeyMoreSecurity => 'For more security:';

@override
String get generateRecoveryKeyOverwriteEmptyDiskSpace => 'Overwrite empty disk space';

@override
String get generateRecoveryKeyLongerInstallation => 'The installation may take much longer.';

@override
String get generateRecoveryKeyInstallNow => 'Install now';

@override
String get installationTypeTitle => 'Installation type';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ class AppLocalizationsBo extends AppLocalizations {
return '<font color=\"$color\">Warning</font>: If you lose this security key, all data will be lost. If you need to, write down your key and keep it in a safe place elsewhere.';
}

@override
String get generateRecoveryKeyTitle => 'Choose a security key';

@override
String get generateRecoveryKeyHeader => 'A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.';

@override
String get generateRecoveryKeyLocation => 'Location:';

@override
String get generateRecoveryKeyLabel => 'Show recovery key';

@override
String get generateRecoveryKeyMoreSecurity => 'For more security:';

@override
String get generateRecoveryKeyOverwriteEmptyDiskSpace => 'Overwrite empty disk space';

@override
String get generateRecoveryKeyLongerInstallation => 'The installation may take much longer.';

@override
String get generateRecoveryKeyInstallNow => 'Install now';

@override
String get installationTypeTitle => 'Installation type';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ class AppLocalizationsBs extends AppLocalizations {
return '<font color=\"$color\">Warning</font>: If you lose this security key, all data will be lost. If you need to, write down your key and keep it in a safe place elsewhere.';
}

@override
String get generateRecoveryKeyTitle => 'Choose a security key';

@override
String get generateRecoveryKeyHeader => 'A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.';

@override
String get generateRecoveryKeyLocation => 'Location:';

@override
String get generateRecoveryKeyLabel => 'Show recovery key';

@override
String get generateRecoveryKeyMoreSecurity => 'For more security:';

@override
String get generateRecoveryKeyOverwriteEmptyDiskSpace => 'Overwrite empty disk space';

@override
String get generateRecoveryKeyLongerInstallation => 'The installation may take much longer.';

@override
String get generateRecoveryKeyInstallNow => 'Install now';

@override
String get installationTypeTitle => 'Installation type';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ class AppLocalizationsCa extends AppLocalizations {
return '<font color=\"$color\">Warning</font>: If you lose this security key, all data will be lost. If you need to, write down your key and keep it in a safe place elsewhere.';
}

@override
String get generateRecoveryKeyTitle => 'Choose a security key';

@override
String get generateRecoveryKeyHeader => 'A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.';

@override
String get generateRecoveryKeyLocation => 'Location:';

@override
String get generateRecoveryKeyLabel => 'Show recovery key';

@override
String get generateRecoveryKeyMoreSecurity => 'For more security:';

@override
String get generateRecoveryKeyOverwriteEmptyDiskSpace => 'Overwrite empty disk space';

@override
String get generateRecoveryKeyLongerInstallation => 'The installation may take much longer.';

@override
String get generateRecoveryKeyInstallNow => 'Install now';

@override
String get installationTypeTitle => 'Tipus d\'instal·lació';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ class AppLocalizationsCs extends AppLocalizations {
return '<font color=\"$color\">VAROVÁNÍ</font>: Pokud tento šifrovací klíč zapomenete, ke svým datům už se nedostanete. Pokud vám to pomůže, šifrovací klíč si zapište na papír a ten si bezpečně uložte někam mimo počítač.';
}

@override
String get generateRecoveryKeyTitle => 'Choose a security key';

@override
String get generateRecoveryKeyHeader => 'A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.';

@override
String get generateRecoveryKeyLocation => 'Location:';

@override
String get generateRecoveryKeyLabel => 'Show recovery key';

@override
String get generateRecoveryKeyMoreSecurity => 'For more security:';

@override
String get generateRecoveryKeyOverwriteEmptyDiskSpace => 'Overwrite empty disk space';

@override
String get generateRecoveryKeyLongerInstallation => 'The installation may take much longer.';

@override
String get generateRecoveryKeyInstallNow => 'Install now';

@override
String get installationTypeTitle => 'Typ instalace';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ class AppLocalizationsCy extends AppLocalizations {
return '<font color=\"$color\">Warning</font>: If you lose this security key, all data will be lost. If you need to, write down your key and keep it in a safe place elsewhere.';
}

@override
String get generateRecoveryKeyTitle => 'Choose a security key';

@override
String get generateRecoveryKeyHeader => 'A recovery key is generated and will be temporarily saved on the live system. You can select an alternative location. Save this file and keep it in a safe place elsewhere before rebooting.';

@override
String get generateRecoveryKeyLocation => 'Location:';

@override
String get generateRecoveryKeyLabel => 'Show recovery key';

@override
String get generateRecoveryKeyMoreSecurity => 'For more security:';

@override
String get generateRecoveryKeyOverwriteEmptyDiskSpace => 'Overwrite empty disk space';

@override
String get generateRecoveryKeyLongerInstallation => 'The installation may take much longer.';

@override
String get generateRecoveryKeyInstallNow => 'Install now';

@override
String get installationTypeTitle => 'Installation type';

Expand Down

0 comments on commit 7b81529

Please sign in to comment.