Skip to content

Commit

Permalink
Change default 'scrim' label for closing layout selector bottom sheet…
Browse files Browse the repository at this point in the history
… when using a screen reader.
  • Loading branch information
amugofjava committed May 2, 2024
1 parent cd84e16 commit 9cfebf4
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 1 deletion.
10 changes: 10 additions & 0 deletions lib/l10n/L.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,16 @@ class L {
locale: localeName,
);
}

String get scrim_layout_selector {
return message('scrim_layout_selector') ??
Intl.message(
'Dismiss layout selector',
name: 'scrim_layout_selector',
desc: 'Replaces default scrim label for layout selector bottom sheet.',
locale: localeName,
);
}
}

class AnytimeLocalisationsDelegate extends LocalizationsDelegate<L> {
Expand Down
6 changes: 6 additions & 0 deletions lib/l10n/intl_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -974,5 +974,11 @@
"description": "Menu item to refresh episodes",
"type": "text",
"placeholders": {}
},
"scrim_layout_selector": "Layout-Auswahl schließen",
"@scrim_layout_selector": {
"description": "Replaces default scrim label for layout selector bottom sheet.",
"type": "text",
"placeholders": {}
}
}
6 changes: 6 additions & 0 deletions lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -974,5 +974,11 @@
"description": "Menu item to refresh episodes",
"type": "text",
"placeholders": {}
},
"scrim_layout_selector": "Dismiss layout selector",
"@scrim_layout_selector": {
"description": "Replaces default scrim label for layout selector bottom sheet.",
"type": "text",
"placeholders": {}
}
}
6 changes: 6 additions & 0 deletions lib/l10n/intl_it.arb
Original file line number Diff line number Diff line change
Expand Up @@ -974,5 +974,11 @@
"description": "Menu item to refresh episodes",
"type": "text",
"placeholders": {}
},
"scrim_layout_selector": "Chiudi il selettore del layout",
"@scrim_layout_selector": {
"description": "Replaces default scrim label for layout selector bottom sheet.",
"type": "text",
"placeholders": {}
}
}
8 changes: 7 additions & 1 deletion lib/l10n/intl_messages.arb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@@last_modified": "2024-04-17T14:09:22.222143",
"@@last_modified": "2024-05-02T13:47:46.879269",
"app_title": "Anytime Podcast Player",
"@app_title": {
"description": "Full title for the application",
Expand Down Expand Up @@ -919,5 +919,11 @@
"description": "Menu item to refresh episodes",
"type": "text",
"placeholders": {}
},
"scrim_layout_selector": "Dismiss layout selector",
"@scrim_layout_selector": {
"description": "Replaces default scrim label for layout selector bottom sheet.",
"type": "text",
"placeholders": {}
}
}
1 change: 1 addition & 0 deletions lib/l10n/messages_de.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class MessageLookup extends MessageLookupByLibrary {
'queue_remove_label': MessageLookupByLibrary.simpleMessage('Entfernen'),
'refresh_feed_label': MessageLookupByLibrary.simpleMessage('Holen Sie sich neue Episoden'),
'rewind_button_label': MessageLookupByLibrary.simpleMessage('10 Sekunden zurückspulen'),
'scrim_layout_selector': MessageLookupByLibrary.simpleMessage('Layout-Auswahl schließen'),
'search_back_button_label': MessageLookupByLibrary.simpleMessage('Zurück'),
'search_button_label': MessageLookupByLibrary.simpleMessage('Suche'),
'search_for_podcasts_hint': MessageLookupByLibrary.simpleMessage('Suche nach Podcasts'),
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class MessageLookup extends MessageLookupByLibrary {
'queue_remove_label': MessageLookupByLibrary.simpleMessage('Remove'),
'refresh_feed_label': MessageLookupByLibrary.simpleMessage('Refresh episodes'),
'rewind_button_label': MessageLookupByLibrary.simpleMessage('Rewind episode 10 seconds'),
'scrim_layout_selector': MessageLookupByLibrary.simpleMessage('Dismiss layout selector'),
'search_back_button_label': MessageLookupByLibrary.simpleMessage('Back'),
'search_button_label': MessageLookupByLibrary.simpleMessage('Search'),
'search_for_podcasts_hint': MessageLookupByLibrary.simpleMessage('Search for podcasts'),
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/messages_it.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class MessageLookup extends MessageLookupByLibrary {
'queue_remove_label': MessageLookupByLibrary.simpleMessage('Rimuovi'),
'refresh_feed_label': MessageLookupByLibrary.simpleMessage('Recupera nuovi episodi'),
'rewind_button_label': MessageLookupByLibrary.simpleMessage('Riavvolgi di 10 secondi'),
'scrim_layout_selector': MessageLookupByLibrary.simpleMessage('Chiudi il selettore del layout'),
'search_back_button_label': MessageLookupByLibrary.simpleMessage('Indietro'),
'search_button_label': MessageLookupByLibrary.simpleMessage('Cerca'),
'search_for_podcasts_hint': MessageLookupByLibrary.simpleMessage('Ricerca dei podcasts'),
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/messages_messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class MessageLookup extends MessageLookupByLibrary {
'queue_remove_label': MessageLookupByLibrary.simpleMessage('Remove'),
'refresh_feed_label': MessageLookupByLibrary.simpleMessage('Refresh episodes'),
'rewind_button_label': MessageLookupByLibrary.simpleMessage('Rewind episode 10 seconds'),
'scrim_layout_selector': MessageLookupByLibrary.simpleMessage('Dismiss layout selector'),
'search_back_button_label': MessageLookupByLibrary.simpleMessage('Back'),
'search_button_label': MessageLookupByLibrary.simpleMessage('Search'),
'search_for_podcasts_hint': MessageLookupByLibrary.simpleMessage('Search for podcasts'),
Expand Down
1 change: 1 addition & 0 deletions lib/ui/anytime_podcast_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ class _AnytimeHomePageState extends State<AnytimeHomePage> with WidgetsBindingOb
await showModalBottomSheet<void>(
context: context,
backgroundColor: theme.secondaryHeaderColor,
barrierLabel: L.of(context)!.scrim_layout_selector,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(16.0),
Expand Down

0 comments on commit 9cfebf4

Please sign in to comment.