本文整理汇总了C#中ContentAPI.DisplayAddViewLanguage方法的典型用法代码示例。如果您正苦于以下问题:C# ContentAPI.DisplayAddViewLanguage方法的具体用法?C# ContentAPI.DisplayAddViewLanguage怎么用?C# ContentAPI.DisplayAddViewLanguage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ContentAPI
的用法示例。
在下文中一共展示了ContentAPI.DisplayAddViewLanguage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ViewToolBar
//.........这里部分代码省略.........
{
if (folder_data.IsDomainFolder)
{
result.Append(m_refStyle.GetButtonEventsWCaption(AppImgPath + "sync_now_data.png", "#", m_refMsg.GetMessage("alt sync content"), m_refMsg.GetMessage("btn sync content"), "OnClick=\"Ektron.Workarea.Sync.Relationships.ShowSyncConfigurations(" + ContentLanguage + "," + m_intFormId + ",\'" + content_data.AssetData.Id + "\',\'" + content_data.AssetData.Version + "\'," + content_data.FolderId + ",true);return false;\"", StyleHelper.SyncButtonCssClass));
}
else
{
result.Append(m_refStyle.GetButtonEventsWCaption(AppImgPath + "sync_now_data.png", "#", m_refMsg.GetMessage("alt sync content"), m_refMsg.GetMessage("btn sync content"), "OnClick=\"Ektron.Workarea.Sync.Relationships.ShowSyncConfigurations(" + ContentLanguage + "," + m_intFormId + ",\'" + content_data.AssetData.Id + "\',\'" + content_data.AssetData.Version + "\'," + content_data.FolderId + ",false);return false;\"", StyleHelper.SyncButtonCssClass));
}
}
}
if (EnableMultilingual == 1)
{
string strViewDisplay = "";
string strAddDisplay = "";
LanguageData[] result_language;
int count = 0;
ContentAPI m_refAPI = new ContentAPI();
if (security_data.CanEdit)
{
result.Append(StyleHelper.ActionBarDivider);
var l10nObj = new Ektron.Cms.Framework.Localization.LocalizationObject();
LocalizationState locState = l10nObj.GetContentLocalizationState(m_intFormId, form_data);
result.Append(m_refStyle.GetTranslationStatusMenu(form_data, m_refMsg.GetMessage("alt click here to update this content translation status"), m_refMsg.GetMessage("lbl mark ready for translation"), locState));
result.Append(m_refStyle.PopupTranslationMenu(form_data, locState));
if (locState.IsExportableState())
{
result.Append(m_refStyle.GetExportTranslationButton((string) ("content.aspx?LangType=" + ContentLanguage + "&action=Localize&id=" + m_intFormId + "&folder_id=" + form_data.FolderId + "&ContentType=" + EkConstants.CMSContentType_Forms + "&callbackpage=cmsform.aspx&parm1=action&value1=ViewForm&parm2=form_id&value2=" + m_intFormId + "&parm3=folder_id&value3=" + form_data.FolderId + "&parm4=LangType&value4=" + ContentLanguage), m_refMsg.GetMessage("alt form trans"), this.m_refMsg.GetMessage("lbl Export for translation")));
}
}
result_language = m_refAPI.DisplayAddViewLanguage(m_intFormId);
for (count = 0; count <= result_language.Length - 1; count++)
{
if (result_language[count].Type == "VIEW")
{
if (form_data.LanguageId == result_language[count].Id)
{
strViewDisplay = strViewDisplay + "<option value=" + result_language[count].Id + " selected=\"selected\">" + result_language[count].Name + "</option>";
}
else
{
strViewDisplay = strViewDisplay + "<option value=" + result_language[count].Id + ">" + result_language[count].Name + "</option>";
}
}
}
bool languageDividerAdded = false;
if (strViewDisplay != "")
{
result.Append(StyleHelper.ActionBarDivider);
languageDividerAdded = true;
result.Append("<td class=\"label\">");
result.Append(m_refMsg.GetMessage("lbl View") + ":");
result.Append("</td>");
result.Append("<td>");
result.Append("<select id=\"viewcontent\" name=\"viewcontent\" onchange=\"LoadContent(\'frmContent\',\'VIEW\');\">");
result.Append(strViewDisplay);
result.Append("</select>");
result.Append("</td>");
}
if (security_data.CanAdd)