private void AddTemplateDescriptions(IProject project, XmlElement template)
{
XmlElement templateDescriptions = template.AddElement("TEMPLATEDESCRIPTIONS");
foreach (ILanguageVariant languageVariant in project.LanguageVariants)
{
XmlElement templateDescription = templateDescriptions.AddElement("TEMPLATEDESCRIPTION");
templateDescription.AddAttribute("dialoglanguageid", languageVariant.Abbreviation);
templateDescription.AddAttribute("name", Name);
if (!string.IsNullOrEmpty(DescriptionInCurrentDisplayLanguage))
{
templateDescription.AddAttribute("description", DescriptionInCurrentDisplayLanguage);
}
}
}