From b1d79428a3e66b23406f990bdf86b046fe0cb014 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sat, 30 Sep 2023 18:46:32 +0600 Subject: [PATCH] chore: fix translations & normalize audio icon --- lib/collections/spotube_icons.dart | 1 + lib/l10n/app_en.arb | 3 ++- lib/pages/settings/settings.dart | 5 ++-- untranslated_messages.json | 42 ++++++++++++++++++++---------- 4 files changed, 34 insertions(+), 17 deletions(-) diff --git a/lib/collections/spotube_icons.dart b/lib/collections/spotube_icons.dart index 9a9c9a92b..5c769498c 100644 --- a/lib/collections/spotube_icons.dart +++ b/lib/collections/spotube_icons.dart @@ -105,4 +105,5 @@ abstract class SpotubeIcons { static const spotify = SimpleIcons.spotify; static const eye = FeatherIcons.eye; static const noEye = FeatherIcons.eyeOff; + static const normalize = FeatherIcons.barChart2; } diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index a3c8d9769..719a98afa 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -264,7 +264,8 @@ "use_system_title_bar": "Use system title bar", "crunching_results": "Crunching results...", "search_to_get_results": "Search to get results", - "use_amoled_dark_theme": "Use AMOLED (Pitch Black) dark theme", + "use_amoled_mode": "Use AMOLED mode", + "pitch_dark_theme": "Pitch black dart theme", "normalize_audio": "Normalize audio", "change_cover": "Change cover", "add_cover": "Add cover", diff --git a/lib/pages/settings/settings.dart b/lib/pages/settings/settings.dart index 901d32ff3..2cc0c271d 100644 --- a/lib/pages/settings/settings.dart +++ b/lib/pages/settings/settings.dart @@ -179,7 +179,8 @@ class SettingsPage extends HookConsumerWidget { ), SwitchListTile( secondary: const Icon(SpotubeIcons.amoled), - title: Text(context.l10n.use_amoled_dark_theme), + title: Text(context.l10n.use_amoled_mode), + subtitle: Text(context.l10n.pitch_dark_theme), value: preferences.amoledDarkTheme, onChanged: preferences.setAmoledDarkTheme, ), @@ -372,7 +373,7 @@ class SettingsPage extends HookConsumerWidget { trailing: const Icon(SpotubeIcons.angleRight), ), SwitchListTile( - secondary: const Icon(SpotubeIcons.playlistRemove), + secondary: const Icon(SpotubeIcons.normalize), title: Text(context.l10n.normalize_audio), subtitle: Text(context.l10n.blacklist_description), value: preferences.normalizeAudio, diff --git a/untranslated_messages.json b/untranslated_messages.json index 472c45c28..0921e8dbf 100644 --- a/untranslated_messages.json +++ b/untranslated_messages.json @@ -1,6 +1,7 @@ { "ar": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -19,7 +20,8 @@ ], "bn": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -38,7 +40,8 @@ ], "ca": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -57,7 +60,8 @@ ], "de": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -76,7 +80,8 @@ ], "es": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -95,7 +100,8 @@ ], "fa": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -114,7 +120,8 @@ ], "fr": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -133,7 +140,8 @@ ], "hi": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -152,7 +160,8 @@ ], "ja": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -171,7 +180,8 @@ ], "pl": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -190,7 +200,8 @@ ], "pt": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -209,7 +220,8 @@ ], "ru": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -228,7 +240,8 @@ ], "uk": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover", @@ -247,7 +260,8 @@ ], "zh": [ - "use_amoled_dark_theme", + "use_amoled_mode", + "pitch_dark_theme", "normalize_audio", "change_cover", "add_cover",