element-ios
element-ios copied to clipboard
Localization of Set up cross-signing UI
String messages in module Riot/Modules/Settings/Security/SecurityViewController.m are not localized.
// Double confirmation
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Are you sure?" // TODO
message:@"Anyone you have verified with will see security alerts. You almost certainly don't want to do this, unless you've lost every device you can cross-sign from." // TODO
preferredStyle:UIAlertControllerStyleAlert];
[alertController addAction:[UIAlertAction actionWithTitle:@"Reset"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action)
NSMutableString *mutableString = [@"Your account has a Secure Backup.\n" mutableCopy];
…
if (self.mainSession.crypto.backup.keyBackupVersion)
{
[mutableString appendString:@"\n\n⚠️ The key of your current Message backup is not in the Secure Backup. Restore it first (see below)."];
}
else
{
[mutableString appendString:@"\n\n⚠️ Consider create a Message Backup (see below)."];
}
}
if (!hasWarning)
{
[mutableString appendFormat:@"\n\nIf you are facing an issue, synchronise your Secure Backup."];
}
if (self.canSetupSecureBackup)
{
secureBackupInformation = [NSString stringWithFormat:@"No Secure Backup. Create one.\n-----\nKeys to back up: %@", recoveryService.secretsStoredLocally];
}
else
{
secureBackupInformation = [NSString stringWithFormat:@"No Secure Backup. Set up cross-signing first (see above)"];
}
if ([recoveryService hasSecretWithSecretId:secretId])
{
if ([recoveryService hasSecretLocally:secretId])
{
information = [NSString stringWithFormat:@"\n ✅ %@ is in the backup", secretName];
}
else
{
information = [NSString stringWithFormat:@"\n ⚠️ %@ is in the backup but not locally. Tap Synchronise", secretName];
*hasWarning |= YES;
}
}
else
{
if ([recoveryService hasSecretLocally:secretId])
{
information = [NSString stringWithFormat:@"\n ⚠️ %@ is not in the backup. Tap Synchronise", secretName];
*hasWarning |= YES;
}
}
Your phone model
iPhone
Operating system version
16.4
Application version
Element 1.10.11
Will you send logs?
No
Linked to this issue : https://github.com/vector-im/element-ios/issues/7575
Another one :
case MXCrossSigningStateCanCrossSign:
crossSigningInformation = [VectorL10n securitySettingsCrosssigningInfoOk];
if (![self.mainSession.crypto.recoveryService hasSecretLocally:MXSecretId.crossSigningMaster])
{
crossSigningInformation = [crossSigningInformation stringByAppendingString:@"\n\n⚠️ The MSK is missing. Verify this device again or use the Secure Backup below to synchronise your keys accross your devices"];
}
break;