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

Made the Edit block string translatable. #446

Merged
merged 1 commit into from
Oct 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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