From a46b1354b872848268da399b7859587e82561239 Mon Sep 17 00:00:00 2001 From: Steven Yi Date: Mon, 25 Sep 2023 09:38:18 -0400 Subject: [PATCH] rename 1.0 speed option to 'Normal' --- lib/l10n/app_en.arb | 4 ++++ .../drive_detail/components/fs_entry_preview_widget.dart | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index e00e186472..e17d8cbcd9 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -1302,6 +1302,10 @@ "@noOneWillSee": { "description": "Indicates that private content won't reach to the wrong hands" }, + "normal": "Normal", + "@normal": { + "description": "Menu entry for \"Normal\" speed playback on Audio and Video previews." + }, "noSubscriptions": "No subscriptions are needed!", "@noSubscriptions": { "description": "Payment philosophy" diff --git a/lib/pages/drive_detail/components/fs_entry_preview_widget.dart b/lib/pages/drive_detail/components/fs_entry_preview_widget.dart index 174ec3b450..b6f65d00b3 100644 --- a/lib/pages/drive_detail/components/fs_entry_preview_widget.dart +++ b/lib/pages/drive_detail/components/fs_entry_preview_widget.dart @@ -600,7 +600,11 @@ class _AudioPlayerWidgetState extends State }); }, title: Text( - '$v', + v == 1.0 + ? appLocalizationsOf( + context) + .normal + : '$v', style: ArDriveTypography .body .buttonNormalBold( @@ -789,7 +793,8 @@ void _displaySpeedOptionsModal( setPlaybackSpeed(speed); Navigator.of(context).pop(); }, - title: Text('$speed'), + title: Text( + speed == 1.0 ? appLocalizationsOf(context).normal : '$speed'), ); }, ),