Skip to content

armgit / ente

Public Imported from GitHub
0

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

Revert "Localize local-download confirmation copy"

ashilknabdb0c6ae568
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb
index 43845c0261..e5493b2c40 100644
--- a/mobile/apps/photos/lib/l10n/intl_en.arb
+++ b/mobile/apps/photos/lib/l10n/intl_en.arb
@@ -985,26 +985,6 @@
"filesSavedToGallery": "Files saved to gallery",
"fileFailedToSaveToGallery": "Failed to save file to gallery",
"download": "Download",
- "alreadyAvailableOnDeviceTitle": "Already available on device",
- "alreadyAvailableOnDeviceBodyAndroid": "You can find this file in the \"{folderName}\" folder. Download it again?",
- "@alreadyAvailableOnDeviceBodyAndroid": {
- "description": "Dialog body shown before re-downloading when the file is already present on device on Android",
- "placeholders": {
- "folderName": {
- "type": "String"
- }
- }
- },
- "alreadyAvailableOnDeviceBodyIOS": "You can find this file in the \"{albumName}\" album. Download it again?",
- "@alreadyAvailableOnDeviceBodyIOS": {
- "description": "Dialog body shown before re-downloading when the file is already present on device on iOS",
- "placeholders": {
- "albumName": {
- "type": "String"
- }
- }
- },
- "downloadAnyway": "Download anyway",
"pressAndHoldToPlayVideo": "Press and hold to play video",
"pressAndHoldToPlayVideoDetailed": "Press and hold on the image to play video",
"downloadFailed": "Download failed",
diff --git a/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
index f90d9aeeb0..e8ef7a601a 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
@@ -619,22 +619,17 @@ class FileAppBarState extends State<FileAppBar> {
}
Future<void> _download(EnteFile file) async {
- final l10n = context.l10n;
final String? localFileLocationName =
- await _getExistingLocalFileLocation(file, l10n);
+ await _getExistingLocalFileLocation(file);
if (localFileLocationName != null && mounted) {
final actionResult = await showChoiceActionSheet(
context,
- title: l10n.alreadyAvailableOnDeviceTitle,
+ title: "Already available on device",
body: Platform.isAndroid
- ? l10n.alreadyAvailableOnDeviceBodyAndroid(
- folderName: localFileLocationName,
- )
- : l10n.alreadyAvailableOnDeviceBodyIOS(
- albumName: localFileLocationName,
- ),
- firstButtonLabel: l10n.downloadAnyway,
- secondButtonLabel: l10n.cancel,
+ ? "You can find this file in the \"$localFileLocationName\" folder. Download it again?"
+ : "You can find this file in the \"$localFileLocationName\" album. Download it again?",
+ firstButtonLabel: "Download anyway",
+ secondButtonLabel: "Cancel",
);
if (actionResult?.action != ButtonAction.first) {
return;
@@ -663,7 +658,6 @@ class FileAppBarState extends State<FileAppBar> {
Future<String?> _getExistingLocalFileLocation(
EnteFile file,
- AppLocalizations l10n,
) async {
if (file.localID == null || file.localID!.isEmpty) {
return null;
@@ -685,7 +679,7 @@ class FileAppBarState extends State<FileAppBar> {
} else if (deviceFolder.isNotEmpty) {
folderName = _getLastPathSegment(deviceFolder);
} else {
- folderName = l10n.recent;
+ folderName = "Recent";
}
return folderName;
}
@@ -694,7 +688,7 @@ class FileAppBarState extends State<FileAppBar> {
? _getLastPathSegment(deviceFolder)
: relativePath.isNotEmpty
? _getLastPathSegment(relativePath)
- : l10n.recent;
+ : "Recents";
return albumSource;
}