Ok, I solved it. I used the following method, please tell me if it is the correct approach.
public static DotNetNuke.Entities.Tabs.TabInfo GetTabByLanguage(string tabname, DotNetNuke.Entities.Portals.PortalSettings pset)
{
DotNetNuke.Entities.Tabs.TabController tc = new DotNetNuke.Entities.Tabs.TabController();
return GetTabByLanguage(tc.GetTabByName(tabname, pset.PortalId).TabID, pset);
}
public static DotNetNuke.Entities.Tabs.TabInfo GetTabByLanguage(int tabid, DotNetNuke.Entities.Portals.PortalSettings pset)
{
DotNetNuke.Entities.Tabs.TabController tc = new DotNetNuke.Entities.Tabs.TabController();
DotNetNuke.Services.Localization.Locale locale = DotNetNuke.Services.Localization.LocaleController.Instance.GetLocale(pset.CultureCode);
return tc.GetTabByCulture(tabid, pset.PortalId, locale);
}