Procházet zdrojové kódy

Fix translations contexts

panr před 5 roky
rodič
revize
64408b486a

+ 6 - 4
packages/ckeditor5-table/lang/contexts.json

@@ -18,21 +18,21 @@
 	"Split cell horizontally": "Label for the split table cell horizontally button.",
 	"Merge cells": "Label for the merge table cells button.",
 	"Table toolbar": "The label used by assistive technologies describing a table toolbar attached to a table widget.",
+	"Table properties": "The label describing the form allowing to specify the properties of a selected table.",
 	"Cell properties": "The label describing the form allowing to specify the properties of a selected table cell.",
 	"Border": "The label describing a group of border–related form fields (border style, color, etc.).",
 	"Style": "The label for the dropdown that allows configuring the border style of a table or a table cell.",
 	"Width": "The label for the input that allows configuring the border width of a table or a table cell.",
+	"Height": "The label for the input that allows configuring the height of a table or a table cell.",
 	"Color": "The label for the input that allows configuring the border color of a table or a table cell.",
 	"Background": "The label for the input that allows configuring the background color of a table or a table cell.",
 	"Padding": "The label for the input that allows configuring the padding of a table cell.",
 	"Dimensions": "The label describing a group of form fields that allows setting dimensions of a table or a table cell.",
-	"Text alignment": "The label for the group of toolbars that allows configuring the text alignment in a table cell.",
+	"Table cell text alignment": "The label for the group of toolbars that allows configuring the text alignment in a table cell.",
 	"Alignment": "The label for the toolbar that allows configuring the alignment of a table.",
 	"Horizontal text alignment toolbar": "The label used by assistive technologies describing a toolbar that allows configuring the horizontal text alignment in a table cell.",
 	"Vertical text alignment toolbar": "The label used by assistive technologies describing a toolbar that allows configuring the vertical text alignment in a table cell.",
 	"Table alignment toolbar": "The label used by assistive technologies describing a toolbar that allows configuring the alignment of a table.",
-	"Save": "The label for the button that saves the changes made to the table or table cell properties.",
-	"Cancel": "The label for the button that rejects the changes made to the table or table cell properties.",
 	"None": "The label for the border style dropdown when no style is applied to a table or a table cell.",
 	"Solid": "The label for the border style dropdown when the solid border is applied to a table or a table cell.",
 	"Dotted": "The label for the border style dropdown when the dotted border is applied to a table or a table cell.",
@@ -51,5 +51,7 @@
 	"Align cell text to the bottom": "The label used by assistive technologies describing a button that aligns the table cell text to the bottom.",
 	"Align table to the left": "The label used by assistive technologies describing a button that aligns the table to the left.",
 	"Center table": "The label used by assistive technologies describing a button that centers the table.",
-	"Align table to the right": "The label used by assistive technologies describing a button that aligns the table to the right."
+	"Align table to the right": "The label used by assistive technologies describing a button that aligns the table to the right.",
+	"The color is invalid. Try \"#FF0000\" or \"rgb(255,0,0)\" or \"red\".": "The localized error string that can be displayed next to color (background, border) fields that have an invalid value",
+	"The value is invalid. Try \"10px\" or \"2em\" or simply \"2\".": "The localized error string that can be displayed next to length (padding, border width) fields that have an invalid value."
 }

+ 1 - 1
packages/ckeditor5-table/src/tablecellproperties/ui/tablecellpropertiesview.js

@@ -645,7 +645,7 @@ export default class TableCellPropertiesView extends View {
 
 		const alignmentLabel = new LabelView( locale );
 
-		alignmentLabel.text = t( 'Text alignment' );
+		alignmentLabel.text = t( 'Table cell text alignment' );
 
 		// -- Horizontal ---------------------------------------------------
 

+ 1 - 1
packages/ckeditor5-table/tests/tablecellproperties/ui/tablecellpropertiesview.js

@@ -396,7 +396,7 @@ describe( 'table cell properties', () => {
 
 						expect( row.classList.contains( 'ck-form__row' ) ).to.be.true;
 						expect( row.classList.contains( 'ck-table-cell-properties-form__alignment-row' ) ).to.be.true;
-						expect( row.childNodes[ 0 ].textContent ).to.equal( 'Text alignment' );
+						expect( row.childNodes[ 0 ].textContent ).to.equal( 'Table cell text alignment' );
 						expect( row.childNodes[ 1 ] ).to.equal( view.horizontalAlignmentToolbar.element );
 						expect( row.childNodes[ 2 ] ).to.equal( view.verticalAlignmentToolbar.element );
 					} );