Opened 13 years ago

Closed 13 years ago

#197 closed defect (fixed)

"Select Color" dialog not translated (with fix)

Reported by: Paul Baranowski <paul@…> Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version:
Severity: trivial Keywords:
Cc:

Description

The "Select Color" popup is not translated (the only string in this popup is the title). Below is the fix for the Init() function (basically just added the dlg_translate('HTMLArea') line). Another string must be added to all of the translation files: "Select Color".

File: /popups/select_color.html

Run on page load.
function Init() {

Translate the text in this dialog.
dlg_translate('HTMLArea');
This can be found in popup.js.
dlg_init();
document.body.onkeypress = _CloseOnEsc;

var color = window.dialogArguments;

color = ValidateColor?(color)
'000000';

Set the default color.
View(color);

}

Change History (2)

comment:1 Changed 13 years ago by Paul Baranowski <paul@…>

Oops, heres that code again (sorry, getting used to the wiki formatting):

// Run on page load.
function Init() {                                  
  // Translate the text in this dialog.
  __dlg_translate('HTMLArea');
  // This can be found in popup.js.
  __dlg_init();    
  document.body.onkeypress = _CloseOnEsc;

  var color = window.dialogArguments;
  color = ValidateColor(color) || '000000';
  // Set the default color.
  View(color);                                                          
}

comment:2 Changed 13 years ago by niko

  • Resolution set to fixed
  • Status changed from new to closed

commited in changeset:100

Note: See TracTickets for help on using tickets.