Localization test (#331)
* Localization test * More translations * More translations * Setup the tooling and validation for the localization * More translations * Docs
This commit is contained in:
1 parent
403ed94e97
commit
7d9817994c
36 files changed
+789
-51
No files matched your search
+11
-1
@@ -35,6 +35,16 @@ function Init()
|
||||
m.closeButton.observeField("buttonSelected", FuncName(Close))
|
||||
|
||||
m.checkList.observeField("checkedState", FuncName(OnCheckedStateChange))
|
||||
|
||||
SetButtonPositions()
|
||||
end function
|
||||
|
||||
function SetButtonPositions()
|
||||
saveButtonWidth = m.saveButton.width
|
||||
closeButtonWidth = m.closeButton.width
|
||||
buttonsWith = closeButtonWidth + saveButtonWidth + 20
|
||||
m.saveButton.translation = [960 / 2 - buttonsWith / 2, m.saveButton.translation[1]]
|
||||
m.closeButton.translation = [960 / 2 + buttonsWith / 2 - closeButtonWidth, m.closeButton.translation[1]]
|
||||
end function
|
||||
|
||||
function OnFocusChange() as void
|
||||
@@ -77,7 +87,7 @@ function OnValueChange()
|
||||
end if
|
||||
node = CreateObject("roSGNode", "ContentNode")
|
||||
node.id = feed.id
|
||||
node.title = feed.title
|
||||
node.title = Tr(feed.title)
|
||||
nodes.push(node)
|
||||
checkedState.push(item.enabled)
|
||||
end for
|
||||
|
||||
+4
-2
@@ -27,15 +27,17 @@
|
||||
<ButtonEx
|
||||
id="moveUpButton"
|
||||
iconVisible="false"
|
||||
anchor="[0.5,0.5]"
|
||||
text="Move up"
|
||||
minWidth="220"
|
||||
translation="[640,183]" />
|
||||
translation="[750,220]" />
|
||||
<ButtonEx
|
||||
id="moveDownButton"
|
||||
iconVisible="false"
|
||||
anchor="[0.5,0.5]"
|
||||
text="Move down"
|
||||
minWidth="220"
|
||||
translation="[640,273]" />
|
||||
translation="[750,300]" />
|
||||
|
||||
<ButtonEx
|
||||
id="saveButton"
|
||||
|
||||
+10
@@ -33,6 +33,16 @@ function Init()
|
||||
|
||||
m.currentNavigtionNode = m.editButton
|
||||
m.textEditBox.hintText = `e.g. ${Invidious.DEFAULT_INSTANCE}`
|
||||
|
||||
SetButtonPositions()
|
||||
end function
|
||||
|
||||
function SetButtonPositions()
|
||||
testButtonWidth = m.testButton.width
|
||||
saveButtonWidth = m.saveButton.width
|
||||
buttonsWith = testButtonWidth + saveButtonWidth + 20
|
||||
m.testButton.translation = [960 / 2 - buttonsWith / 2, m.testButton.translation[1]]
|
||||
m.saveButton.translation = [960 / 2 + buttonsWith / 2 - saveButtonWidth, m.saveButton.translation[1]]
|
||||
end function
|
||||
|
||||
function OnFocusChange() as void
|
||||
|
||||
+19
-10
@@ -18,7 +18,9 @@
|
||||
color="#242424">
|
||||
<Label
|
||||
text="Invidious custom instance"
|
||||
translation="[326,13]" />
|
||||
horizAlign="center"
|
||||
width="960"
|
||||
translation="[0,13]" />
|
||||
<TextEditBox
|
||||
id="textEditBox"
|
||||
width="480"
|
||||
@@ -32,24 +34,31 @@
|
||||
iconHeight="22"
|
||||
text="Edit"
|
||||
translation="[670,50]" />
|
||||
<Label
|
||||
text="OR"
|
||||
translation="[460,110]">
|
||||
|
||||
<LayoutGroup
|
||||
layoutDirection="horiz"
|
||||
horizAlignment="center"
|
||||
vertAlignment="center"
|
||||
itemSpacings="[30,30]"
|
||||
translation="[480,125]">
|
||||
<Rectangle
|
||||
width="250"
|
||||
height="1"
|
||||
translation="[-282,10]" />
|
||||
height="1" />
|
||||
|
||||
<Label
|
||||
text="Or" />
|
||||
|
||||
<Rectangle
|
||||
width="250"
|
||||
height="1"
|
||||
translation="[71,10]" />
|
||||
height="1" />
|
||||
|
||||
</Label>
|
||||
</LayoutGroup>
|
||||
|
||||
<Label
|
||||
text="Invidious public instances"
|
||||
translation="[328,145]" />
|
||||
horizAlign="center"
|
||||
width="960"
|
||||
translation="[0,145]" />
|
||||
|
||||
<InvidiousPublicInstances
|
||||
id="instances"
|
||||
|
||||
Reference in new issue
Block a user