Custom Dialog Localization

Last post 12-12-2008, 4:19 AM by kosgia. 2 replies.
Sort Posts: Previous Next
  •  12-11-2008, 5:56 PM 46840

    Custom Dialog Localization

    Hi, i am in the process of evaluating Cute Editor for my needs. I have created a custom dialog window and a custom button that opens the dialog. Now i need to localize the custom dialog. For example there is an insert button in my dialog form. How could i set the button's text to the resourse i have created in the appropriate language xml file? I tried to use something like :
    <input class="formbutton" type="button" value="[[Insert]]" onclick="insertEquation();" />

    but it doesn't work.
    However calling

    override protected void OnInit(EventArgs args)

       {

          if(Context.Request.QueryString["Dialog"]=="Standard")

          {

             if(Context.Request.QueryString["IsFrame"]==null)

             {

                string FrameSrc = "WebEq.aspx?IsFrame=1&" + Request.ServerVariables["QUERY_STRING"];

                CuteEditor.CEU.WriteDialogOuterFrame(Context, "[[WebEqDialogTitle]]", FrameSrc);

                Context.Response.End();

             }

          }

          base.OnInit(args);

       }
    seems to work fine for the form's title.
    Filed under:
  •  12-11-2008, 6:30 PM 46841 in reply to 46840

    Re: Custom Dialog Localization

    If you want cute editor translates the above text for you automaticaly, the dialog should inherit the CuteEditor.EditorUtilityPage class.

    For example:

    <%@ Page Language="C#" Inherits="CuteEditor.EditorUtilityPage" %>

    Hope it helps.


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  12-12-2008, 4:19 AM 46848 in reply to 46841

    Re: Custom Dialog Localization

    Thanks Adam, that worked fine.
View as RSS news feed in XML