mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Add editing fluent strings without attached keyboard shortcuts
This commit is contained in:
parent
e95e78da9c
commit
4a264cd8b7
5 changed files with 36 additions and 22 deletions
|
@ -2,14 +2,14 @@ editing-add-media = Add Media
|
||||||
editing-align-left = Align left
|
editing-align-left = Align left
|
||||||
editing-align-right = Align right
|
editing-align-right = Align right
|
||||||
editing-an-error-occurred-while-opening = An error occurred while opening { $val }
|
editing-an-error-occurred-while-opening = An error occurred while opening { $val }
|
||||||
editing-attach-picturesaudiovideo-f3 = Attach pictures/audio/video (F3)
|
editing-attach-picturesaudiovideo = Attach pictures/audio/video
|
||||||
editing-bold-text-ctrlandb = Bold text (Ctrl+B)
|
editing-bold-text = Bold text
|
||||||
editing-cards = Cards
|
editing-cards = Cards
|
||||||
editing-center = Center
|
editing-center = Center
|
||||||
editing-change-colour-f8 = Change colour (F8)
|
editing-change-color = Change color
|
||||||
editing-cloze-deletion-ctrlandshiftandc = Cloze deletion (Ctrl+Shift+C)
|
editing-cloze-deletion = Cloze deletion
|
||||||
editing-couldnt-record-audio-have-you-installed = Couldn't record audio. Have you installed 'lame'?
|
editing-couldnt-record-audio-have-you-installed = Couldn't record audio. Have you installed 'lame'?
|
||||||
editing-customize-card-templates-ctrlandl = Customize Card Templates (Ctrl+L)
|
editing-customize-card-templates = Customize Card Templates
|
||||||
editing-customize-fields = Customize Fields
|
editing-customize-fields = Customize Fields
|
||||||
editing-cut = Cut
|
editing-cut = Cut
|
||||||
editing-edit-current = Edit Current
|
editing-edit-current = Edit Current
|
||||||
|
@ -17,7 +17,7 @@ editing-edit-html = Edit HTML
|
||||||
editing-fields = Fields
|
editing-fields = Fields
|
||||||
editing-html-editor = HTML Editor
|
editing-html-editor = HTML Editor
|
||||||
editing-indent = Increase indent
|
editing-indent = Increase indent
|
||||||
editing-italic-text-ctrlandi = Italic text (Ctrl+I)
|
editing-italic-text = Italic text
|
||||||
editing-jump-to-tags-with-ctrlandshiftandt = Jump to tags with Ctrl+Shift+T
|
editing-jump-to-tags-with-ctrlandshiftandt = Jump to tags with Ctrl+Shift+T
|
||||||
editing-justify = Justify
|
editing-justify = Justify
|
||||||
editing-latex = LaTeX
|
editing-latex = LaTeX
|
||||||
|
@ -30,14 +30,28 @@ editing-media = Media
|
||||||
editing-ordered-list = Ordered list
|
editing-ordered-list = Ordered list
|
||||||
editing-outdent = Decrease indent
|
editing-outdent = Decrease indent
|
||||||
editing-paste = Paste
|
editing-paste = Paste
|
||||||
editing-record-audio-f5 = Record audio (F5)
|
editing-record-audio = Record audio
|
||||||
editing-remove-formatting-ctrlandr = Remove formatting (Ctrl+R)
|
editing-remove-formatting = Remove formatting
|
||||||
editing-set-foreground-colour-f7 = Set foreground colour (F7)
|
editing-set-foreground-color = Set foreground color
|
||||||
editing-show-duplicates = Show Duplicates
|
editing-show-duplicates = Show Duplicates
|
||||||
editing-subscript-ctrland = Subscript (Ctrl+=)
|
editing-subscript = Subscript
|
||||||
editing-superscript-ctrlandand = Superscript (Ctrl++)
|
editing-superscript = Superscript
|
||||||
editing-tags = Tags
|
editing-tags = Tags
|
||||||
editing-to-make-a-cloze-deletion-on = To make a cloze deletion on an existing note, you need to change it to a cloze type first, via 'Notes>Change Note Type'
|
editing-to-make-a-cloze-deletion-on = To make a cloze deletion on an existing note, you need to change it to a cloze type first, via 'Notes>Change Note Type'
|
||||||
editing-underline-text-ctrlandu = Underline text (Ctrl+U)
|
editing-underline-text = Underline text
|
||||||
editing-unordered-list = Unordered list
|
editing-unordered-list = Unordered list
|
||||||
editing-warning-cloze-deletions-will-not-work = Warning, cloze deletions will not work until you switch the type at the top to Cloze.
|
editing-warning-cloze-deletions-will-not-work = Warning, cloze deletions will not work until you switch the type at the top to Cloze.
|
||||||
|
|
||||||
|
### deprecated, do not use
|
||||||
|
editing-bold-text-ctrlandb = Bold text (Ctrl+B)
|
||||||
|
editing-italic-text-ctrlandi = Italic text (Ctrl+I)
|
||||||
|
editing-underline-text-ctrlandu = Underline text (Ctrl+U)
|
||||||
|
editing-subscript-ctrland = Subscript (Ctrl+=)
|
||||||
|
editing-superscript-ctrlandand = Superscript (Ctrl++)
|
||||||
|
editing-remove-formatting-ctrlandr = Remove formatting (Ctrl+R)
|
||||||
|
editing-record-audio-f5 = Record audio (F5)
|
||||||
|
editing-attach-picturesaudiovideo-f3 = Attach pictures/audio/video (F3)
|
||||||
|
editing-cloze-deletion-ctrlandshiftandc = Cloze deletion (Ctrl+Shift+C)
|
||||||
|
editing-change-colour-f8 = Change colour (F8)
|
||||||
|
editing-set-foreground-colour-f7 = Set foreground colour (F7)
|
||||||
|
editing-customize-card-templates-ctrlandl = Customize Card Templates (Ctrl+L)
|
||||||
|
|
|
@ -48,7 +48,7 @@ export function getClozeButton(): DynamicSvelteComponent<typeof WithShortcuts> &
|
||||||
button: iconButton({
|
button: iconButton({
|
||||||
icon: bracketsIcon,
|
icon: bracketsIcon,
|
||||||
onClick: onCloze,
|
onClick: onCloze,
|
||||||
tooltip: tr.editingClozeDeletionCtrlandshiftandc(),
|
tooltip: tr.editingClozeDeletion(),
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ export function getColorGroup(): DynamicSvelteComponent<typeof ButtonGroup> &
|
||||||
icon: squareFillIcon,
|
icon: squareFillIcon,
|
||||||
className: "forecolor",
|
className: "forecolor",
|
||||||
onClick: () => wrapWithForecolor(getForecolor()),
|
onClick: () => wrapWithForecolor(getForecolor()),
|
||||||
tooltip: tr.editingSetForegroundColourF7(),
|
tooltip: tr.editingSetForegroundColor(),
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ export function getColorGroup(): DynamicSvelteComponent<typeof ButtonGroup> &
|
||||||
button: colorPicker({
|
button: colorPicker({
|
||||||
onChange: ({ currentTarget }) =>
|
onChange: ({ currentTarget }) =>
|
||||||
setForegroundColor((currentTarget as HTMLInputElement).value),
|
setForegroundColor((currentTarget as HTMLInputElement).value),
|
||||||
tooltip: tr.editingChangeColourF8(),
|
tooltip: tr.editingChangeColor(),
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ export function getFormatInlineGroup(): DynamicSvelteComponent<typeof ButtonGrou
|
||||||
shortcuts: ["Control+KeyB"],
|
shortcuts: ["Control+KeyB"],
|
||||||
button: commandIconButton({
|
button: commandIconButton({
|
||||||
icon: boldIcon,
|
icon: boldIcon,
|
||||||
tooltip: tr.editingBoldTextCtrlandb(),
|
tooltip: tr.editingBoldText(),
|
||||||
command: "bold",
|
command: "bold",
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
@ -34,7 +34,7 @@ export function getFormatInlineGroup(): DynamicSvelteComponent<typeof ButtonGrou
|
||||||
shortcuts: ["Control+KeyI"],
|
shortcuts: ["Control+KeyI"],
|
||||||
button: commandIconButton({
|
button: commandIconButton({
|
||||||
icon: italicIcon,
|
icon: italicIcon,
|
||||||
tooltip: tr.editingItalicTextCtrlandi(),
|
tooltip: tr.editingItalicText(),
|
||||||
command: "italic",
|
command: "italic",
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
@ -43,7 +43,7 @@ export function getFormatInlineGroup(): DynamicSvelteComponent<typeof ButtonGrou
|
||||||
shortcuts: ["Control+KeyU"],
|
shortcuts: ["Control+KeyU"],
|
||||||
button: commandIconButton({
|
button: commandIconButton({
|
||||||
icon: underlineIcon,
|
icon: underlineIcon,
|
||||||
tooltip: tr.editingUnderlineTextCtrlandu(),
|
tooltip: tr.editingUnderlineText(),
|
||||||
command: "underline",
|
command: "underline",
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
@ -52,7 +52,7 @@ export function getFormatInlineGroup(): DynamicSvelteComponent<typeof ButtonGrou
|
||||||
shortcuts: ["Control+Shift+Equal"],
|
shortcuts: ["Control+Shift+Equal"],
|
||||||
button: commandIconButton({
|
button: commandIconButton({
|
||||||
icon: superscriptIcon,
|
icon: superscriptIcon,
|
||||||
tooltip: tr.editingSuperscriptCtrlandand(),
|
tooltip: tr.editingSuperscript(),
|
||||||
command: "superscript",
|
command: "superscript",
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
@ -61,7 +61,7 @@ export function getFormatInlineGroup(): DynamicSvelteComponent<typeof ButtonGrou
|
||||||
shortcuts: ["Control+Equal"],
|
shortcuts: ["Control+Equal"],
|
||||||
button: commandIconButton({
|
button: commandIconButton({
|
||||||
icon: subscriptIcon,
|
icon: subscriptIcon,
|
||||||
tooltip: tr.editingSubscriptCtrland(),
|
tooltip: tr.editingSubscript(),
|
||||||
command: "subscript",
|
command: "subscript",
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
@ -70,7 +70,7 @@ export function getFormatInlineGroup(): DynamicSvelteComponent<typeof ButtonGrou
|
||||||
shortcuts: ["Control+KeyR"],
|
shortcuts: ["Control+KeyR"],
|
||||||
button: iconButton({
|
button: iconButton({
|
||||||
icon: eraserIcon,
|
icon: eraserIcon,
|
||||||
tooltip: tr.editingRemoveFormattingCtrlandr(),
|
tooltip: tr.editingRemoveFormatting(),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
document.execCommand("removeFormat");
|
document.execCommand("removeFormat");
|
||||||
},
|
},
|
||||||
|
|
|
@ -21,7 +21,7 @@ export function getNotetypeGroup(): DynamicSvelteComponent<typeof ButtonGroup> &
|
||||||
onClick: () => bridgeCommand("cards"),
|
onClick: () => bridgeCommand("cards"),
|
||||||
disables: false,
|
disables: false,
|
||||||
label: `${tr.editingCards()}...`,
|
label: `${tr.editingCards()}...`,
|
||||||
tooltip: tr.editingCustomizeCardTemplatesCtrlandl(),
|
tooltip: tr.editingCustomizeCardTemplates(),
|
||||||
});
|
});
|
||||||
|
|
||||||
return buttonGroup({
|
return buttonGroup({
|
||||||
|
|
Loading…
Reference in a new issue