Skip to content

Commit 7e03a97

Browse files
committed
Lexical: Ran a deeper check on translation use
1 parent d89a2fd commit 7e03a97

File tree

5 files changed

+6
-21
lines changed

5 files changed

+6
-21
lines changed

lang/en/editor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
'cancel' => 'Cancel',
1414
'save' => 'Save',
1515
'close' => 'Close',
16+
'apply' => 'Apply',
1617
'undo' => 'Undo',
1718
'redo' => 'Redo',
1819
'left' => 'Left',
@@ -147,6 +148,7 @@
147148
'url' => 'URL',
148149
'text_to_display' => 'Text to display',
149150
'title' => 'Title',
151+
'browse_links' => 'Browse links',
150152
'open_link' => 'Open link',
151153
'open_link_in' => 'Open link in...',
152154
'open_link_current' => 'Current window',

resources/js/wysiwyg/todo.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

resources/js/wysiwyg/ui/defaults/buttons/controls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const redo: EditorButtonDefinition = {
5757

5858

5959
export const source: EditorButtonDefinition = {
60-
label: 'Source',
60+
label: 'Source code',
6161
icon: sourceIcon,
6262
async action(context: EditorUiContext) {
6363
const modal = context.manager.createModal('source');

resources/js/wysiwyg/ui/defaults/buttons/objects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export const diagramManager: EditorButtonDefinition = {
165165
};
166166

167167
export const media: EditorButtonDefinition = {
168-
label: 'Insert/edit Media',
168+
label: 'Insert/edit media',
169169
icon: mediaIcon,
170170
action(context: EditorUiContext) {
171171
context.editor.getEditorState().read(() => {

resources/js/wysiwyg/ui/framework/blocks/color-picker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class EditorColorPicker extends EditorUiElement {
6363
const removeButton = el('div', {
6464
class: 'editor-color-select-option',
6565
'data-color': '',
66-
title: 'Clear color',
66+
title: this.getContext().translate('Remove color'),
6767
}, []);
6868
removeButton.innerHTML = removeIcon;
6969
colorOptions.push(removeButton);
@@ -72,7 +72,7 @@ export class EditorColorPicker extends EditorUiElement {
7272
class: 'editor-color-select-option',
7373
for: `color-select-${id}`,
7474
'data-color': '',
75-
title: 'Custom color',
75+
title: this.getContext().translate('Custom color'),
7676
}, []);
7777
selectButton.innerHTML = selectIcon;
7878
colorOptions.push(selectButton);

0 commit comments

Comments
 (0)