Olivier,
If you do it like this, it should work:
Private Function LocalizeTab(ByVal objTab As DotNetNuke.Entities.Tabs.TabInfo) As DotNetNuke.Entities.Tabs.TabInfo
Try
Dim objLocalization As Object 'Apollo.DNN_Localization.LocalizeTab
objLocalization = System.Activator.CreateInstance("Apollo.LocalizationApi", "Apollo.DNN_Localization.LocalizeTab").Unwrap ' New Apollo.DNN_Localization.LocalizeTab
Return objLocalization.getLocalizedTab(objTab)
Catch exc As Exception
Return objTab
End Try
End Function
(you might need to set Option Strict to OFF for your project though). This function will always return a TabInfo object, wether PageLocalization is available or not. All you need to do further on is to pass your original TabInfo object to this function, and you will get the localized in return...
cheers,
Erik