Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: add video editor and pick location in intl_en

Prateek Sunalfd75affb5ecd
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb
index 0814578dce..31aa7822bc 100644
--- a/mobile/apps/photos/lib/l10n/intl_en.arb
+++ b/mobile/apps/photos/lib/l10n/intl_en.arb
@@ -118,6 +118,10 @@
"enterYourPassword": "Enter your password",
"welcomeBack": "Welcome back!",
"contactSupport": "Contact support",
+ "locationPickerTip": "You can also add a location centered on a photo from the photo's info screen",
+ "@locationPickerTip": {
+ "description": "Helper tip text shown in the location picker that refers to the photo info screen."
+ },
"incorrectPasswordTitle": "Incorrect password",
"pleaseTryAgain": "Please try again",
"recreatePasswordTitle": "Recreate password",
@@ -1849,6 +1853,18 @@
"addedToStreamRecreationQueue": "Added to stream recreation queue",
"videoPreviewAlreadyExists": "Video preview already exists",
"videoAlreadyInQueue": "Video file already present in the queue",
+ "videoExportFailed": "Video creation failed. Please try again.",
+ "videoExportSuccess": "Video successfully created at {path}",
+ "@videoExportSuccess": {
+ "description": "Toast shown when a video export completes, mentioning the filesystem path.",
+ "placeholders": {
+ "path": {
+ "description": "File path where the exported video was written",
+ "type": "String",
+ "example": "/tmp/ente_export.mp4"
+ }
+ }
+ },
"addedToQueue": "Added to queue",
"creatingStream": "Creating stream",
"similarImages": "Similar images",
diff --git a/mobile/apps/photos/lib/services/video_memory_service.dart b/mobile/apps/photos/lib/services/video_memory_service.dart
index 1813893a8e..19525ade26 100644
--- a/mobile/apps/photos/lib/services/video_memory_service.dart
+++ b/mobile/apps/photos/lib/services/video_memory_service.dart
@@ -8,6 +8,7 @@ import "package:flutter/cupertino.dart";
import "package:image/image.dart" as img;
import "package:logging/logging.dart";
import "package:path_provider/path_provider.dart";
+import "package:photos/generated/l10n.dart";
import "package:photos/models/file/file.dart";
import "package:photos/models/file/file_type.dart";
import "package:photos/ui/notification/toast.dart";
@@ -128,13 +129,15 @@ Future<void> _executeFFmpegProcess({
_completeOperation(completer, onComplete);
showToast(
context,
- "Video successfully create at ${_generateOutputPath()}",
+ AppLocalizations.of(
+ context,
+ ).videoExportSuccess(path: _generateOutputPath()),
);
} else {
_logger.warning(
"FFmpeg process failed with return code $returnCode in $executionTime seconds",
);
- showToast(context, "Video creation failed. Please try again.");
+ showToast(context, AppLocalizations.of(context).videoExportFailed);
_completeOperation(completer, onComplete);
await FFmpegKit.cancel();
}
diff --git a/mobile/apps/photos/lib/ui/viewer/location/pick_center_point_widget.dart b/mobile/apps/photos/lib/ui/viewer/location/pick_center_point_widget.dart
index 507510548e..062d2e384b 100644
--- a/mobile/apps/photos/lib/ui/viewer/location/pick_center_point_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/location/pick_center_point_widget.dart
@@ -117,10 +117,12 @@ class PickCenterPointWidget extends StatelessWidget {
selectedFiles: selectedFiles,
limitSelectionToOne: true,
showSelectAll: false,
- header: const Padding(
- padding: EdgeInsets.all(10),
+ header: Padding(
+ padding: const EdgeInsets.all(10),
child: NotificationTipWidget(
- "You can also add a location centered on a photo from the photo's info screen",
+ AppLocalizations.of(
+ context,
+ ).locationPickerTip,
),
),
disablePinnedGroupHeader: true,