I have a custom menu I wrote in VB. I cannot seem to get the Localized tabname. The default (English) name is always returned. How do I get the Localized tab name programmatically? This is the code I'm using to test:
(The hack is installed and pages that use the default DNN nav work fine. Just my custom menu is stuck in English.)
Thanks!
Private Function getTabName(ByVal tabid as Integer) As String
Dim ret as String = ""
Dim ps as New PortalSettings
ps = DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings()
Dim tab As DotNetNuke.Entities.Tabs.TabInfo = Nothing
' find the tab that matches the given tabid
For intIndex As Integer = 0 To ps.DesktopTabs.Count - 1
tab = CType(ps.DesktopTabs(intIndex), Entities.Tabs.TabInfo)
If tab.TabID = tabid Then
ret = tab.tabname '--always returns English/default
End if
Next
return ret
End Function