Localization part 3 (#333)
* TODO * TODO * Add some translations * Remote screen and settings * Video player and http client
This commit is contained in:
1 parent
9a7db6aab2
commit
7330b321a5
19 files changed
+837
-85
No files matched your search
@@ -126,7 +126,7 @@ function onKeyEvent(key as string, press as boolean) as boolean
|
||||
return true
|
||||
end if
|
||||
end if
|
||||
dialog = DialogUtils.ShowDialogButtons("Do you want to exit Playlet?", Tr(Locale.Buttons.exit), [Tr(Locale.Buttons.exit), Tr(Locale.Buttons.Cancel)])
|
||||
dialog = DialogUtils.ShowDialogButtons(Tr(Locale.Dialogs.ExitPlayletQuestion), Tr(Locale.Buttons.exit), [Tr(Locale.Buttons.exit), Tr(Locale.Buttons.Cancel)])
|
||||
dialog.observeField("buttonSelected", FuncName(OnExitDialog), ["buttonSelected"])
|
||||
return true
|
||||
end if
|
||||
|
||||
@@ -12,7 +12,7 @@ function Init()
|
||||
m.top.observeFieldScoped("buttonSelected", FuncName(Close))
|
||||
|
||||
scanLabel = m.top.findNode("scanLabel")
|
||||
scanLabel.text = Tr(Locale.LoginDialog.ScanTheQrCode)
|
||||
scanLabel.text = Tr(Locale.Dialogs.ScanTheQrCode)
|
||||
end function
|
||||
|
||||
function OnNodeReady()
|
||||
@@ -21,7 +21,7 @@ function OnNodeReady()
|
||||
if isValidAddress
|
||||
m.top.url = `${address}/invidious/login`
|
||||
else
|
||||
m.urlLabel.text = Tr(Locale.LoginDialog.IpAddressNotAvailable)
|
||||
m.urlLabel.text = Tr(Locale.Dialogs.IpAddressNotAvailable)
|
||||
end if
|
||||
|
||||
m.invidious.observeFieldScoped("authToken", FuncName(OnAuthTokenChange))
|
||||
|
||||
@@ -7,14 +7,26 @@
|
||||
</interface>
|
||||
<children>
|
||||
<Group id="noBookmarks" visible="false">
|
||||
<Label
|
||||
height="720"
|
||||
width="1280"
|
||||
font="font:MediumBoldSystemFont"
|
||||
horizAlign="center"
|
||||
vertAlign="center"
|
||||
text="You currently have no bookmarks.

To add bookmarks, long-press 'OK' on a video, playlist or channel.

Please note that Bookmarks is an experimental feature."
|
||||
wrap="true" />
|
||||
<LayoutGroup vertAlignment="center" itemSpacings="[25,25]" translation="[180,360]">
|
||||
<Label
|
||||
width="920"
|
||||
horizAlign="center"
|
||||
font="font:SmallSystemFont"
|
||||
text="You currently have no bookmarks."
|
||||
wrap="true" />
|
||||
<Label
|
||||
width="920"
|
||||
horizAlign="center"
|
||||
font="font:SmallSystemFont"
|
||||
text="To add bookmarks, long-press 'OK' on a video, playlist or channel."
|
||||
wrap="true" />
|
||||
<Label
|
||||
width="920"
|
||||
horizAlign="center"
|
||||
font="font:SmallSystemFont"
|
||||
text="Please note that Bookmarks is an experimental feature."
|
||||
wrap="true" />
|
||||
</LayoutGroup>
|
||||
</Group>
|
||||
<Group id="yesBookmarks" visible="false">
|
||||
<VideoRowList
|
||||
|
||||
@@ -4,7 +4,9 @@ import "pkg:/source/AsyncTask/AsyncTask.bs"
|
||||
import "pkg:/source/AsyncTask/Tasks.bs"
|
||||
import "pkg:/source/utils/ErrorUtils.bs"
|
||||
import "pkg:/source/utils/FocusManagement.bs"
|
||||
import "pkg:/source/utils/Locale.bs"
|
||||
import "pkg:/source/utils/Logging.bs"
|
||||
import "pkg:/source/utils/MathUtils.bs"
|
||||
import "pkg:/source/utils/StringUtils.bs"
|
||||
|
||||
function Init()
|
||||
@@ -64,6 +66,11 @@ function OnNodeReady()
|
||||
m.linkWithWifiPanel.visible = false
|
||||
m.linkWithTvPanel.observeField("visible", FuncName(OnLinkWithTvPanelVisibleChanged))
|
||||
m.linkWithTvPanel.visible = false
|
||||
|
||||
m.webAppButton.observeField("contentWidth", FuncName(OnButtonSizeChange))
|
||||
m.linkWithWifiButton.observeField("contentWidth", FuncName(OnButtonSizeChange))
|
||||
m.linkWithTvButton.observeField("contentWidth", FuncName(OnButtonSizeChange))
|
||||
OnButtonSizeChange()
|
||||
end function
|
||||
|
||||
function OnFocusChange() as void
|
||||
@@ -86,6 +93,18 @@ function OnUrlSet()
|
||||
m.webAppQrCodePoster.text = url
|
||||
end function
|
||||
|
||||
function OnButtonSizeChange()
|
||||
width1 = m.webAppButton.contentWidth
|
||||
width2 = m.linkWithWifiButton.contentWidth
|
||||
width3 = m.linkWithTvButton.contentWidth
|
||||
|
||||
width = MathUtils.Max(width1, MathUtils.Max(width2, width3))
|
||||
|
||||
m.webAppButton.minimumWidth = width
|
||||
m.linkWithWifiButton.minimumWidth = width
|
||||
m.linkWithTvButton.minimumWidth = width
|
||||
end function
|
||||
|
||||
function OnkeyEvent(key as string, press as boolean) as boolean
|
||||
navigation = NavigationKeyHandler(key, press)
|
||||
if navigation.handled
|
||||
@@ -134,12 +153,13 @@ function OnLinkWithWifiPanelVisibleChanged() as void
|
||||
if connectionInfo.type = "WiFiConnection"
|
||||
m.wifiNameLabel.text = connectionInfo.ssid
|
||||
else if connectionInfo.type = "WiredConnection"
|
||||
m.wifiNameLabel.text = "Wired connection"
|
||||
m.wifiNameLabel.text = Tr(Locale.RemoteScreen.WiredConnection)
|
||||
else
|
||||
m.wifiNameLabel.text = "N/A"
|
||||
end if
|
||||
|
||||
m.wifiInstructionWithDeviceNameLabel.text = `Tap the cast icon and select <Bold>"${m.loungeService.deviceName}"</Bold>`
|
||||
deviceName = `<Bold>"${m.loungeService.deviceName}"</Bold>`
|
||||
m.wifiInstructionWithDeviceNameLabel.text = Tr(Locale.RemoteScreen.WifiInstruction3).Replace("%1", deviceName)
|
||||
end function
|
||||
|
||||
function OnLinkWithTvPanelVisibleChanged()
|
||||
@@ -159,7 +179,7 @@ function GeneratePairingCode()
|
||||
m.linkCodeTask.cancel = true
|
||||
end if
|
||||
|
||||
m.linkCodeLabel.text = "Loading..."
|
||||
m.linkCodeLabel.text = Tr(Locale.RemoteScreen.Loading)
|
||||
m.linkCodeTask = AsyncTask.Start(Tasks.LoungeGenerateManualPairingCodeTask, {
|
||||
loungeService: m.loungeService
|
||||
loungeToken: m.loungeService.loungeToken
|
||||
@@ -187,8 +207,8 @@ function OnLoungeGenerateManualPairingCodeTaskResult(output as object) as void
|
||||
error = ErrorUtils.Format(error)
|
||||
LogError(error)
|
||||
|
||||
message = `Failed to generate manual pairing code\n${error}`
|
||||
DialogUtils.ShowDialog(message, "Get TV code fail", true)
|
||||
message = Tr(Locale.RemoteScreen.FailedToGeneratePairingCode) + `\n${error}`
|
||||
DialogUtils.ShowDialog(message, Tr(Locale.RemoteScreen.TvCodeError), true)
|
||||
return
|
||||
end if
|
||||
|
||||
|
||||
@@ -10,11 +10,13 @@
|
||||
<Group id="noInternet" visible="false">
|
||||
<Label
|
||||
height="720"
|
||||
width="1280"
|
||||
font="font:MediumBoldSystemFont"
|
||||
width="920"
|
||||
font="font:SmallSystemFont"
|
||||
horizAlign="center"
|
||||
vertAlign="center"
|
||||
text="Could not get IP address: are we connected to the internet?"
|
||||
wrap="true"
|
||||
translation="[180,0]"
|
||||
/>
|
||||
</Group>
|
||||
<Group id="yesInternet" visible="false">
|
||||
@@ -97,23 +99,23 @@
|
||||
wrap="true"
|
||||
text="Tap the cast icon and select this device." />
|
||||
</LayoutGroup>
|
||||
<Label
|
||||
text="Roku connected to:"
|
||||
translation="[0,220]">
|
||||
<Font role="font" uri="font:SystemFontFile" size="20" />
|
||||
</Label>
|
||||
<Label
|
||||
id="WifiNameLabel"
|
||||
color="#4287f5"
|
||||
translation="[0,250]">
|
||||
<Font role="font" uri="font:BoldSystemFontFile" size="28" />
|
||||
</Label>
|
||||
</LayoutGroup>
|
||||
<Label
|
||||
text="Roku connected to:"
|
||||
translation="[0,220]">
|
||||
<Font role="font" uri="font:SystemFontFile" size="20" />
|
||||
</Label>
|
||||
<Label
|
||||
id="WifiNameLabel"
|
||||
color="#4287f5"
|
||||
translation="[0,250]">
|
||||
<Font role="font" uri="font:BoldSystemFontFile" size="28" />
|
||||
</Label>
|
||||
</Group>
|
||||
|
||||
<Group id="LinkWithTvPanel"
|
||||
translation="[700,220]">
|
||||
<LayoutGroup itemSpacings="[12]">
|
||||
<LayoutGroup itemSpacings="[12,12,25]">
|
||||
<LayoutGroup layoutDirection="horiz" itemSpacings="[15]">
|
||||
<Label
|
||||
font="font:SmallSystemFont"
|
||||
@@ -132,7 +134,7 @@
|
||||
font="font:SmallSystemFont"
|
||||
width="380"
|
||||
wrap="true"
|
||||
text="Tap the Chromecast icon." />
|
||||
text="Tap the cast icon." />
|
||||
</LayoutGroup>
|
||||
<LayoutGroup layoutDirection="horiz" itemSpacings="[15]">
|
||||
<Label
|
||||
@@ -142,18 +144,15 @@
|
||||
font="font:SmallSystemFont"
|
||||
width="380"
|
||||
wrap="true"
|
||||
text="Tap "Link with TV code" and enter the code below." />
|
||||
text="Tap 'Link with TV code' and enter the code below." />
|
||||
</LayoutGroup>
|
||||
<Label
|
||||
id="LinkCodeLabel"
|
||||
font="font:LargeBoldSystemFont"
|
||||
color="#4287f5">
|
||||
<Font role="font" uri="font:BoldSystemFontFile" size="48" />
|
||||
</Label>
|
||||
</LayoutGroup>
|
||||
<Label
|
||||
id="LinkCodeLabel"
|
||||
font="font:LargeBoldSystemFont"
|
||||
color="#4287f5"
|
||||
translation="[-30,180]"
|
||||
width="460"
|
||||
horizAlign="center">
|
||||
<Font role="font" uri="font:BoldSystemFontFile" size="48" />
|
||||
</Label>
|
||||
</Group>
|
||||
</Group>
|
||||
</children>
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import "pkg:/source/utils/MathUtils.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
function Init()
|
||||
m.top.observeField("checkedState", FuncName(OnCheckedStateChange))
|
||||
m.minItemWidth = m.top.itemSize[0]
|
||||
end function
|
||||
|
||||
function OnValueChange()
|
||||
@@ -15,3 +17,19 @@ function OnCheckedStateChange() as void
|
||||
end if
|
||||
m.top.value = checkedState[0]
|
||||
end function
|
||||
|
||||
function OnTitleChange()
|
||||
title = m.top.title
|
||||
' TODO:P2 FIX THIS
|
||||
' This is a gross estimate of the width of the text, because there isn't
|
||||
' a simple way to measure using the font, and accurately estimate the width
|
||||
' of the checkbox. I hate it, but I currently don't have the patience to
|
||||
' do something else.
|
||||
' The risks are, if the checkbox is too big, it will look ugly, and if it's
|
||||
' too small, the text will be scrolling. Either way, it will be usable.
|
||||
' A better way is to create a Checkbox from scratch, instead of using the CheckList
|
||||
size = title.len() * 14 - 30
|
||||
|
||||
size = MathUtils.Max(size, m.minItemWidth)
|
||||
m.top.itemSize = [size, m.top.itemSize[1]]
|
||||
end function
|
||||
@@ -1,6 +1,6 @@
|
||||
<component name="Checkbox" extends="CheckList">
|
||||
<interface>
|
||||
<field id="title" type="string" alias="checkboxNode.title" />
|
||||
<field id="title" type="string" alias="checkboxNode.title" onChange="OnTitleChange" />
|
||||
<field id="value" type="boolean" onChange="OnValueChange" />
|
||||
</interface>
|
||||
<children>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||
import "pkg:/components/Services/SearchHistory/SearchHistoryUtils.bs"
|
||||
import "pkg:/source/utils/FocusManagement.bs"
|
||||
import "pkg:/source/utils/Locale.bs"
|
||||
|
||||
function Init()
|
||||
m.top.focusable = true
|
||||
@@ -22,5 +23,5 @@ end function
|
||||
|
||||
function OnButtonSelected()
|
||||
SearchHistoryUtils.Clear()
|
||||
DialogUtils.ShowDialog("Search history cleared.", "Success")
|
||||
DialogUtils.ShowDialog(Tr(Locale.Settings.SearchHistoryCleared), Tr(Locale.Generic.Success))
|
||||
end function
|
||||
@@ -57,7 +57,7 @@ function OnOptionsChange()
|
||||
for i = 0 to options.Count() - 1
|
||||
option = options[i].displayText
|
||||
node = CreateObject("roSGNode", "ContentNode")
|
||||
node.title = option
|
||||
node.title = Tr(option)
|
||||
m.radioButtonListContent.appendChild(node)
|
||||
end for
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import "pkg:/source/utils/MathUtils.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
function Init()
|
||||
@@ -21,7 +22,10 @@ function Resize()
|
||||
width = rect.width + m.top.padding * 2
|
||||
height = rect.height + m.top.padding * 2
|
||||
|
||||
m.top.minWidth = width < m.top.minimumWidth ? m.top.minimumWidth : width
|
||||
m.top.contentWidth = width
|
||||
m.top.contentHeight = height
|
||||
|
||||
m.top.minWidth = MathUtils.Max(m.top.minimumWidth, width)
|
||||
m.top.height = height
|
||||
|
||||
m.container.translation = [m.top.padding, m.top.padding]
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<component name="SettingCategory" extends="Button">
|
||||
<interface>
|
||||
<field id="padding" type="integer" value="15" onChange="Resize" />
|
||||
<field id="minimumWidth" type="integer" value="280" onChange="Resize" />
|
||||
<field id="padding" type="float" value="15" onChange="Resize" />
|
||||
<field id="minimumWidth" type="float" value="280" onChange="Resize" />
|
||||
<field id="contentWidth" type="float" />
|
||||
<field id="contentHeight" type="float" />
|
||||
<field id="displayText" type="string" alias="DisplayTextLabel.text" onChange="Resize" />
|
||||
<field id="description" type="string" alias="DescriptionLabel.text" onChange="Resize" />
|
||||
<field id="textColor2" type="Color" value="0xb4b4b4ff" />
|
||||
@@ -9,13 +11,11 @@
|
||||
</interface>
|
||||
<children>
|
||||
<LayoutGroup id="Container" itemSpacings="[5]">
|
||||
<SimpleLabel
|
||||
id="DisplayTextLabel"
|
||||
fontUri="font:SystemFontFile"
|
||||
fontSize="34" />
|
||||
<SimpleLabel id="DescriptionLabel"
|
||||
fontUri="font:SystemFontFile"
|
||||
fontSize="18"
|
||||
<Label id="DisplayTextLabel">
|
||||
<Font role="font" uri="font:SystemFontFile" size="34" />
|
||||
</Label>
|
||||
<Label id="DescriptionLabel"
|
||||
font="font:SmallestSystemFont"
|
||||
translation="[0,42]" />
|
||||
</LayoutGroup>
|
||||
</children>
|
||||
|
||||
@@ -20,7 +20,7 @@ function OnNodeReady()
|
||||
startX = 150
|
||||
startY = 100
|
||||
|
||||
controlsX = 400
|
||||
controlsX = 450
|
||||
|
||||
categorySpacing = 80
|
||||
controlSpacing = 30
|
||||
@@ -73,8 +73,8 @@ end function
|
||||
function CreateCategoryNode(item as object, container as object, startX as integer, startY as integer) as object
|
||||
node = container.createChild("SettingCategory")
|
||||
node.translation = [startX, startY]
|
||||
node.displayText = item.displayText
|
||||
node.description = item.description
|
||||
node.displayText = Tr(item.displayText)
|
||||
node.description = Tr(item.description)
|
||||
return {
|
||||
node: node
|
||||
rect: node.boundingRect()
|
||||
@@ -152,30 +152,30 @@ end function
|
||||
|
||||
function CreateBooleanControl(item as object, container as object) as object
|
||||
node = container.createChild("BooleanControl")
|
||||
node.displayText = item.displayText
|
||||
node.description = item.description
|
||||
node.displayText = Tr(item.displayText)
|
||||
node.description = Tr(item.description)
|
||||
return node
|
||||
end function
|
||||
|
||||
function CreateRadioControl(item as object, container as object) as object
|
||||
node = container.createChild("RadioControl")
|
||||
node.displayText = item.displayText
|
||||
node.description = item.description
|
||||
node.displayText = Tr(item.displayText)
|
||||
node.description = Tr(item.description)
|
||||
node.options = item.options
|
||||
return node
|
||||
end function
|
||||
|
||||
function CreateStringControl(item as object, container as object) as object
|
||||
node = container.createChild("StringControl")
|
||||
node.displayText = item.displayText
|
||||
node.description = item.description
|
||||
node.displayText = Tr(item.displayText)
|
||||
node.description = Tr(item.description)
|
||||
return node
|
||||
end function
|
||||
|
||||
function CreateNumberComponent(item as object, container as object) as object
|
||||
node = container.createChild("NumberControl")
|
||||
node.displayText = item.displayText
|
||||
node.description = item.description
|
||||
node.displayText = Tr(item.displayText)
|
||||
node.description = Tr(item.description)
|
||||
if IsInt(item.min)
|
||||
node.min = item.min
|
||||
end if
|
||||
@@ -188,10 +188,10 @@ end function
|
||||
function CreateRokuComponent(item as object, container as object) as object
|
||||
node = container.createChild(item.rokuComponent)
|
||||
if node.hasField("displayText")
|
||||
node.displayText = item.displayText
|
||||
node.displayText = Tr(item.displayText)
|
||||
end if
|
||||
if node.hasField("description")
|
||||
node.description = item.description
|
||||
node.description = Tr(item.description)
|
||||
end if
|
||||
return node
|
||||
end function
|
||||
|
||||
@@ -128,9 +128,12 @@ function OnVideoContentTaskResults(output as object) as void
|
||||
error = ErrorUtils.Format(error)
|
||||
LogError(error)
|
||||
videoId = output.task.input.content.videoId
|
||||
message = `Failed to load video information for ${videoId}\n${error}`
|
||||
|
||||
dialog = DialogUtils.ShowTimedDialogButtons(message, "Video load fail", ["Play next video", "Cancel"], 0, 10, true)
|
||||
title = Tr(Locale.VideoPlayer.VideoLoadError)
|
||||
message = Tr(Locale.VideoPlayer.VideoLoadErrorMessage).Replace("%1", videoId) + `\n${error}`
|
||||
buttons = [Tr(Locale.Buttons.PlayNextVideo), Tr(Locale.Buttons.Cancel)]
|
||||
|
||||
dialog = DialogUtils.ShowTimedDialogButtons(message, title, buttons, 0, 10, true)
|
||||
dialog.observeFieldScoped("wasClosed", FuncName(OnVideoContentTaskErrorDialogResponse))
|
||||
|
||||
Lounge.SendOnStateChange()
|
||||
@@ -186,7 +189,7 @@ function Close(_unused as dynamic)
|
||||
try
|
||||
m.top.control = "stop"
|
||||
catch error
|
||||
DialogUtils.ShowDialog(ErrorUtils.Format(error), "Error closing video", true)
|
||||
DialogUtils.ShowDialog(ErrorUtils.Format(error), Tr(Locale.VideoPlayer.ErrorClosingVideo), true)
|
||||
end try
|
||||
|
||||
m.top.content = invalid
|
||||
@@ -263,10 +266,12 @@ function OnVideoPlayerStateChange() as void
|
||||
end for
|
||||
end if
|
||||
|
||||
title = `Error playing video ${content.videoId}`
|
||||
title = Tr(Locale.VideoPlayer.ErrorPlayingVideo).Replace("%1", content.videoId)
|
||||
LogError(title, messageLines)
|
||||
|
||||
dialog = DialogUtils.ShowTimedDialogButtons(messageLines, title, ["Play next video", "Cancel"], 0, 10, true)
|
||||
buttons = [Tr(Locale.Buttons.PlayNextVideo), Tr(Locale.Buttons.Cancel)]
|
||||
|
||||
dialog = DialogUtils.ShowTimedDialogButtons(messageLines, title, buttons, 0, 10, true)
|
||||
dialog.observeFieldScoped("wasClosed", FuncName(OnVideoContentTaskErrorDialogResponse))
|
||||
m.ignoreNextFinishedState = true
|
||||
end if
|
||||
|
||||
@@ -156,6 +156,10 @@
|
||||
<source>Please note that an Invidious account is different from a YouTube account.</source>
|
||||
<translation>Please note that an Invidious account is different from a YouTube account.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Do you want to exit Playlet?</source>
|
||||
<translation>Do you want to exit Playlet?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Invidious custom instance</source>
|
||||
<translation>Invidious custom instance</translation>
|
||||
@@ -208,10 +212,18 @@
|
||||
<source>No</source>
|
||||
<translation>No</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Success</source>
|
||||
<translation>Success</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Refresh</source>
|
||||
<translation>Refresh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Play next video</source>
|
||||
<translation>Play next video</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Test</source>
|
||||
<translation>Test</translation>
|
||||
@@ -516,5 +528,285 @@
|
||||
<source>UPCOMING</source>
|
||||
<translation>UPCOMING</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You currently have no bookmarks.</source>
|
||||
<translation>You currently have no bookmarks.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>To add bookmarks, long-press 'OK' on a video, playlist or channel.</source>
|
||||
<translation>To add bookmarks, long-press 'OK' on a video, playlist or channel.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please note that Bookmarks is an experimental feature.</source>
|
||||
<translation>Please note that Bookmarks is an experimental feature.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Could not get IP address: are we connected to the internet?</source>
|
||||
<translation>Could not get IP address: are we connected to the internet?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playlet Web App</source>
|
||||
<translation>Playlet Web App</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Use Playlet Remote in the browser</source>
|
||||
<translation>Use Playlet Remote in the browser</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Link with Wi-Fi</source>
|
||||
<translation>Link with Wi-Fi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Link with TV code</source>
|
||||
<translation>Link with TV code</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cast from the YouTube app to Playlet</source>
|
||||
<translation>Cast from the YouTube app to Playlet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>On your phone, connect to the same Wi-Fi network as this device.</source>
|
||||
<translation>On your phone, connect to the same Wi-Fi network as this device.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open the YouTube app on your phone.</source>
|
||||
<translation>Open the YouTube app on your phone.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Tap the cast icon and select %1</source>
|
||||
<translation>Tap the cast icon and select %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Roku connected to:</source>
|
||||
<translation>Roku connected to:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Wired connection</source>
|
||||
<translation>Wired connection</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>On your phone, open the YouTube app.</source>
|
||||
<translation>On your phone, open the YouTube app.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Tap the cast icon.</source>
|
||||
<translation>Tap the cast icon.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Tap 'Link with TV code' and enter the code below.</source>
|
||||
<translation>Tap 'Link with TV code' and enter the code below.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Loading...</source>
|
||||
<translation>Loading...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TV code error</source>
|
||||
<translation>TV code error</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to generate manual pairing code</source>
|
||||
<translation>Failed to generate manual pairing code</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playback</source>
|
||||
<translation>Playback</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playback preferences</source>
|
||||
<translation>Playback preferences</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Autoplay</source>
|
||||
<translation>Autoplay</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>When you finish a video, another plays automatically</source>
|
||||
<translation>When you finish a video, another plays automatically</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Preferred quality</source>
|
||||
<translation>Preferred quality</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Preferred video quality</source>
|
||||
<translation>Preferred video quality</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Auto (DASH)</source>
|
||||
<translation>Auto (DASH)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>720p</source>
|
||||
<translation>720p</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Medium</source>
|
||||
<translation>Medium</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Invidious preferences</source>
|
||||
<translation>Invidious preferences</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Instance</source>
|
||||
<translation>Instance</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Invidious instance to use. Example: https://example.com</source>
|
||||
<translation>Invidious instance to use. Example: https://example.com</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Proxy videos</source>
|
||||
<translation>Proxy videos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Proxy videos through the Invidious server. This is useful if videos are geoblocked.</source>
|
||||
<translation>Proxy videos through the Invidious server. This is useful if videos are geoblocked.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always</source>
|
||||
<translation>Always</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Only if needed</source>
|
||||
<translation>Only if needed</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Never</source>
|
||||
<translation>Never</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>SponsorBlock</source>
|
||||
<translation>SponsorBlock</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>SponsorBlock preferences</source>
|
||||
<translation>SponsorBlock preferences</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enabled</source>
|
||||
<translation>Enabled</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable SponsorBlock</source>
|
||||
<translation>Enable SponsorBlock</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show notifications</source>
|
||||
<translation>Show notifications</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show notifications when a segment is skipped</source>
|
||||
<translation>Show notifications when a segment is skipped</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Search History</source>
|
||||
<translation>Search History</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Search history preferences</source>
|
||||
<translation>Search history preferences</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable search history</source>
|
||||
<translation>Enable search history</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clear Search History</source>
|
||||
<translation>Clear Search History</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clear search history from Playlet. This affects the search suggestions. This does not affect the watch history on Invidious.</source>
|
||||
<translation>Clear search history from Playlet. This affects the search suggestions. This does not affect the watch history on Invidious.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Search history cleared.</source>
|
||||
<translation>Search history cleared.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Miscellaneous</source>
|
||||
<translation>Miscellaneous</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Misc. preferences</source>
|
||||
<translation>Misc. preferences</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Edit home screen</source>
|
||||
<translation>Edit home screen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable/disable and reorder sections on the home screen</source>
|
||||
<translation>Enable/disable and reorder sections on the home screen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Queue notifications</source>
|
||||
<translation>Queue notifications</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show a notification when a video is added to the queue</source>
|
||||
<translation>Show a notification when a video is added to the queue</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Developer</source>
|
||||
<translation>Developer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Developer preferences</source>
|
||||
<translation>Developer preferences</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Use dev video player</source>
|
||||
<translation>Use dev video player</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable the dev video player. This is an unfinished video player for testing purposes.</source>
|
||||
<translation>Enable the dev video player. This is an unfinished video player for testing purposes.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playlet Library version</source>
|
||||
<translation>Playlet Library version</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>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.</source>
|
||||
<translation>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.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Press Options (*) for full screen</source>
|
||||
<translation>Press Options (*) for full screen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Video load error</source>
|
||||
<translation>Video load error</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to load video information for %1</source>
|
||||
<translation>Failed to load video information for %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error playing video %1</source>
|
||||
<translation>Error playing video %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error closing video</source>
|
||||
<translation>Error closing video</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Request not sent.</source>
|
||||
<translation>Request not sent.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Request timed out.</source>
|
||||
<translation>Request timed out.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Request cancelled.</source>
|
||||
<translation>Request cancelled.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Reason</source>
|
||||
<translation>Reason</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
@@ -153,6 +153,10 @@
|
||||
<source>Please note that an Invidious account is different from a YouTube account.</source>
|
||||
<translation>Veuillez noter qu'un compte Invidious est différent d'un compte YouTube.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Do you want to exit Playlet?</source>
|
||||
<translation>Voulez-vous quitter Playlet?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Invidious custom instance</source>
|
||||
<translation>Instance personnalisée d'Invidious</translation>
|
||||
@@ -205,10 +209,18 @@
|
||||
<source>No</source>
|
||||
<translation>Non</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Success</source>
|
||||
<translation>Succès</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Refresh</source>
|
||||
<translation>Rafraîchir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Play next video</source>
|
||||
<translation>Lire la vidéo suivante</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Test</source>
|
||||
<translation>Test</translation>
|
||||
@@ -513,5 +525,285 @@
|
||||
<source>UPCOMING</source>
|
||||
<translation>À VENIR</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You currently have no bookmarks.</source>
|
||||
<translation>Actuellement, vous n'avez aucun favori.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>To add bookmarks, long-press 'OK' on a video, playlist or channel.</source>
|
||||
<translation>Pour ajouter des favoris, maintenez enfoncé le bouton 'OK' sur une vidéo, une playlist ou une chaîne.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please note that Bookmarks is an experimental feature.</source>
|
||||
<translation>Veuillez noter que les favoris sont une fonctionnalité expérimentale.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Could not get IP address: are we connected to the internet?</source>
|
||||
<translation>Impossible d'obtenir l'adresse IP: est-on connecté à Internet?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playlet Web App</source>
|
||||
<translation>Application Web Playlet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Use Playlet Remote in the browser</source>
|
||||
<translation>Controller Playlet depuis le navigateur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Link with Wi-Fi</source>
|
||||
<translation>Connecter avec Wi-Fi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Link with TV code</source>
|
||||
<translation>Connecter avec code TV</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cast from the YouTube app to Playlet</source>
|
||||
<translation>Diffusion depuis YouTube vers Playlet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>On your phone, connect to the same Wi-Fi network as this device.</source>
|
||||
<translation>Sur votre téléphone, connectez-vous au même réseau Wi-Fi que cet appareil.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open the YouTube app on your phone.</source>
|
||||
<translation>Ouvrez l'application YouTube sur votre téléphone.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Tap the cast icon and select %1</source>
|
||||
<translation>Appuyez sur l'icône de diffusion et sélectionnez %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Roku connected to:</source>
|
||||
<translation>Roku connecté à :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Wired connection</source>
|
||||
<translation>Connexion filaire</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>On your phone, open the YouTube app.</source>
|
||||
<translation>Sur votre téléphone, ouvrez l'application YouTube.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Tap the cast icon.</source>
|
||||
<translation>Appuyez sur l'icône de diffusion.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Tap 'Link with TV code' and enter the code below.</source>
|
||||
<translation>Appuyez sur "Associer avec un code TV" et entrez le code ci-dessous.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Loading...</source>
|
||||
<translation>Chargement...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TV code error</source>
|
||||
<translation>Erreur de code TV</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to generate manual pairing code</source>
|
||||
<translation>Échec de la génération du code d'appariement manuel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playback</source>
|
||||
<translation>Lecture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playback preferences</source>
|
||||
<translation>Préférences de lecture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Autoplay</source>
|
||||
<translation>Lecture automatique</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>When you finish a video, another plays automatically</source>
|
||||
<translation>Lorsque vous avez terminé une vidéo, une autre se lance automatiquement</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Preferred quality</source>
|
||||
<translation>Qualité préférée</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Preferred video quality</source>
|
||||
<translation>Qualité vidéo préférée</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Auto (DASH)</source>
|
||||
<translation>Auto (DASH)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>720p</source>
|
||||
<translation>720p</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Medium</source>
|
||||
<translation>Moyenne</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Invidious preferences</source>
|
||||
<translation>Préférences Invidious</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Instance</source>
|
||||
<translation>Instance</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Invidious instance to use. Example: https://example.com</source>
|
||||
<translation>Instance Invidious à utiliser. Exemple: https://exemple.com</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Proxy videos</source>
|
||||
<translation>Proxy vidéos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Proxy videos through the Invidious server. This is useful if videos are geoblocked.</source>
|
||||
<translation>Proxy vidéos à travers le serveur Invidious. Ceci est utile si les vidéos sont géobloquées.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always</source>
|
||||
<translation>Toujours</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Only if needed</source>
|
||||
<translation>Uniquement si nécessaire</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Never</source>
|
||||
<translation>Jamais</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>SponsorBlock</source>
|
||||
<translation>SponsorBlock</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>SponsorBlock preferences</source>
|
||||
<translation>Préférences SponsorBlock</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enabled</source>
|
||||
<translation>Activé</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable SponsorBlock</source>
|
||||
<translation>Activer SponsorBlock</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show notifications</source>
|
||||
<translation>Afficher les notifications</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show notifications when a segment is skipped</source>
|
||||
<translation>Afficher les notifications lorsqu'un segment est sauté</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Search History</source>
|
||||
<translation>Historique de recherche</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Search history preferences</source>
|
||||
<translation>Préférences de l'historique de recherche</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable search history</source>
|
||||
<translation>Activer l'historique de recherche</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clear Search History</source>
|
||||
<translation>Effacer l'historique de recherche</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clear search history from Playlet. This affects the search suggestions. This does not affect the watch history on Invidious.</source>
|
||||
<translation>Effacer l'historique de recherche de Playlet. Cela affecte les suggestions de recherche. Cela n'affecte pas l'historique de visionnage sur Invidious.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Search history cleared.</source>
|
||||
<translation>Search history cleared.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Miscellaneous</source>
|
||||
<translation>Divers</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Misc. preferences</source>
|
||||
<translation>Préférences diverses</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Edit home screen</source>
|
||||
<translation>Modifier l'écran d'accueil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable/disable and reorder sections on the home screen</source>
|
||||
<translation>Activer/désactiver et réorganiser les sections sur l'écran d'accueil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Queue notifications</source>
|
||||
<translation>Notifications de file d'attente</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show a notification when a video is added to the queue</source>
|
||||
<translation>Afficher une notification lorsqu'une vidéo est ajoutée à la file d'attente</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Developer</source>
|
||||
<translation>Développeur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Developer preferences</source>
|
||||
<translation>Préférences du développeur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Use dev video player</source>
|
||||
<translation>Utiliser le lecteur vidéo dev</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable the dev video player. This is an unfinished video player for testing purposes.</source>
|
||||
<translation>Activer le lecteur vidéo de dev. Il s'agit d'un lecteur vidéo inachevé à des fins de test.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playlet Library version</source>
|
||||
<translation>Version de Playlet Library</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>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.</source>
|
||||
<translation>La version de Playlet Lib à utiliser. Celles-ci correspondent aux versions taguées sur Github. Les versions qui n'ont pas de fichier playlet-lib.zip sont désactivées.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Press Options (*) for full screen</source>
|
||||
<translation>Appuyez sur Options (*) pour plein écran</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Video load error</source>
|
||||
<translation>Erreur de chargement de la vidéo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to load video information for %1</source>
|
||||
<translation>Échec du chargement des informations de la vidéo pour %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error playing video %1</source>
|
||||
<translation>Erreur de lecture de la vidéo %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error closing video</source>
|
||||
<translation>Erreur lors de la fermeture de la vidéo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Request not sent.</source>
|
||||
<translation>Requête non envoyée.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Request timed out.</source>
|
||||
<translation>Requête expirée.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Request cancelled.</source>
|
||||
<translation>Requête annulée.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Reason</source>
|
||||
<translation>Raison</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
import "pkg:/source/utils/CryptoUtils.bs"
|
||||
import "pkg:/source/utils/ErrorUtils.bs"
|
||||
import "pkg:/source/utils/Locale.bs"
|
||||
import "pkg:/source/utils/Logging.bs"
|
||||
import "pkg:/source/utils/StringUtils.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
@@ -671,13 +672,13 @@ namespace HttpClient
|
||||
m._errorMessage = ""
|
||||
else
|
||||
if m.request._sent <> true
|
||||
m._errorMessage = "Request not sent."
|
||||
m._errorMessage = Tr(Locale.HttpClient.RequestNotSent)
|
||||
else if m.IsTimedOut()
|
||||
m._errorMessage = "Request timed out."
|
||||
m._errorMessage = Tr(Locale.HttpClient.RequestTimedOut)
|
||||
else if m.IsCancelled()
|
||||
m._errorMessage = "Request cancelled."
|
||||
m._errorMessage = Tr(Locale.HttpClient.RequestCancelled)
|
||||
else if type(m.event) = "roUrlEvent"
|
||||
m._errorMessage = `Reason :${m.event.GetFailureReason() }\nStatusCode: ${m.StatusCode()}\nRequestId: ${m.event.GetSourceIdentity()}`
|
||||
m._errorMessage = `${Tr(Locale.HttpClient.Reason)}:${m.event.GetFailureReason() }\nStatusCode: ${m.StatusCode()}\nRequestId: ${m.event.GetSourceIdentity()}`
|
||||
if includeBody
|
||||
m._errorMessage += `\nBody: ${m.event.GetString()}`
|
||||
end if
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace Locale
|
||||
MoveUp = "Move up"
|
||||
MoveDown = "Move down"
|
||||
Refresh = "Refresh"
|
||||
PlayNextVideo = "Play next video"
|
||||
end enum
|
||||
|
||||
@locale
|
||||
@@ -49,12 +50,13 @@ namespace Locale
|
||||
end enum
|
||||
|
||||
@locale
|
||||
enum LoginDialog
|
||||
enum Dialogs
|
||||
LoginToInvidious = "Login to Invidious"
|
||||
IpAddressNotAvailable = "IP address not available"
|
||||
ScanTheQrCode = "Scan the QR code"
|
||||
LoginInstructions1 = "Login to Invidious in order to view Subscriptions, Playlists, and use the Watch history."
|
||||
LoginInstructions2 = "Please note that an Invidious account is different from a YouTube account."
|
||||
ExitPlayletQuestion = "Do you want to exit Playlet?"
|
||||
end enum
|
||||
|
||||
@locale
|
||||
@@ -71,9 +73,10 @@ namespace Locale
|
||||
end enum
|
||||
|
||||
@locale
|
||||
enum Genetic
|
||||
enum Generic
|
||||
Yes = "Yes"
|
||||
No = "No"
|
||||
Success = "Success"
|
||||
end enum
|
||||
|
||||
@locale
|
||||
@@ -170,4 +173,105 @@ namespace Locale
|
||||
Upcoming = "UPCOMING"
|
||||
end enum
|
||||
|
||||
@locale
|
||||
enum Bookmarks
|
||||
YouCurrentlyHaveNoBookmarks = "You currently have no bookmarks."
|
||||
ToAddBookmarksInstructions = "To add bookmarks, long-press 'OK' on a video, playlist or channel."
|
||||
BookmarksAreExperimental = "Please note that Bookmarks is an experimental feature."
|
||||
end enum
|
||||
|
||||
@locale
|
||||
enum RemoteScreen
|
||||
CouldNotGetIpAddress = "Could not get IP address: are we connected to the internet?"
|
||||
|
||||
PlayletWebApp = "Playlet Web App"
|
||||
UsePlayletRemoteInTheBrowser = "Use Playlet Remote in the browser"
|
||||
LinkWithWiFi = "Link with Wi-Fi"
|
||||
LinkWithTvCode = "Link with TV code"
|
||||
CastFromYouTubeAppToPlaylet = "Cast from the YouTube app to Playlet"
|
||||
|
||||
WifiInstruction1 = "On your phone, connect to the same Wi-Fi network as this device."
|
||||
WifiInstruction2 = "Open the YouTube app on your phone."
|
||||
WifiInstruction3 = "Tap the cast icon and select %1"
|
||||
RokuConnectedTo = "Roku connected to:"
|
||||
WiredConnection = "Wired connection"
|
||||
|
||||
TvCodeInstruction1 = "On your phone, open the YouTube app."
|
||||
TvCodeInstruction2 = "Tap the cast icon."
|
||||
TvCodeInstruction3 = "Tap 'Link with TV code' and enter the code below."
|
||||
Loading = "Loading..."
|
||||
TvCodeError = "TV code error"
|
||||
FailedToGeneratePairingCode = "Failed to generate manual pairing code"
|
||||
end enum
|
||||
|
||||
@locale
|
||||
enum Settings
|
||||
Playback = "Playback"
|
||||
PlaybackPreferences = "Playback preferences"
|
||||
Autoplay = "Autoplay"
|
||||
AutoplayDescription = "When you finish a video, another plays automatically"
|
||||
PreferredQuality = "Preferred quality"
|
||||
PreferredQualityDescription = "Preferred video quality"
|
||||
AutoDASH = "Auto (DASH)"
|
||||
Seven20p = "720p"
|
||||
Medium = "Medium"
|
||||
|
||||
' "Invidious" is used as node id, so we can't use it before refactoring node ids.
|
||||
' Either way, Invidious doesn't translate, so it's fine to skip it here
|
||||
' Invidious = "Invidious"
|
||||
InvidiousPreferences = "Invidious preferences"
|
||||
Instance = "Instance"
|
||||
InstanceDescriptionTV = "Invidious instance to use. Example: https://example.com"
|
||||
ProxyVideos = "Proxy videos"
|
||||
ProxyVideosDescription = "Proxy videos through the Invidious server. This is useful if videos are geoblocked."
|
||||
Always = "Always"
|
||||
OnlyIfNeeded = "Only if needed"
|
||||
Never = "Never"
|
||||
|
||||
SponsorBlock = "SponsorBlock"
|
||||
SponsorBlockPreferences = "SponsorBlock preferences"
|
||||
Enabled = "Enabled"
|
||||
EnabledDescription = "Enable SponsorBlock"
|
||||
ShowNotifications = "Show notifications"
|
||||
ShowNotificationsDescription = "Show notifications when a segment is skipped"
|
||||
|
||||
SearchHistory = "Search History"
|
||||
SearchHistoryPreferences = "Search history preferences"
|
||||
EnableSearchHistory = "Enable search history"
|
||||
ClearSearchHistory = "Clear Search History"
|
||||
ClearSearchHistoryDescription = "Clear search history from Playlet. This affects the search suggestions. This does not affect the watch history on Invidious."
|
||||
SearchHistoryCleared = "Search history cleared."
|
||||
|
||||
Miscellaneous = "Miscellaneous"
|
||||
MiscellaneousPreferences = "Misc. preferences"
|
||||
EditHomeScreen = "Edit home screen"
|
||||
EditHomeScreenDescription = "Enable/disable and reorder sections on the home screen"
|
||||
QueueNotifications = "Queue notifications"
|
||||
QueueNotificationsDescription = "Show a notification when a video is added to the queue"
|
||||
|
||||
Developer = "Developer"
|
||||
DeveloperPreferences = "Developer preferences"
|
||||
UseDevVideoPlayer = "Use dev video player"
|
||||
UseDevVideoPlayerDescription = "Enable the dev video player. This is an unfinished video player for testing purposes."
|
||||
PlayletLibraryVersion = "Playlet Library version"
|
||||
PlayletLibraryVersionDescription = "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."
|
||||
end enum
|
||||
|
||||
@locale
|
||||
enum VideoPlayer
|
||||
FullScreenHint = "Press Options (*) for full screen"
|
||||
VideoLoadError = "Video load error"
|
||||
VideoLoadErrorMessage = "Failed to load video information for %1"
|
||||
ErrorPlayingVideo = "Error playing video %1"
|
||||
ErrorClosingVideo = "Error closing video"
|
||||
end enum
|
||||
|
||||
@locale
|
||||
enum HttpClient
|
||||
RequestNotSent = "Request not sent."
|
||||
RequestTimedOut = "Request timed out."
|
||||
RequestCancelled = "Request cancelled."
|
||||
Reason = "Reason"
|
||||
end enum
|
||||
|
||||
end namespace
|
||||
@@ -1,9 +1,13 @@
|
||||
' TODO:P2 Translations left
|
||||
' - Some error messages
|
||||
' - Settings file
|
||||
' - Remote screen
|
||||
' TODO:P2 Translations left:
|
||||
' - Search filters
|
||||
' - Web app
|
||||
' - Loading messages
|
||||
' - Video player
|
||||
' - sponsorblock chapters
|
||||
' - Queue
|
||||
' - SponsorBlock notification
|
||||
' - Device connected notification
|
||||
' - Added to queue notification
|
||||
|
||||
import "pkg:/source/utils/MathUtils.bs"
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import * as xml2js from 'xml2js';
|
||||
import { globSync } from 'glob';
|
||||
import { SGNode } from "brighterscript/dist/parser/SGTypes";
|
||||
|
||||
const allowedXmlAttributes = ["text", "title", "primaryTitle"];
|
||||
const allowedXmlAttributes = ["text", "title", "primaryTitle", "displayText", "description"];
|
||||
|
||||
export class LocaleValidationPlugin implements CompilerPlugin {
|
||||
public name = 'LocaleValidationPlugin';
|
||||
@@ -68,7 +68,7 @@ export class LocaleValidationPlugin implements CompilerPlugin {
|
||||
file.addDiagnostics([{
|
||||
file: file,
|
||||
range: field.range!,
|
||||
message: `Locale value found in xml component: ${value}.`,
|
||||
message: `Locale value found in xml component "${value}" but the attribute "${id}" is not allowed to be localized.`,
|
||||
severity: DiagnosticSeverity.Error,
|
||||
code: 'LOCALE_VALUE_IN_XML',
|
||||
}]);
|
||||
@@ -93,7 +93,7 @@ export class LocaleValidationPlugin implements CompilerPlugin {
|
||||
file.addDiagnostics([{
|
||||
file: file,
|
||||
range: attribute.value.range!,
|
||||
message: `Locale value found in xml component: ${value}.`,
|
||||
message: `Locale value found in xml component: "${value}" but the attribute "${key}" is not allowed to be localized.`,
|
||||
severity: DiagnosticSeverity.Error,
|
||||
code: 'LOCALE_VALUE_IN_XML',
|
||||
}]);
|
||||
|
||||
Reference in new issue
Block a user