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
+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