Split locale enum, add duplicate values validation

This commit is contained in:
Brahim Hadriche committed 2024-03-18 09:21:42 -04:00
1 parent 7d9817994c
commit 48993dd9f5
7 files changed
+88 -55

No files matched your search

@@ -39,7 +39,7 @@ function OnNodeready()
SetNavigation(m.rowList, "up", m.subscribeButton)
SetNavigation(m.subscribeButton, "down", m.rowList)
m.subscribeButton.text = Tr(Locale.Subscribe)
m.subscribeButton.text = Tr(Locale.Buttons.Subscribe)
DisposableObserveFieldScoped(m.subscribeButton, "buttonSelected", FuncName(OnSubscribeButtonSelected))
SetSubscribeButtonVisibility()
@@ -300,9 +300,9 @@ end function
function OnSubscriptionChanged()
isSubbed = IsSubscribed()
if isSubbed
m.subscribeButton.text = Tr(Locale.Unsubscribe)
m.subscribeButton.text = Tr(Locale.Buttons.Unsubscribe)
else
m.subscribeButton.text = Tr(Locale.Subscribe)
m.subscribeButton.text = Tr(Locale.Buttons.Subscribe)
end if
end function