Changeset 812


Ignore:
Timestamp:
04/12/07 15:36:01 (12 years ago)
Author:
ray
Message:

Ticket #1004 popupwin.js localization error: can't translate ok and cancel buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/Dialogs/popupwin.js

    r723 r812  
    119119    var button = this.doc.createElement("button"); 
    120120    div.appendChild(button); 
    121     button.innerHTML = HTMLArea._lc(btn, 'HTMLArea'); 
     121    button.innerHTML = Xinha._lc(btn, 'Xinha'); 
    122122    switch (btn.toLowerCase()) 
    123123    { 
    124124      case "ok": 
    125         HTMLArea.addDom0Event(button, 'click', 
     125        Xinha.addDom0Event(button, 'click', 
    126126          function() 
    127127          { 
     
    133133      break; 
    134134      case "cancel": 
    135         HTMLArea.addDom0Event(button, 'click', 
     135        Xinha.addDom0Event(button, 'click', 
    136136          function() 
    137137          { 
     
    165165      s.left = parseInt((w - el.offsetWidth) / 2, 10) + "px"; 
    166166      s.top = parseInt((h - el.offsetHeight) / 2, 10) + "px"; 
    167       if (HTMLArea.is_gecko) 
     167      if (Xinha.is_gecko) 
    168168      { 
    169169        self.window.innerWidth = w; 
Note: See TracChangeset for help on using the changeset viewer.