Possible error in chrome://zotero/content/xpcom/translation/translate.js


When testing out this translator:


I get the following error:

zotero(2): Translate: Translation using Washington Monthly failed:
message => title.indexOf is not a function
fileName => chrome://zotero/content/xpcom/translation/translate.js
lineNumber => 343
stack => ([object Object],[object Proxy])@chrome://zotero/content/xpcom/translation/translate.js:343
([object Proxy])@chrome://zotero/content/xpcom/translation/browser_firefox.js:112

Report ID: 802351434
  • Sorry, should add, this is a URL which, when trying to translate, generates the error:
  • See my post on zotero-dev. This just the error triggered by the missing title.
  • Erik - isn't that just the error Zotero throws when it can't find a title? I get that all the time when testing. Maybe try
    title : FW.Xpath('//div[@class="blogbody"]//p/child::*').text().remove(/\.\.\.\./).capitalizeTitle().trim(),
    For the Blogpost Old title xpath instead -
    but that may have it's own problems - don't have a computer to test at the moment. Generally I'd say let's move this to the dev list to the WM translator thread I opened, no need to bother the general publish with xpath geekyness.
This discussion has been closed.