Пример #1
0
        private void LoadStrings()
        {
            btnSubmit.Text = Lang.Trans("Submit");
            WideBoxStart1.Title = Lang.Trans("Invite a Friend");

            var inviteFriendTemplate = new EmailTemplates.InviteFriend(LanguageId);
            string value = inviteFriendTemplate.GetFormattedBody(CurrentUserSession.Name);
            value = value.Replace("%%USERNAME%%", CurrentUserSession.Username);
            if (ckeditor != null)
                ckeditor.Text = value;
            if (htmlEditor != null)
                htmlEditor.Content = value;
        }
Пример #2
0
        private void LoadStrings()
        {
            btnSubmit.Text = Lang.Trans("Submit");
            btnImport.Text = "Import".Translate();
            WideBoxStart1.Title = Lang.Trans("Invite friends from your address book");

            var inviteFriendTemplate =
                new EmailTemplates.InviteFriend(LanguageId);
            string value = inviteFriendTemplate.GetFormattedBody(CurrentUserSession.Name);
            value = value.Replace("%%USERNAME%%", CurrentUserSession.Username);
            if (ckeditor != null)
                ckeditor.Text = value;
            else if (htmlEditor != null)
                htmlEditor.Content = value;

            dgContacts.Columns[1].HeaderText = "Name".Translate();
            dgContacts.Columns[2].HeaderText = "Email".Translate();
        }