diff --git a/playlet-lib/src/components/VideoPlayerDev/VideoPlayerDev.bs b/playlet-lib/src/components/VideoPlayerDev/VideoPlayerDev.bs index 22cf5d92..2089aa86 100644 --- a/playlet-lib/src/components/VideoPlayerDev/VideoPlayerDev.bs +++ b/playlet-lib/src/components/VideoPlayerDev/VideoPlayerDev.bs @@ -86,7 +86,7 @@ function StartVideoContentTask(videoContentNode as object) m.top.content = videoContentNode - m.loadingLabel.text = "Loading" + m.loadingLabel.text = Tr(Locale.VideoPlayer.Loading) m.loadingPercentLabel.text = "" m.loadingSpinner.visible = true m.loadingSpinner.control = "start" @@ -195,7 +195,7 @@ function OnPlayerStateChange() end if if state = "buffering" - m.loadingLabel.text = "Buffering" + m.loadingLabel.text = Tr(Locale.VideoPlayer.Buffering) m.loadingSpinner.control = "start" m.loadingSpinner.visible = true else diff --git a/playlet-lib/src/locale/en_US/translations.ts b/playlet-lib/src/locale/en_US/translations.ts index 6404dda8..1233008b 100644 --- a/playlet-lib/src/locale/en_US/translations.ts +++ b/playlet-lib/src/locale/en_US/translations.ts @@ -876,6 +876,14 @@ The version of Playlet Lib to use. These correspond to tagged releases on Github. Releases that do not have a playlet-lib.zip file are disabled. The version of Playlet Lib to use. These correspond to tagged releases on Github. Releases that do not have a playlet-lib.zip file are disabled. + + Loading + Loading + + + Buffering + Buffering + Press Options (*) for full screen Press Options (*) for full screen diff --git a/playlet-lib/src/source/utils/Locale.bs b/playlet-lib/src/source/utils/Locale.bs index 57211072..9ae60cfe 100644 --- a/playlet-lib/src/source/utils/Locale.bs +++ b/playlet-lib/src/source/utils/Locale.bs @@ -290,6 +290,8 @@ namespace Locale @locale enum VideoPlayer + Loading = "Loading" + Buffering = "Buffering" FullScreenHint = "Press Options (*) for full screen" VideoLoadError = "Video load error" VideoLoadErrorMessage = "Failed to load video information for %1"