Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 1fa84e9

Browse files
authored
Merge pull request #446 from ckeditor/t/445
Fix: Made the `Edit block` string translatable. Closes #445.
2 parents 35d1ced + a842366 commit 1fa84e9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lang/contexts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"Rich Text Editor, %0": "Title of the CKEditor5 editor.",
3-
"Rich Text Editor": "Title of the CKEditor5 editor."
3+
"Rich Text Editor": "Title of the CKEditor5 editor.",
4+
"Edit block": "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
45
}

src/toolbar/block/blocktoolbar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,11 @@ export default class BlockToolbar extends Plugin {
208208
*/
209209
_createButtonView() {
210210
const editor = this.editor;
211+
const t = editor.t;
211212
const buttonView = new BlockButtonView( editor.locale );
212213

213214
buttonView.set( {
214-
label: editor.t( 'Edit block' ),
215+
label: t( 'Edit block' ),
215216
icon: iconPilcrow,
216217
withText: false
217218
} );

0 commit comments

Comments
 (0)