Przeglądaj źródła

Internal: Simplified labels in the balloon rotator. Closes #509.

Piotrek Koszuliński 6 lat temu
rodzic
commit
458fce7d54

+ 3 - 1
packages/ckeditor5-ui/lang/contexts.json

@@ -1,5 +1,7 @@
 {
 	"Rich Text Editor, %0": "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)"
+	"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)",
+	"Next": "Label for a button showing the next thing (tab, page, etc.).",
+	"Previous": "Label for a button showing the previous thing (tab, page, etc.)."
 }

+ 2 - 2
packages/ckeditor5-ui/src/panel/balloon/contextualballoon.js

@@ -504,14 +504,14 @@ class RotatorView extends View {
 		 *
 		 * @type {module:ui/button/buttonview~ButtonView}
 		 */
-		this.buttonPrevView = this._createButtonView( t( 'Previous balloon' ), prevIcon );
+		this.buttonPrevView = this._createButtonView( t( 'Previous' ), prevIcon );
 
 		/**
 		 * Navigation button for switching stack to the next one.
 		 *
 		 * @type {module:ui/button/buttonview~ButtonView}
 		 */
-		this.buttonNextView = this._createButtonView( t( 'Next balloon' ), nextIcon );
+		this.buttonNextView = this._createButtonView( t( 'Next' ), nextIcon );
 
 		/**
 		 * Collection of the child views which creates rotator content.