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)
  • http://www.zotero.org/support/dev/localization
    Translation efforts for the Zotero client exist for over 40 languages, but many languages are still incomplete. To help localizing the Zotero client in your favorite language, sign up for free at https://www.transifex.net, go to the Transifex Zotero project page, and join a language translator team.
  • I personally translated all that file to Persian, but OK and Cancel are displayed in English yet. Which line should be translated for "DIALOG_BUTTONS_OK_CANCEL" ?
  • Ok. I think the localization of these buttons depends on your word processor (ms word, libre office).
  • edited September 11, 2012
    As I posted a portion of code, such dialogs are in firefox:

    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;
    }
  • A dev would have to comment.
    My intuition relies on the fact that, usually, localization is firefox-dependent but, in this case, changing the firefox language does not change anything.
  • What's an example of such a dialog (the message text, not the code)?
  • There is example: https://www.dropbox.com/sh/7yh6l8xq79ti2t2/iaXxUHBmQM/Zotero/Neversta#lh:null-Zotero%20-%20Cancel%20and%20OK%20buttons%20in%20LibreOffice.png
Sign In or Register to comment.