Browse Source

change image Lock on Settings

Marino Faggiana 7 years ago
parent
commit
e2289e0ea9

BIN
iOSClient/Images.xcassets/settingsPasscodeNO.imageset/settingsPasscodeNO.png


BIN
iOSClient/Images.xcassets/settingsPasscodeNO.imageset/settingsPasscodeNO@2x.png


BIN
iOSClient/Images.xcassets/settingsPasscodeNO.imageset/settingsPasscodeNO@3x.png


BIN
iOSClient/Images.xcassets/settingsPasscodeYES.imageset/settingsPasscodeYES.png


BIN
iOSClient/Images.xcassets/settingsPasscodeYES.imageset/settingsPasscodeYES@2x.png


BIN
iOSClient/Images.xcassets/settingsPasscodeYES.imageset/settingsPasscodeYES@3x.png


+ 6 - 5
iOSClient/Settings/CCSettings.m

@@ -83,12 +83,12 @@
     [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
     [section addFormRow:row];
     
-    // Section : PASSWORD --------------------------------------------------------------
+    // Section : LOCK --------------------------------------------------------------
     
-    section = [XLFormSectionDescriptor formSectionWithTitle:NSLocalizedString(@"_passcode_", nil)];
+    section = [XLFormSectionDescriptor formSectionWithTitle:NSLocalizedString(@"_lock_", nil)];
     [form addFormSection:section];
     
-    // Passcode
+    // Lock active YES/NO
     row = [XLFormRowDescriptor formRowDescriptorWithTag:@"bloccopasscode" rowType:XLFormRowDescriptorTypeButton title:NSLocalizedString(@"_lock_not_active_", nil)];
     [row.cellConfig setObject:[UIImage imageNamed:@"settingsPasscodeNO"] forKey:@"imageView.image"];
     [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
@@ -103,7 +103,7 @@
     [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
     [section addFormRow:row];
     
-    // Passcode no screen
+    // Lock no screen
     row = [XLFormRowDescriptor formRowDescriptorWithTag:@"onlylockdir" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_lock_protection_no_screen_", nil)];
     [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
     [section addFormRow:row];
@@ -114,7 +114,8 @@
     [form addFormSection:section];
     
     // EndToEnd Encryption
-    row = [XLFormRowDescriptor formRowDescriptorWithTag:@"e2eEncryption" rowType:XLFormRowDescriptorTypeButton title:NSLocalizedString(@"_e2e_settings_", nil)];
+    NSString *title = [NSString stringWithFormat:@"%@ (%@)",NSLocalizedString(@"_e2e_settings_", nil), NSLocalizedString(@"_experimental_", nil)];
+    row = [XLFormRowDescriptor formRowDescriptorWithTag:@"e2eEncryption" rowType:XLFormRowDescriptorTypeButton title:title];
     [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
     [row.cellConfig setObject:[UIImage imageNamed:@"settingsE2EEncryption"] forKey:@"imageView.image"];
     row.action.viewControllerClass = [NCManageEndToEndEncryption class];

+ 2 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -68,6 +68,7 @@
 "_next_"                    = "Next";
 "_success_"                 = "Success";
 "_initialization_"          = "Initialization";
+"_experimental_"            = "Experimental";
 
 // App
 
@@ -92,6 +93,7 @@
 "_acknowledgements_"        = "Acknowledgements";
 "_settings_"                = "Settings";
 "_passcode_"                = "Password";
+"_lock_"                    = "Lock";
 "_lock_active_"             = "Lock: Active";
 "_lock_not_active_"         = "Lock: Not Active";
 "_lock_protection_no_screen_"        = "Do not ask at startup";