Ignore:
Timestamp:
06/28/05 03:54:03 (14 years ago)
Author:
mokhet
Message:

fix for ticket #290, insert_image.html and insert_table.html are now 100% translatable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/popups/insert_table.html

    r239 r246  
    1111window.resizeTo(400, 100); 
    1212 
     13HTMLArea = window.opener.HTMLArea; 
     14function i18n(str) { 
     15  return (HTMLArea._lc(str, 'HTMLArea')); 
     16}; 
     17 
    1318function Init() { 
    1419  HTMLArea = window.opener.HTMLArea; // load the HTMLArea plugin and lang file 
    1520  __dlg_translate('HTMLArea'); 
    1621  __dlg_init(); 
     22  // Make sure the translated string appears in the drop down. (for gecko) 
     23  document.getElementById("f_unit").selectedIndex = 1; 
     24  document.getElementById("f_unit").selectedIndex = 0; 
     25  document.getElementById("f_align").selectedIndex = 1; 
     26  document.getElementById("f_align").selectedIndex = 0; 
    1727  document.getElementById("f_rows").focus(); 
    1828}; 
     
    2030function onOK() { 
    2131  var required = { 
    22     "f_rows": "You must enter a number of rows", 
    23     "f_cols": "You must enter a number of columns" 
     32    "f_rows": i18n("You must enter a number of rows"), 
     33    "f_cols": i18n("You must enter a number of columns") 
    2434  }; 
    2535  for (var i in required) { 
Note: See TracChangeset for help on using the changeset viewer.