Ticket #197 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

"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

Changed 8 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);                                                          
}

Changed 8 years ago by niko

  • status changed from new to closed
  • resolution set to fixed

commited in changeset:100

Note: See TracTickets for help on using tickets.