Changeset 246


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

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

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/fr.js

    r187 r246  
    113113  "Cell padding:": "Marge interne", 
    114114  "Space between content and border in cell": "Espace entre le contenu et la bordure d'une cellule", 
     115  "You must enter a number of rows": "Vous devez entrez le nombre de lignes", 
     116  "You must enter a number of columns": "Vous devez entrer le nombre de colonnes", 
    115117   
    116118  // Insert Image 
     
    123125  "For browsers that don't support images": "Pour les navigateurs qui ne supportent pas les images", 
    124126  "Positioning of this image": "Position de l'image", 
    125   "Image Preview:": "Prévisualisation" 
     127  "Image Preview:": "Prévisualisation", 
     128  "You must enter the URL": "Vous devez entrer l'URL" 
    126129} 
  • trunk/popups/insert_image.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  __dlg_translate('HTMLArea'); 
    1520  __dlg_init(); 
     21  // Make sure the translated string appears in the drop down. (for gecko) 
     22  document.getElementById("f_align").selectedIndex = 1; 
     23  document.getElementById("f_align").selectedIndex = 5; 
    1624  var param = window.dialogArguments; 
    1725  if (param) { 
     
    2937function onOK() { 
    3038  var required = { 
    31     "f_url": "You must enter the URL" 
     39    "f_url": i18n("You must enter the URL") 
    3240  }; 
    3341  for (var i in required) { 
     
    6169  var url = f_url.value; 
    6270  if (!url) { 
    63     alert("You have to enter an URL first"); 
     71    alert(i18n("You must enter the URL")); 
    6472    f_url.focus(); 
    6573    return false; 
     
    151159 <tr> 
    152160  <td valign="bottom"> 
    153     Image Preview:<br /> 
     161    <div class="fr">Image Preview:</div> 
    154162    <iframe name="ipreview" id="ipreview" frameborder="0" style="border : 1px solid gray;" height="200" width="300" src=""></iframe> 
    155163  </td> 
  • 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.