Skip to content

Commit

Permalink
chore: fix translations & normalize audio icon
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Sep 30, 2023
1 parent 931664e commit b1d7942
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 17 deletions.
1 change: 1 addition & 0 deletions lib/collections/spotube_icons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 2 additions & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions lib/pages/settings/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down Expand Up @@ -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,
Expand Down
42 changes: 28 additions & 14 deletions untranslated_messages.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"ar": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -19,7 +20,8 @@
],

"bn": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -38,7 +40,8 @@
],

"ca": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -57,7 +60,8 @@
],

"de": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -76,7 +80,8 @@
],

"es": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -95,7 +100,8 @@
],

"fa": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -114,7 +120,8 @@
],

"fr": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -133,7 +140,8 @@
],

"hi": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -152,7 +160,8 @@
],

"ja": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -171,7 +180,8 @@
],

"pl": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -190,7 +200,8 @@
],

"pt": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -209,7 +220,8 @@
],

"ru": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -228,7 +240,8 @@
],

"uk": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand All @@ -247,7 +260,8 @@
],

"zh": [
"use_amoled_dark_theme",
"use_amoled_mode",
"pitch_dark_theme",
"normalize_audio",
"change_cover",
"add_cover",
Expand Down

0 comments on commit b1d7942

Please sign in to comment.