Skip to content

Commit ae6861a

Browse files
committed
add: warning when saving script with ZoteroPane.getSelectedItems
update: deps
1 parent 0002cfb commit ae6861a

File tree

7 files changed

+1873
-3959
lines changed

7 files changed

+1873
-3959
lines changed

addon/locale/en-US/addon.ftl

+2
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ prefs-script-warning = ⚠️ Warning: This script will be executed with full ac
4444
4545
menupopup-label = Trigger Action
4646
menupopup-placeholder = No actions
47+
48+
message-save-action-warning = This script is using `ZoteroPane.getSelectedItems`, which is NOT recommended for getting items in scripts and can lead to unexpected behavior. Please use the `item` or `items` variables passed to the script instead.

addon/locale/it-IT/addon.ftl

+2
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ prefs-script-warning = ⚠️ Attenzione: questo script sarà eseguito con pieno
4343
4444
menupopup-label = Innesca azione
4545
menupopup-placeholder = Nessuna azione
46+
47+
message-save-action-warning = This script is using `ZoteroPane.getSelectedItems`, which is NOT recommended for getting items in scripts and can lead to unexpected behavior. Please use the `item` or `items` variables passed to the script instead.

addon/locale/zh-CN/addon.ftl

+2
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ prefs-script-warning = ⚠️ 警告: 该脚本将在对您计算机具有完全
4444
4545
menupopup-label = 触发动作
4646
menupopup-placeholder = 无可用动作
47+
48+
message-save-action-warning = 此脚本使用了 `ZoteroPane.getSelectedItems`,不建议在脚本中使用该方法获取条目,可能导致意外行为。请使用传递给脚本的 `item` 或 `items` 变量。

0 commit comments

Comments
 (0)