locale for web app (#334)
* locale for web app * more translations * Rename profiles service to avoid locale conflict * More translation work * Lint fix --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
019fde1e67
commit
42dadec020
54 files changed
+538
-151
No files matched your search
@@ -20,10 +20,10 @@ function Init()
|
||||
m.top.observeField("width", FuncName(onWidthChanged))
|
||||
m.top.observeField("padding", FuncName(onPaddingChanged))
|
||||
|
||||
profiles = m.top.getScene().findNode("Profiles")
|
||||
if profiles <> invalid
|
||||
m.profiles = profiles
|
||||
profiles.observeField("currentProfile", FuncName(OnCurrentProfile))
|
||||
profilesService = m.top.getScene().findNode("ProfilesService")
|
||||
if profilesService <> invalid
|
||||
m.profilesService = profilesService
|
||||
profilesService.observeField("currentProfile", FuncName(OnCurrentProfile))
|
||||
OnCurrentProfile()
|
||||
end if
|
||||
end function
|
||||
@@ -91,7 +91,7 @@ function onPaddingChanged()
|
||||
end function
|
||||
|
||||
function OnCurrentProfile() as void
|
||||
currentProfile = m.profiles.currentProfile
|
||||
currentProfile = m.profilesService.currentProfile
|
||||
if currentProfile = invalid
|
||||
m.circlePoster.visible = false
|
||||
m.buttonIcon.visible = true
|
||||
|
||||
Reference in new issue
Block a user