Skip to content

Commit

Permalink
feat: add translation for previous feature (warning dialog)
Browse files Browse the repository at this point in the history
  • Loading branch information
solsticedhiver committed Sep 24, 2023
1 parent 9c18124 commit 75a180a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
9 changes: 4 additions & 5 deletions lib/controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ class _VideoButtonsState extends State<VideoButtons> {
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: const Text('Warning'),
title: Text(AppLocalizations.of(context)!.strWarning),
content: Column(mainAxisSize: MainAxisSize.min, children: [
CircleAvatar(
radius: 24,
Expand All @@ -475,15 +475,14 @@ class _VideoButtonsState extends State<VideoButtons> {
color: Colors.white, fontWeight: FontWeight.bold)),
),
const SizedBox(height: 10),
const Text(
'The program you are about to watch contains scenes not recommended for young or sensitive audiences.'),
Text(AppLocalizations.of(context)!.strYouAreAboutToWatch),
]),
actions: <Widget>[
TextButton(
style: TextButton.styleFrom(
textStyle: Theme.of(context).textTheme.labelLarge,
),
child: const Text('Cancel'),
child: Text(AppLocalizations.of(context)!.strCancel),
onPressed: () {
Navigator.of(context).pop(false);
},
Expand All @@ -492,7 +491,7 @@ class _VideoButtonsState extends State<VideoButtons> {
style: TextButton.styleFrom(
textStyle: Theme.of(context).textTheme.labelLarge,
),
child: const Text('Continue'),
child: Text(AppLocalizations.of(context)!.strContinue),
onPressed: () {
Navigator.of(context).pop(true);
},
Expand Down
6 changes: 5 additions & 1 deletion lib/l10n/app_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,9 @@
"strYes": "Ja",
"strNo": "Nein",
"strAgeRating": "Altersfreigabe",
"strViewable": "Sichtbar"
"strViewable": "Sichtbar",
"strYouAreAboutToWatch": "Die Sendung, die Sie gerade ansehen, enthält Szenen, die nicht für junge oder sensible Zuschauer geeignet sind.",
"strCancel": "Abbrechen",
"strContinue": "Weiter",
"strWarning": "Warnung"
}
6 changes: 5 additions & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,9 @@
"strYes": "Yes",
"strNo": "No",
"strAgeRating": "Age Rating",
"strViewable": "Viewable"
"strViewable": "Viewable",
"strYouAreAboutToWatch": "The program you are about to watch contains scenes not recommended for young or sensitive audiences.",
"strCancel": "Cancel",
"strContinue": "Continue",
"strWarning": "Warning"
}
6 changes: 5 additions & 1 deletion lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,9 @@
"strYes": "Oui",
"strNo": "Non",
"strAgeRating": "Limite âge",
"strViewable": "Visible"
"strViewable": "Visible",
"strYouAreAboutToWatch": "Le programme que vous vous apprétez à regarder comporte des scènes déconseillées à un public jeune ou sensible.",
"strCancel": "Annuler",
"strContinue": "Continuer",
"strWarning": "Avertissement"
}

0 comments on commit 75a180a

Please sign in to comment.