/// <summary> /// Processes action /// </summary> /// <param name="siteName">Site name</param> private void UpdateStatuses(string siteName) { var error = TranslationServiceHelper.CheckAndDownloadTranslations(siteName); // Set result of the action ctlAsync.Parameter = GetParameter(UPDATE_STATUSES_ACTION, error, null); }
protected void btnUpdateStatuses_Click(object sender, EventArgs e) { if (!CMSContext.CurrentUser.IsAuthorizedPerResource("CMS.TranslationServices", "Modify")) { RedirectToAccessDenied("CMS.TranslationServices", "Modify"); } string err = TranslationServiceHelper.CheckAndDownloadTranslations(CMSContext.CurrentSiteName); if (!string.IsNullOrEmpty(err)) { ShowError(err); } }