fix: missing locales
This commit is contained in:
parent
a813b165b7
commit
f241aa33b2
|
|
@ -30,6 +30,10 @@ menuEditor-resizeImage = Resize Image
|
|||
|
||||
templateEditor-templateName = Template Name
|
||||
|
||||
editor-resizeImage-title = Resize Image
|
||||
editor-resizeImage-prompt = Resize image width to:
|
||||
editor-previewImage-title = Preview Image
|
||||
|
||||
tab-name = Note Workspace
|
||||
tab-openInWindow = Drag and drop here to open workspace in new window
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,10 @@ menuEditor-resizeImage=Изменить размер изображения
|
|||
|
||||
templateEditor-templateName = Имя шаблона
|
||||
|
||||
editor-resizeImage-title = Resize Image
|
||||
editor-resizeImage-prompt = Resize image width to:
|
||||
editor-previewImage-title = Preview Image
|
||||
|
||||
tab-name=Рабочее пространство заметок
|
||||
tab-openInWindow=Перетащите сюда для открытия раб. пространства в новом окне
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,10 @@ menuEditor-resizeImage=缩放图片
|
|||
|
||||
templateEditor-templateName = 模板名称
|
||||
|
||||
editor-resizeImage-title = 缩放图片
|
||||
editor-resizeImage-prompt = 缩放图片宽度为:
|
||||
editor-previewImage-title = 预览图片
|
||||
|
||||
tab-name=笔记工作区
|
||||
tab-openInWindow=拖放到此处以在新窗口打开
|
||||
|
||||
|
|
|
|||
|
|
@ -24,12 +24,12 @@ export function initEditorMenu(editor: Zotero.EditorInstance) {
|
|||
tag: "menuitem",
|
||||
id: menuitemID,
|
||||
classList: [config.addonRef],
|
||||
label: getString("menuEditor.resizeImage"),
|
||||
label: getString("menuEditor-resizeImage"),
|
||||
icon: `chrome://${config.addonRef}/content/icons/favicon.png`,
|
||||
commandListener: (ev) => {
|
||||
const newWidth = parseFloat(
|
||||
editor._iframeWindow.prompt(
|
||||
getString("editor.resizeImage.prompt"),
|
||||
getString("editor-resizeImage-prompt"),
|
||||
// @ts-ignore
|
||||
getEditorCore(editor).view.state.selection.node?.attrs?.width,
|
||||
) || "",
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ function updateEditorImagePopup(editor: Zotero.EditorInstance) {
|
|||
id: "image-popup-preview",
|
||||
properties: {
|
||||
innerHTML: ICONS.previewImage,
|
||||
title: getString("editor.previewImage.title"),
|
||||
title: getString("editor-previewImage-title"),
|
||||
},
|
||||
removeIfExists: true,
|
||||
enableElementRecord: false,
|
||||
|
|
@ -233,7 +233,7 @@ function updateEditorImagePopup(editor: Zotero.EditorInstance) {
|
|||
id: "image-popup-resize",
|
||||
properties: {
|
||||
innerHTML: ICONS.resizeImage,
|
||||
title: getString("editor.resizeImage.title"),
|
||||
title: getString("editor-resizeImage-title"),
|
||||
},
|
||||
removeIfExists: true,
|
||||
listeners: [
|
||||
|
|
@ -242,7 +242,7 @@ function updateEditorImagePopup(editor: Zotero.EditorInstance) {
|
|||
listener: (e) => {
|
||||
const newWidth = parseFloat(
|
||||
editor._iframeWindow.prompt(
|
||||
getString("editor.resizeImage.prompt"),
|
||||
getString("editor-resizeImage-prompt"),
|
||||
// @ts-ignore
|
||||
getEditorCore(editor).view.state.selection.node?.attrs
|
||||
?.width,
|
||||
|
|
|
|||
Loading…
Reference in New Issue