Changeset 715 for trunk/plugins/Forms


Ignore:
Timestamp:
02/07/07 19:12:42 (13 years ago)
Author:
htanaka
Message:

Ticket #939 Japanese translation finished.
fix translation capability of Forms,FormOperations?,InsertMarquee? and NoteServer?.
append Japanese to language option in ext_example page.
(Forms became silent in updating properties, and fixed <FORM> tag update problem.)

Location:
trunk/plugins/Forms
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Forms/forms.js

    r677 r715  
    1818      var id = btn[0]; 
    1919      if (i<3) 
    20         cfg.registerButton(id, HTMLArea._lc(btn[1]), editor.imgURL("ed_" + btn[0] + ".gif", "Forms"), false, 
     20        cfg.registerButton(id, this._lc(btn[1]), editor.imgURL("ed_" + btn[0] + ".gif", "Forms"), false, 
    2121             function(editor, id) { 
    2222               // dispatch button press event 
     
    2424             }); 
    2525      else 
    26         cfg.registerButton(id, HTMLArea._lc(btn[1]), editor.imgURL("ed_" + btn[0] + ".gif", "Forms"), false, 
     26        cfg.registerButton(id, this._lc(btn[1]), editor.imgURL("ed_" + btn[0] + ".gif", "Forms"), false, 
    2727             function(editor, id) { 
    2828               // dispatch button press event 
     
    124124        if(frm) { 
    125125          frm.name = param["f_name"]; 
    126           setAttr(frm, "action", param["f_action"]); 
    127           setAttr(frm, "method", param["f_method"]); 
    128           setAttr(frm, "enctype",param["f_enctype"]); 
    129           setAttr(frm, "target", param["f_target"]); 
     126          frm.setAttribute("action", param["f_action"]); 
     127          frm.setAttribute("method", param["f_method"]); 
     128          frm.setAttribute("enctype",param["f_enctype"]); 
     129          frm.setAttribute("target", param["f_target"]); 
    130130        } else { 
    131131          frm = '<form name="' + param["f_name"] + '"'; 
     
    293293          //prepare existing Element 
    294294          for (field in param) { 
    295             alert(field.substring(2,20) + '=' + param[field]); 
     295            //alert(field.substring(2,20) + '=' + param[field]);  //to be silent! by htanaka 
    296296            if ((field=="f_text") || (field=="f_options") || (field=="f_onclick") || (field=="f_checked"))continue; 
    297297            if (param[field] != "") 
  • trunk/plugins/Forms/popups/form.html

    r677 r715  
    2828          var el = document.getElementById(i); 
    2929          if (!el.value) { 
    30                 alert(required[i]); 
     30                alert(HTMLArea._lc(required[i],"Forms")); 
    3131                el.focus(); 
    3232                return false; 
  • trunk/plugins/Forms/popups/input.html

    r677 r715  
    1414        var param = window.dialogArguments; 
    1515  type = param.f_type; 
    16   document.getElementById("f_type").innerHTML = 'Form Element: INPUT (' + type + ')'; 
     16  document.getElementById("f_type").innerHTML = HTMLArea._lc('Form Element: INPUT', "Forms") + '(' + type + ')'; 
    1717  document.getElementById("txt").style.display = "none"; 
    1818  document.getElementById("chk").style.display = "none"; 
     
    7878        var el = document.getElementById("f_name"); 
    7979        if (!el.value) { 
    80         alert("You must enter a Name"); 
     80                alert(HTMLArea._lc("You must enter a Name","Forms")); 
    8181                el.focus(); 
    8282          return false; 
  • trunk/plugins/Forms/popups/select.html

    r677 r715  
    3434        var el = document.getElementById("f_name"); 
    3535        if (!el.value) { 
    36         alert("You must enter a Name"); 
     36                alert(HTMLArea._lc("You must enter a Name","Forms")); 
    3737                el.focus(); 
    3838          return false; 
     
    8585function addItem(item) { 
    8686        var d = document; 
    87         if (item.f_optiontext.value =="") {alert("Please enter a Label");} 
     87        if (item.f_optiontext.value =="") {alert(HTMLArea._lc("Please enter a Label","Forms"));} 
    8888        else {  
    8989                if (d.getElementById("f_select").options.selectedIndex != -1) { //update item 
  • trunk/plugins/Forms/popups/textarea.html

    r677 r715  
    3030        var el = document.getElementById("f_name"); 
    3131        if (!el.value) { 
    32         alert("You must enter a Name"); 
     32                alert(HTMLArea._lc("You must enter a Name","Forms")); 
    3333                el.focus(); 
    3434          return false; 
Note: See TracChangeset for help on using the changeset viewer.