Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use less words

vishnukvmd54d04d1c251a
diff --git a/mobile/apps/locker/lib/l10n/app_en.arb b/mobile/apps/locker/lib/l10n/app_en.arb
index 9bf479fef9..af0606ab25 100644
--- a/mobile/apps/locker/lib/l10n/app_en.arb
+++ b/mobile/apps/locker/lib/l10n/app_en.arb
@@ -354,14 +354,14 @@
"saveInformation": "Save information",
"saveToLocker": "Save to Locker",
"saveDocumentTitle": "Document",
- "saveDocumentDescription": "Upload documents securely to keep everything in one place.",
+ "saveDocumentDescription": "Upload documents to keep everything in one place.",
"informationDescription": "Save important information that can be shared and passed down to loved ones.",
- "personalNote": "Personal note",
- "personalNoteDescription": "Store essential notes or reflections securely.",
- "physicalRecords": "Physical Record",
- "physicalRecordsDescription": "Document real-world locations of key items.",
- "accountCredentials": "Account credentials",
- "accountCredentialsDescription": "Safely save login details for vital accounts.",
+ "personalNote": "Note",
+ "personalNoteDescription": "Write essential notes or reflections.",
+ "physicalRecords": "Location",
+ "physicalRecordsDescription": "Document real-world locations of important items.",
+ "accountCredentials": "Secret",
+ "accountCredentialsDescription": "Preserve account credentials.",
"emergencyContact": "Emergency contact",
"emergencyContactDescription": "Keep contact info for key people in crises.",
"noteName": "Title",
diff --git a/mobile/apps/locker/lib/l10n/app_localizations.dart b/mobile/apps/locker/lib/l10n/app_localizations.dart
index a0ef3cf787..c0e585e6b8 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations.dart
@@ -1045,7 +1045,7 @@ abstract class AppLocalizations {
/// No description provided for @saveDocumentDescription.
///
/// In en, this message translates to:
- /// **'Upload documents securely to keep everything in one place.'**
+ /// **'Upload documents to keep everything in one place.'**
String get saveDocumentDescription;
/// No description provided for @informationDescription.
@@ -1057,37 +1057,37 @@ abstract class AppLocalizations {
/// No description provided for @personalNote.
///
/// In en, this message translates to:
- /// **'Personal note'**
+ /// **'Note'**
String get personalNote;
/// No description provided for @personalNoteDescription.
///
/// In en, this message translates to:
- /// **'Store essential notes or reflections securely.'**
+ /// **'Write essential notes or reflections.'**
String get personalNoteDescription;
/// No description provided for @physicalRecords.
///
/// In en, this message translates to:
- /// **'Physical Record'**
+ /// **'Location'**
String get physicalRecords;
/// No description provided for @physicalRecordsDescription.
///
/// In en, this message translates to:
- /// **'Document real-world locations of key items.'**
+ /// **'Document real-world locations of important items.'**
String get physicalRecordsDescription;
/// No description provided for @accountCredentials.
///
/// In en, this message translates to:
- /// **'Account credentials'**
+ /// **'Secret'**
String get accountCredentials;
/// No description provided for @accountCredentialsDescription.
///
/// In en, this message translates to:
- /// **'Safely save login details for vital accounts.'**
+ /// **'Preserve account credentials.'**
String get accountCredentialsDescription;
/// No description provided for @emergencyContact.
diff --git a/mobile/apps/locker/lib/l10n/app_localizations_en.dart b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
index cee8fc1be5..26699bec7a 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations_en.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
@@ -549,32 +549,30 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get saveDocumentDescription =>
- 'Upload documents securely to keep everything in one place.';
+ 'Upload documents to keep everything in one place.';
@override
String get informationDescription =>
'Save important information that can be shared and passed down to loved ones.';
@override
- String get personalNote => 'Personal note';
+ String get personalNote => 'Note';
@override
- String get personalNoteDescription =>
- 'Store essential notes or reflections securely.';
+ String get personalNoteDescription => 'Write essential notes or reflections.';
@override
- String get physicalRecords => 'Physical Record';
+ String get physicalRecords => 'Location';
@override
String get physicalRecordsDescription =>
- 'Document real-world locations of key items.';
+ 'Document real-world locations of important items.';
@override
- String get accountCredentials => 'Account credentials';
+ String get accountCredentials => 'Secret';
@override
- String get accountCredentialsDescription =>
- 'Safely save login details for vital accounts.';
+ String get accountCredentialsDescription => 'Preserve account credentials.';
@override
String get emergencyContact => 'Emergency contact';
diff --git a/mobile/apps/locker/lib/services/info_file_service.dart b/mobile/apps/locker/lib/services/info_file_service.dart
index 4597a84752..da4b406230 100644
--- a/mobile/apps/locker/lib/services/info_file_service.dart
+++ b/mobile/apps/locker/lib/services/info_file_service.dart
@@ -153,13 +153,13 @@ class InfoFileService {
switch (infoItem.type) {
case InfoType.note:
final noteData = infoItem.data as PersonalNoteData;
- return noteData.title.isNotEmpty ? noteData.title : 'Personal Note';
+ return noteData.title.isNotEmpty ? noteData.title : 'Note';
case InfoType.physicalRecord:
final recordData = infoItem.data as PhysicalRecordData;
- return recordData.name.isNotEmpty ? recordData.name : 'Physical Record';
+ return recordData.name.isNotEmpty ? recordData.name : 'Location';
case InfoType.accountCredential:
final credData = infoItem.data as AccountCredentialData;
- return credData.name.isNotEmpty ? credData.name : 'Account Credential';
+ return credData.name.isNotEmpty ? credData.name : 'Secret';
case InfoType.emergencyContact:
final contactData = infoItem.data as EmergencyContactData;
return contactData.name.isNotEmpty
diff --git a/mobile/apps/locker/lib/ui/pages/save_page.dart b/mobile/apps/locker/lib/ui/pages/save_page.dart
index 3912f12a89..51db9b474e 100644
--- a/mobile/apps/locker/lib/ui/pages/save_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/save_page.dart
@@ -8,7 +8,6 @@ import 'package:flutter/material.dart';
import 'package:hugeicons/hugeicons.dart';
import 'package:locker/l10n/l10n.dart';
import 'package:locker/ui/pages/account_credentials_page.dart';
-import 'package:locker/ui/pages/emergency_contact_page.dart';
import 'package:locker/ui/pages/personal_note_page.dart';
import 'package:locker/ui/pages/physical_records_page.dart';
@@ -17,7 +16,6 @@ enum SaveOptionType {
note,
physicalRecord,
credentials,
- emergencyContact,
}
Future<void> showSaveBottomSheet(
@@ -95,6 +93,7 @@ class SaveBottomSheet extends StatelessWidget {
TitleBarTitleWidget(
title: context.l10n.saveToLocker,
),
+ const SizedBox(height: 12),
Text(
context.l10n.informationDescription,
style: textTheme.smallMuted,
@@ -187,21 +186,6 @@ class SaveBottomSheet extends StatelessWidget {
colorScheme: colorScheme,
textTheme: textTheme,
),
- const SizedBox(height: 16),
- _buildSaveOption(
- context,
- rootContext: rootContext,
- icon: HugeIcon(
- icon: HugeIcons.strokeRoundedContactBook,
- size: 24,
- color: colorScheme.primary700,
- ),
- title: context.l10n.emergencyContact,
- description: context.l10n.emergencyContactDescription,
- type: SaveOptionType.emergencyContact,
- colorScheme: colorScheme,
- textTheme: textTheme,
- ),
const SizedBox(height: 32),
],
),
@@ -290,11 +274,6 @@ class SaveBottomSheet extends StatelessWidget {
),
);
break;
- case SaveOptionType.emergencyContact:
- Navigator.of(context).push(
- MaterialPageRoute(builder: (context) => const EmergencyContactPage()),
- );
- break;
}
}
}