Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 无效的条目菜单内翻译 #995

Closed
3 tasks done
Nuclear-Smile opened this issue Nov 2, 2024 · 2 comments
Closed
3 tasks done

[Bug] 无效的条目菜单内翻译 #995

Nuclear-Smile opened this issue Nov 2, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Nuclear-Smile
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Have you checked the FAQ (#6)?

  • I have checked the FAQ

Are you using the latest Zotero and the latest plugin?

  • I have confirmed I'm using the latest Zotero and the latest plugin

Environment

  • OS: windows 11 23h2
  • Zotero Version: 7.0.9
  • Plugin Version: 2.0.5

Describe the bug

问题如下:当我打开pdf并在其中进行查阅时,一切都正常,问题存在于条目菜单中翻译无效。
可以确认的是,插件向翻译服务提供方发送了请求(openai的api显示有使用)但是插件并没能很好的完成条目菜单中对摘要和题目的翻译。
我在复现时先后让它翻译标题和摘要。

Debug Output

[JavaScript Error: "uncaught exception: undefined"]

[JavaScript Error: "The connection was refused when attempting to contact wss://stream.zotero.org/."]

[JavaScript Error: "WebSocket connection closed: 1006 "]

appName => Zotero, version => 7.0.9 (x64), os => Windows 11 22631, locale => zh-CN, extensions => Translate for Zotero (2.0.5, extension)

(3)(+0017426): Viewing item

(3)(+0000001): Refreshing item box

(3)(+0000000): Setting mode to 'edit'

(3)(+0000001): Reloading tags box

(4)(+0000589): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [86, 'https://www.sciencedirect.com/science/article/pii/S1366554524002722']

(4)(+0000002): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [86, 'https://www.sciencedirect.com/science/article/pii/S1366554524002722']

(4)(+0000001): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [86, 'https://www.sciencedirect.com/science/article/pii/S1366554524002722']

(4)(+0000000): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [86, 'https://www.sciencedirect.com/science/article/pii/S1366554524002722']

(4)(+0004345): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [86, 'https://www.sciencedirect.com/science/article/pii/S1366554524002722']

(4)(+0000001): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [86, 'https://www.sciencedirect.com/science/article/pii/S1366554524002722']

(4)(+0000000): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [86, 'https://www.sciencedirect.com/science/article/pii/S1366554524002722']

(4)(+0000001): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [86, 'https://www.sciencedirect.com/science/article/pii/S1366554524002722']

Anything else?

No response

@Nuclear-Smile Nuclear-Smile added the bug Something isn't working label Nov 2, 2024
@Nuclear-Smile
Copy link
Author

关闭issue,原因:原来不是替换原摘要。

@Nuclear-Smile
Copy link
Author

关闭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants