Skip to content

armgit / ente

Public Imported from GitHub
0

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

feat: add localization for file preview error message

AmanRajSinghMourya27bbad205341
diff --git a/mobile/apps/locker/lib/l10n/app_en.arb b/mobile/apps/locker/lib/l10n/app_en.arb
index 36cc091463..bd4c0b300f 100644
--- a/mobile/apps/locker/lib/l10n/app_en.arb
+++ b/mobile/apps/locker/lib/l10n/app_en.arb
@@ -99,6 +99,10 @@
}
}
},
+ "noAppToOpenFileDownloadInstead": "No app is available to preview this file. You can download it and open it with another app.",
+ "@noAppToOpenFileDownloadInstead": {
+ "description": "Message shown when Android cannot find an app to open or preview a file"
+ },
"minutesAgo": "{minutes}m ago",
"@minutesAgo": {
"description": "Time format for minutes ago",
diff --git a/mobile/apps/locker/lib/l10n/app_localizations.dart b/mobile/apps/locker/lib/l10n/app_localizations.dart
index fe98df402a..400e6141a0 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations.dart
@@ -342,6 +342,12 @@ abstract class AppLocalizations {
/// **'Could not open item: {error}'**
String couldNotOpenFile(String error);
+ /// Message shown when Android cannot find an app to open or preview a file
+ ///
+ /// In en, this message translates to:
+ /// **'No app is available to preview this file. You can download it and open it with another app.'**
+ String get noAppToOpenFileDownloadInstead;
+
/// Time format for minutes ago
///
/// In en, this message translates to:
diff --git a/mobile/apps/locker/lib/l10n/app_localizations_en.dart b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
index c57e875436..b059bde2a4 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations_en.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
@@ -153,6 +153,10 @@ class AppLocalizationsEn extends AppLocalizations {
return 'Could not open item: $error';
}
+ @override
+ String get noAppToOpenFileDownloadInstead =>
+ 'No app is available to preview this file. You can download it and open it with another app.';
+
@override
String minutesAgo(int minutes) {
return '${minutes}m ago';