Skip to content

armgit / ente

Public Imported from GitHub
0

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

Extract strings

Neeraj Gupta4982c1209ef4
diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/lib/l10n/intl_en.arb
index d5207f0d10..e9252c5cb2 100644
--- a/mobile/lib/l10n/intl_en.arb
+++ b/mobile/lib/l10n/intl_en.arb
@@ -1281,6 +1281,8 @@
"createCollaborativeLink": "Create collaborative link",
"search": "Search",
"enterPersonName": "Enter person name",
+ "editEmailAlreadyLinked": "This email is already linked to {name}.",
+ "viewPersonToUnlink": "View {name} to unlink",
"enterName": "Enter name",
"savePerson": "Save person",
"editPerson": "Edit person",
diff --git a/mobile/lib/utils/person_contact_linking_util.dart b/mobile/lib/utils/person_contact_linking_util.dart
index 158bcba1aa..aee0349f6f 100644
--- a/mobile/lib/utils/person_contact_linking_util.dart
+++ b/mobile/lib/utils/person_contact_linking_util.dart
@@ -1,9 +1,9 @@
import "package:collection/collection.dart";
import "package:flutter/widgets.dart";
-import "package:photos/generated/l10n.dart";
+import "package:photos/l10n/l10n.dart";
import "package:photos/models/ml/face/person.dart";
import "package:photos/services/machine_learning/face_ml/person/person_service.dart";
-import "package:photos/ui/viewer/people/save_or_edit_person.dart";
+import "package:photos/ui/viewer/people/people_page.dart";
import "package:photos/utils/dialog_util.dart";
import "package:photos/utils/navigation_util.dart";
@@ -33,16 +33,15 @@ Future<void> showAlreadyLinkedEmailDialog(
await showChoiceActionSheet(
context,
- title: 'Email already assigned',
- body: 'This email is already assigned to ${person.data.name}.',
- firstButtonLabel: S.of(context).editPerson,
+ title: context.l10n.error,
+ body: context.l10n.editEmailAlreadyLinked(person.data.name),
+ firstButtonLabel: context.l10n.viewPersonToUnlink(person.data.name),
firstButtonOnTap: () async {
await routeToPage(
context,
- SaveOrEditPerson(
- person.data.assigned.firstOrNull?.id,
+ PeoplePage(
person: person,
- isEditing: true,
+ searchResult: null,
),
);
},