Zotero Style Repository - Translators?
Hello all,
I've made some custom translators, that I would like to share within our research group. At the moment, we are donig this by people placing the JS into the right directory. However, it's cumbersome. Can such translators (.js not .csl) be added to the Zotero Style Repository? If yes, how do I submit such translators to the respository.
Thanks!
(Sedgeway from https://github.com/willsALMANJ/Zutilo/issues/129#)
I've made some custom translators, that I would like to share within our research group. At the moment, we are donig this by people placing the JS into the right directory. However, it's cumbersome. Can such translators (.js not .csl) be added to the Zotero Style Repository? If yes, how do I submit such translators to the respository.
Thanks!
(Sedgeway from https://github.com/willsALMANJ/Zutilo/issues/129#)
More importantly, though, translators are technically very different and have security implications that styles do not, so people shouldn't be installing translators from people they don't trust. We're not going to facilitate sharing of custom translators.
Would it be possible to have a gui option for loading a translator.js similar to the way you can add extensions? That would avoid people having to mess with their filesystems and offer an OS-independent way of handling the addition of translators?
Do you know the best place to start for a simple plugin? E.g. a plugin that would provide a "set of translators" (I imagine as some additions to the right-click menu or similar)? (If that's the right way to go?)
You should indeed not look at BBT for an example plugin -- not only is it typescript, but it is a fairly complicated plugin, and you don't need all the stuff I've done to keep that manageable -- for a simple plugin, it's overkill. That said, this line and the next gets my translator from the bundled resources, this installs the translator. Those 3 lines are pure javascript, so those should be usable as-is. The rest of that function you can ignore, I do checks to only re-install the translator when it is changed. For most purposes that's overkill and I would just install it at every start, which I did for a long time.
The process for uninstall is more complicated. You might not want to bother.