π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Extract strings
laurenspriem09d28b20b338
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arbindex 21fe4eebe4..2a33b2b9aa 100644--- a/mobile/apps/photos/lib/l10n/intl_en.arb+++ b/mobile/apps/photos/lib/l10n/intl_en.arb@@ -1411,6 +1411,54 @@"loadingYourPhotos": "Loading your photos...","processingImport": "Processing {folderName}...","personName": "Person name",+ "addPerson": "Add person",+ "@addPerson": {+ "description": "Title for the manual tagging flow where user selects a person to tag files with."+ },+ "addToPerson": "Add to person",+ "@addToPerson": {+ "description": "Action label to add selected files to an existing person."+ },+ "pleaseNamePersonInPeopleSectionFirst": "Please name a person in the People section first",+ "@pleaseNamePersonInPeopleSectionFirst": {+ "description": "Shown when manual tagging requires at least one named person."+ },+ "onlyUploadedFilesCanBeAddedToPerson": "Only uploaded files can be added to a person",+ "@onlyUploadedFilesCanBeAddedToPerson": {+ "description": "Shown when user tries to manually tag files that are not uploaded yet."+ },+ "noFacesDetectedTapToAdd": "No faces detected, tap to add.",+ "@noFacesDetectedTapToAdd": {+ "description": "Shown in file details when no faces are detected, but manual tagging is available."+ },+ "addedFilesToPerson": "{count, plural, =1 {Added 1 file to {personName}} other {Added {count} files to {personName}}}",+ "@addedFilesToPerson": {+ "description": "Toast shown after manually tagging one or more files to a person.",+ "placeholders": {+ "count": {+ "type": "int",+ "example": "2"+ },+ "personName": {+ "type": "String",+ "example": "Alex"+ }+ }+ },+ "filesAlreadyLinkedToPerson": "{count, plural, =1 {1 file is already linked to {personName}} other {{count} files are already linked to {personName}}}",+ "@filesAlreadyLinkedToPerson": {+ "description": "Toast shown when selected files are already manually tagged to the selected person.",+ "placeholders": {+ "count": {+ "type": "int",+ "example": "2"+ },+ "personName": {+ "type": "String",+ "example": "Alex"+ }+ }+ },"addNewPerson": "Add new person","addNameOrMerge": "Add name or merge","mergeWithExisting": "Merge with existing",diff --git a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dartindex 4c5e68b24a..f415db357e 100644--- a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart@@ -382,7 +382,7 @@ class _FileSelectionActionsWidgetStateitems.add(SelectionActionButton(icon: Icons.person_add_alt_1_outlined,- labelText: "(i) Add to person",+ labelText: AppLocalizations.of(context).addToPerson,onTap: hasUploadedFileIDs ? _onAddFilesToPerson : null,shouldShow: hasUploadedFileIDs,),@@ -787,7 +787,7 @@ class _FileSelectionActionsWidgetStateif (filesWithIds.isEmpty) {showShortToast(context,- "Only uploaded files can be added to a person",+ AppLocalizations.of(context).onlyUploadedFilesCanBeAddedToPerson,);return;}@@ -821,10 +821,12 @@ class _FileSelectionActionsWidgetStaterelevantFiles: addedFiles,),);- final suffix = addedCount == 1 ? "file" : "files";showToast(context,- "Added $addedCount $suffix to ${result.person.data.name}",+ AppLocalizations.of(context).addedFilesToPerson(+ count: addedCount,+ personName: result.person.data.name,+ ),);widget.selectedFiles.clearAll();if (mounted) {@@ -834,10 +836,12 @@ class _FileSelectionActionsWidgetState}final alreadyCount = result.alreadyAssignedFileIds.length;if (alreadyCount > 0) {- final suffix = alreadyCount == 1 ? "file is" : "files are";showShortToast(context,- "$alreadyCount $suffix already linked to ${result.person.data.name}",+ AppLocalizations.of(context).filesAlreadyLinkedToPerson(+ count: alreadyCount,+ personName: result.person.data.name,+ ),);}}diff --git a/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dartindex ca9958a9f3..e11e81f9ab 100644--- a/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart@@ -319,7 +319,7 @@ class _FacesItemWidgetState extends State<FacesItemWidget> {final showManualTagOption = flagService.manualTagFileToPerson &&reason == NoFacesReason.noFacesFound;final label = showManualTagOption- ? "No faces detected, tap to add."+ ? AppLocalizations.of(context).noFacesDetectedTapToAdd: getNoFaceReasonText(context, reason);return Expanded(child: Padding(diff --git a/mobile/apps/photos/lib/ui/viewer/people/add_files_to_person_page.dart b/mobile/apps/photos/lib/ui/viewer/people/add_files_to_person_page.dartindex 27c9d81120..f2ff34a218 100644--- a/mobile/apps/photos/lib/ui/viewer/people/add_files_to_person_page.dart+++ b/mobile/apps/photos/lib/ui/viewer/people/add_files_to_person_page.dart@@ -1,5 +1,6 @@import "package:flutter/material.dart";import "package:logging/logging.dart";+import "package:photos/generated/l10n.dart";import "package:photos/models/file/file.dart";import "package:photos/models/search/generic_search_result.dart";import "package:photos/models/search/search_constants.dart";@@ -44,7 +45,7 @@ class AddFilesToPersonPage extends StatefulWidget {if (persons.isEmpty) {showShortToast(context,- "Please name a person in the People section first",+ AppLocalizations.of(context).pleaseNamePersonInPeopleSectionFirst,);return false;}@@ -84,7 +85,7 @@ class _AddFilesToPersonPageState extends State<AddFilesToPersonPage> {return Scaffold(appBar: AppBar(- title: const Text("(i) Add person"),+ title: Text(AppLocalizations.of(context).addPerson),centerTitle: false,),body: FutureBuilder<List<GenericSearchResult>>(@@ -100,8 +101,8 @@ class _AddFilesToPersonPageState extends State<AddFilesToPersonPage> {);return const Center(child: Icon(Icons.error_outline_rounded));} else if (!snapshot.hasData || snapshot.data!.isEmpty) {- return const Center(- child: Text("No results found."),+ return Center(+ child: Text(AppLocalizations.of(context).noResultsFound),);}@@ -164,14 +165,14 @@ class _AddFilesToPersonPageState extends State<AddFilesToPersonPage> {if (uploadIds.isEmpty) {showShortToast(context,- "Only uploaded files can be added to a person",+ AppLocalizations.of(context).onlyUploadedFilesCanBeAddedToPerson,);return;}final dialog = createProgressDialog(context,- "Saving...",+ AppLocalizations.of(context).saving,);await dialog.show();try {