Skip to content

Commit

Permalink
localization
Browse files Browse the repository at this point in the history
  • Loading branch information
kunstmusik committed Oct 5, 2023
1 parent f0d41ef commit a740c04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,10 @@
"@fileType": {
"description": "The MIME type of the file"
},
"fileTypeUnsupported": "File type unsupported by browser or operating system",
"@fileTypeUnsupported": {
"description": "Message shown when unable to load media file due to unsupported file format"
},
"fileWasCreatedWithName": "This file was created with the name {fileName}.",
"@fileWasCreatedWithName": {
"description": "File activity (journal): created",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class _VideoPlayerWidgetState extends State<VideoPlayerWidget>
err.toString().contains('MEDIA_ERR_SRC_NOT_SUPPORTED');
setState(() {
_errorMessage = formatError
? 'File type unsupported by browser or operating system'
? appLocalizationsOf(context).fileTypeUnsupported
: appLocalizationsOf(context).couldNotLoadFile;
});
});
Expand All @@ -136,7 +136,7 @@ class _VideoPlayerWidgetState extends State<VideoPlayerWidget>
false;

_errorMessage = formatError
? 'File type unsupported by browser or operating system'
? appLocalizationsOf(context).fileTypeUnsupported
: appLocalizationsOf(context).couldNotLoadFile;
});
}
Expand Down

0 comments on commit a740c04

Please sign in to comment.