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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user