Skip to content

Commit

Permalink
feat: Missing localization messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa committed Feb 2, 2024
1 parent 0d0b979 commit 6c4f902
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
4 changes: 4 additions & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@
"contain": "Contain",
"fill": "Fill",
"cover": "Cover",
"lateStreamBehavior": "Late stream behavior",
"lateStreamBehaviorDescription": "What to do when a stream is late",
"automatic": "Automatic",
"manual": "Manual",
"@@LOCALIZATION": {},
"dateLanguage": "Date and Language",
"language": "Language",
Expand Down
4 changes: 4 additions & 0 deletions lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@
"contain": "Contenir",
"fill": "Remplir",
"cover": "Couvrir",
"lateStreamBehavior": "Late stream behavior",
"lateStreamBehaviorDescription": "What to do when a stream is late",
"automatic": "Automatic",
"manual": "Manual",
"@@LOCALIZATION": {},
"dateLanguage": "Date et Langue",
"language": "Langue",
Expand Down
4 changes: 4 additions & 0 deletions lib/l10n/app_pl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@
"contain": "Zawartość",
"fill": "Wypełnienie",
"cover": "Pokrycie",
"lateStreamBehavior": "Late stream behavior",
"lateStreamBehaviorDescription": "What to do when a stream is late",
"automatic": "Automatic",
"manual": "Manual",
"@@LOCALIZATION": {},
"dateLanguage": "Date and Language",
"language": "Language",
Expand Down
4 changes: 4 additions & 0 deletions lib/l10n/app_pt.arb
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@
"contain": "Limitar",
"fill": "Preencher",
"cover": "Cobrir",
"lateStreamBehavior": "Transmissão atrasada",
"lateStreamBehaviorDescription": "O que fazer quando a transmissão está atrasada.",
"automatic": "Automático",
"manual": "Manual",
"@@LOCALIZATION": {},
"dateLanguage": "Data e Idioma",
"language": "Idioma",
Expand Down
4 changes: 2 additions & 2 deletions lib/providers/settings_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ extension LateVideoBehaviorExtension on LateVideoBehavior {
String locale(BuildContext context) {
final loc = AppLocalizations.of(context);
return switch (this) {
LateVideoBehavior.automatic => 'Automatic',
LateVideoBehavior.manual => 'Manual',
LateVideoBehavior.automatic => loc.automatic,
LateVideoBehavior.manual => loc.manual,
LateVideoBehavior.never => loc.never,
};
}
Expand Down
4 changes: 2 additions & 2 deletions lib/widgets/settings/desktop/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ class CamerasSettings extends StatelessWidget {
Material(
borderRadius: BorderRadius.circular(6.0),
child: ListTile(
title: const Text('Late Stream Behavior'),
subtitle: const Text('What to do when a stream is late'),
title: Text(loc.lateStreamBehavior),
subtitle: Text(loc.lateStreamBehaviorDescription),
trailing: DropdownButton<LateVideoBehavior>(
value: settings.lateVideoBehavior,
onChanged: (v) {
Expand Down

0 comments on commit 6c4f902

Please sign in to comment.