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
@@ -21,8 +21,8 @@ function OnNodeReady()
|
||||
SetNavigation(m.closeButton, "up", m.logoutButton)
|
||||
SetNavigation(m.logoutButton, "up", m.activateButton)
|
||||
|
||||
DisposableObserveFieldScoped(m.profiles, "currentProfile", FuncName(OnCunrrentProfileChanged))
|
||||
DisposableObserveFieldScoped(m.profiles, "onProfileLogout", FuncName(OnProfileLogout))
|
||||
DisposableObserveFieldScoped(m.profilesService, "currentProfile", FuncName(OnCunrrentProfileChanged))
|
||||
DisposableObserveFieldScoped(m.profilesService, "onProfileLogout", FuncName(OnProfileLogout))
|
||||
end function
|
||||
|
||||
function OnContentSet() as void
|
||||
@@ -81,13 +81,13 @@ function Activate() as void
|
||||
return
|
||||
end if
|
||||
|
||||
profile = m.profiles.content.getChild(0).findNode(content.id)
|
||||
profile = m.profilesService.content.getChild(0).findNode(content.id)
|
||||
if profile = invalid
|
||||
return
|
||||
end if
|
||||
|
||||
m.top.content = invalid
|
||||
m.profiles@.SetCurrentProfile(profile)
|
||||
m.profilesService@.SetCurrentProfile(profile)
|
||||
Close()
|
||||
end function
|
||||
|
||||
@@ -98,7 +98,7 @@ function Logout() as void
|
||||
end if
|
||||
|
||||
m.top.content = invalid
|
||||
m.profiles@.LogoutWithProfile(content)
|
||||
m.profilesService@.LogoutWithProfile(content)
|
||||
Close()
|
||||
end function
|
||||
|
||||
@@ -127,7 +127,7 @@ function OnProfileLogout() as void
|
||||
return
|
||||
end if
|
||||
|
||||
profile = m.profiles.content.getChild(0).findNode(content.id)
|
||||
profile = m.profilesService.content.getChild(0).findNode(content.id)
|
||||
if profile = invalid
|
||||
Close()
|
||||
end if
|
||||
|
||||
Reference in new issue
Block a user