Traslating OK/Cancel buttons
How can I translate OK/Cancel buttons in zotero dialogs to another language?
For example:
(file: integration.js)
me._doc.displayAlert(msg,Components.interfaces.zoteroIntegrationDocument.DIALOG_ICON_CAUTION,
Components.interfaces.zoteroIntegrationDocument.DIALOG_BUTTONS_OK_CANCEL)
For example:
(file: integration.js)
me._doc.displayAlert(msg,Components.interfaces.zoteroIntegrationDocument.DIALOG_ICON_CAUTION,
Components.interfaces.zoteroIntegrationDocument.DIALOG_BUTTONS_OK_CANCEL)
if(!this._doc.displayAlert(Zotero.getString("integration.replace"),
Components.interfaces.zoteroIntegrationDocument.DIALOG_ICON_STOP,
Components.interfaces.zoteroIntegrationDocument.DIALOG_BUTTONS_OK_CANCEL)) {
throw new Zotero.Integration.UserCancelledException;
}
My intuition relies on the fact that, usually, localization is firefox-dependent but, in this case, changing the firefox language does not change anything.