Modified Translator Overwritten

I have modified the Wikisource translator to pull the correct information from specific pages on wikisource. Every few weeks this reverts back to the old one. If I uninstall the Chrome extension and add it back again, it usually fixes the problem. Now people in my project that are using Firefox are having the same problem. I imagine this has something to do with a recent update.

The only thing I can figure is that every time Zotero updates it overwrites my translator with the standard one. So, I want to know how to do one of two things:

1. Stop Zotero from overwriting my translator somehow.

or

2. Upload my translator to Zotero so that everyone can befit from this translator, and when things update, it will just update with the translator I wrote.

Are either of these possible? If so, how?
  • 1. Change the translator ID and lower the priority of your custom translator to one below that of the WikiSource translator (otherwise you'll have both and which one runs will be rather random).

    2. Generally yes, via a pull request on the existing translator on https://github.com/zotero/translators. We'd have to obviously evaluate your changes and see if they make sense globally, but generally we're always happy for contributions.
  • How do I change the priority?
  • it's in the header of the translator (or on the data tab of scaffold).
    E.g. https://github.com/guitarzxt/translators/blob/patch-1/Wikisource.js#L8 Line 8 here.
  • Thanks.

    I submitted the three translators to github and made pull requests.

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.