Преглед изворни кода

Internal: Updated lang/contexts.json.

Piotrek Koszuliński пре 7 година
родитељ
комит
74481a39ea

+ 10 - 0
packages/ckeditor5-highlight/lang/contexts.json

@@ -0,0 +1,10 @@
+{
+	"Yellow marker": "Toolbar button tooltip for applying yellow marker (text highlight).",
+	"Green marker": "Toolbar button tooltip for applying green marker (text highlight).",
+	"Pink marker": "Toolbar button tooltip for applying pink marker (text highlight).",
+	"Blue marker": "Toolbar button tooltip for applying blue marker (text highlight).",
+	"Red pen": "Toolbar button tooltip for applying red pen (text color).",
+	"Green pen": "Toolbar button tooltip for applying green pen (text color).",
+	"Remove highlight": "Toolbar button tooltip for removing text highlight.",
+	"Highlight": "Toolbar button tooltip for the text highlight feature."
+}

+ 4 - 2
packages/ckeditor5-highlight/src/highlightui.js

@@ -23,10 +23,12 @@ import './../theme/highlight.css';
 
 /**
  * The default Highlight UI plugin. It introduces:
- * * the `'highlight'` drop-down,
+ *
+ * * the `'highlight'` dropdown,
  * * `'removeHighlight'` and `'highlight:*'` buttons.
  *
  * The default configuration includes the following buttons:
+ *
  * * `'highlight:yellowMarker'`
  * * `'highlight:greenMarker'`
  * * `'highlight:pinkMarker'`
@@ -99,7 +101,7 @@ export default class HighlightUI extends Plugin {
 	_addRemoveHighlightButton() {
 		const t = this.editor.t;
 
-		this._addButton( 'removeHighlight', t( 'Remove highlighting' ), eraserIcon );
+		this._addButton( 'removeHighlight', t( 'Remove highlight' ), eraserIcon );
 	}
 
 	/**

+ 2 - 2
packages/ckeditor5-highlight/tests/highlightui.js

@@ -29,7 +29,7 @@ describe( 'HighlightUI', () => {
 			'Pink marker': 'Pink marker',
 			'Red pen': 'Red pen',
 			'Blue pen': 'Blue pen',
-			'Remove highlighting': 'Remove highlighting'
+			'Remove highlight': 'Remove highlight'
 		} );
 
 		addTranslations( 'pl', {
@@ -40,7 +40,7 @@ describe( 'HighlightUI', () => {
 			'Blue marker': 'Niebieski marker',
 			'Red pen': 'Czerwony długopis',
 			'Green pen': 'Zielony długopis',
-			'Remove highlighting': 'Usuń zaznaczenie'
+			'Remove highlight': 'Usuń zaznaczenie'
 		} );
 	} );