Hi,
I have found the solution myself. Hereby i want to share the code:
private TabInfo GetLocalizedTab(TabInfo tabInfo)
{
TabInfo result = tabInfo;
try
{
object o = System.Activator.CreateInstance("Apollo.LocalizationApi", "Apollo.DNN_Localization.LocalizeTab").Unwrap();
if (o != null)
{
Type t = o.GetType();
MethodInfo m = t.GetMethod("getLocalizedTab", BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy, null, new Type[] { typeof(TabInfo) }, new ParameterModifier[0]);
if (m != null)
result = (TabInfo)m.Invoke(null, new object[] { tabInfo });
}
}
catch { }
return result;
}
This code uses reflextion because the posibility excists that the user doesn't have the Apollo.LocalizationApi.dll file.
PS: Sorry I started a new treat! it was ment to be a reply.
Dieter