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

Commit

Permalink
Merge pull request #446 from ckeditor/t/445
Browse files Browse the repository at this point in the history
Fix: Made the `Edit block` string translatable. Closes #445.
  • Loading branch information
ma2ciek authored Oct 5, 2018
2 parents 35d1ced + a842366 commit 1fa84e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lang/contexts.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"Rich Text Editor, %0": "Title of the CKEditor5 editor.",
"Rich Text Editor": "Title of the CKEditor5 editor."
"Rich Text Editor": "Title of the CKEditor5 editor.",
"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)"
}
3 changes: 2 additions & 1 deletion src/toolbar/block/blocktoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,11 @@ export default class BlockToolbar extends Plugin {
*/
_createButtonView() {
const editor = this.editor;
const t = editor.t;
const buttonView = new BlockButtonView( editor.locale );

buttonView.set( {
label: editor.t( 'Edit block' ),
label: t( 'Edit block' ),
icon: iconPilcrow,
withText: false
} );
Expand Down

0 comments on commit 1fa84e9

Please sign in to comment.