Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
translator_best_practices [2007/11/04 01:37] – dstillman | dev:translator_best_practices [2011/07/29 03:03] – replace with redirect ajlyon |
---|
When writing translators, using the [[/documentation/debug_output|debug console]] is essential. Any output from the translator can be dumped to the debug console using <code>Zotero.Utilities.debug("hello world!");</code> | See [[dev:translators#recommendations_for_translator_authors|Recommendations for translator authors]] and [[dev:translators:coding|Translator Coding]]. |
| |
The functions ''Zotero.Utilities.HTTP.doGet'' and ''Zotero.Utilities.processDocuments'' run asynchronously. In order to allow them to complete before moving along, follow either function with ''Zotero.wait()'' and include ''Zotero.done()'' as the onDone in order to signal the translator that it has completed its asynchronous operations. | |