Skip to content

armgit / ente

Public Imported from GitHub
0

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

l11n

laurenspriem93c24f03e6d1
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb
index b8b7b4ce12..b53af6392b 100644
--- a/mobile/apps/photos/lib/l10n/intl_en.arb
+++ b/mobile/apps/photos/lib/l10n/intl_en.arb
@@ -931,6 +931,8 @@
"sortAlbumsBy": "Sort by",
"sortNewestFirst": "Newest first",
"sortOldestFirst": "Oldest first",
+ "sortAToZ": "A-Z",
+ "sortZToA": "Z-A",
"rename": "Rename",
"leaveSharedAlbum": "Leave shared album?",
"leaveAlbum": "Leave album",
@@ -2003,6 +2005,10 @@
"areYouSureYouWantToMergeThem": "Are you sure you want to merge them?",
"allUnnamedGroupsWillBeMergedIntoTheSelectedPerson": "All unnamed groups will be merged into the selected person. This can still be undone from the suggestions history overview of the person.",
"yesIgnore": "Yes, ignore",
+ "areYouSureYouWantToShowThisPersonInPeopleSectionAgain": "Are you sure you want to show this person in the people section again?",
+ "areYouSureYouWantToShowThesePeopleInPeopleSectionAgain": "Are you sure you want to show these people in the people section again?",
+ "yesShowPerson": "Yes, show person",
+ "yesShowPeople": "Yes, show people",
"same": "Same",
"different": "Different",
"sameperson": "Same person?",
diff --git a/mobile/apps/photos/lib/ui/viewer/actions/people_selection_action_widget.dart b/mobile/apps/photos/lib/ui/viewer/actions/people_selection_action_widget.dart
index fc5c2047cf..a0990b3e7e 100644
--- a/mobile/apps/photos/lib/ui/viewer/actions/people_selection_action_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/actions/people_selection_action_widget.dart
@@ -467,9 +467,13 @@ class _PeopleSelectionActionWidgetState
await showChoiceDialog(
context,
title: multiple
- ? "Are you sure you want to show these people in the people section again?"
- : "Are you sure you want to show this person in the people section again?",
- firstButtonLabel: multiple ? "Yes, show people" : "Yes, show person",
+ ? AppLocalizations.of(context)
+ .areYouSureYouWantToShowThesePeopleInPeopleSectionAgain
+ : AppLocalizations.of(context)
+ .areYouSureYouWantToShowThisPersonInPeopleSectionAgain,
+ firstButtonLabel: multiple
+ ? AppLocalizations.of(context).yesShowPeople
+ : AppLocalizations.of(context).yesShowPerson,
firstButtonOnTap: () async {
try {
for (final personID in ignoredSelectedPersonIds) {
diff --git a/mobile/apps/photos/lib/ui/viewer/people/people_app_bar.dart b/mobile/apps/photos/lib/ui/viewer/people/people_app_bar.dart
index 64a72b62e5..1231b30587 100644
--- a/mobile/apps/photos/lib/ui/viewer/people/people_app_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/people/people_app_bar.dart
@@ -81,7 +81,7 @@ class _AppBarWidgetState extends State<PeopleAppBar> {
}) {
if (sourcePerson.data.email == Configuration.instance.getEmail()) {
if (title == null) {
- return "Me";
+ return context.l10n.me;
}
return context.l10n.accountOwnerPersonAppbarTitle(title: title);
}
@@ -596,9 +596,10 @@ class _AppBarWidgetState extends State<PeopleAppBar> {
final isUnnamedIgnoredPerson = _isLegacyIgnoredName(person.data.name);
await showChoiceDialog(
context,
- title:
- "Are you sure you want to show this person in people section again?",
- firstButtonLabel: "Yes, show person",
+ title: AppLocalizations.of(
+ context,
+ ).areYouSureYouWantToShowThisPersonInPeopleSectionAgain,
+ firstButtonLabel: AppLocalizations.of(context).yesShowPerson,
firstButtonOnTap: () async {
try {
if (isUnnamedIgnoredPerson) {
diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart
index 6b050026e2..b7535a9d8f 100644
--- a/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart
@@ -940,7 +940,7 @@ class _PeopleSectionAllWidgetState extends State<PeopleSectionAllWidget> {
detail = l10n.count;
break;
case PeopleSortKey.name:
- detail = _isSortAscending(key) ? "A-Z" : "Z-A";
+ detail = _isSortAscending(key) ? l10n.sortAToZ : l10n.sortZToA;
break;
case PeopleSortKey.lastUpdated:
detail =