Added support for hierarchy levels.
This commit is contained in:
parent
8afdea0354
commit
2bc4805910
@ -187,6 +187,14 @@ namespace Metadata_Translator
|
|||||||
Descriptions.Add(CreateRow(new MetadataObjectContainer(hierarchy, TranslatedProperty.Description), hierarchy.Description, DefaultCulture, cultures));
|
Descriptions.Add(CreateRow(new MetadataObjectContainer(hierarchy, TranslatedProperty.Description), hierarchy.Description, DefaultCulture, cultures));
|
||||||
if (!string.IsNullOrEmpty(hierarchy.DisplayFolder))
|
if (!string.IsNullOrEmpty(hierarchy.DisplayFolder))
|
||||||
DisplayFolders.AddDisplayFolder(hierarchy, hierarchy.DisplayFolder, DefaultCulture, cultures);
|
DisplayFolders.AddDisplayFolder(hierarchy, hierarchy.DisplayFolder, DefaultCulture, cultures);
|
||||||
|
|
||||||
|
foreach(Level level in hierarchy.Levels)
|
||||||
|
{
|
||||||
|
Captions.Add(CreateRow(new MetadataObjectContainer(level, TranslatedProperty.Caption), level.Name, DefaultCulture, cultures));
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(level.Description))
|
||||||
|
Descriptions.Add(CreateRow(new MetadataObjectContainer(level, TranslatedProperty.Description), level.Description, DefaultCulture, cultures));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user