ソースを参照

Changed button label (Select row/column).

Kuba Niegowski 5 年 前
コミット
367b971ced

+ 2 - 2
packages/ckeditor5-table/lang/contexts.json

@@ -4,13 +4,13 @@
 	"Insert column left": "Label for the insert table column to the left of the current one button.",
 	"Insert column right": "Label for the insert table column to the right of the current one button.",
 	"Delete column": "Label for the delete table column button.",
-	"Select entire column": "Label for the select table entire column button.",
+	"Select column": "Label for the select table entire column button.",
 	"Column": "Label for the table column dropdown button.",
 	"Header row": "Label for the set/unset table header row button.",
 	"Insert row below": "Label for the insert row below button.",
 	"Insert row above": "Label for the insert row above button.",
 	"Delete row": "Label for the delete table row button.",
-	"Select entire row": "Label for the select table entire row button.",
+	"Select row": "Label for the select table entire row button.",
 	"Row": "Label for the table row dropdown button.",
 	"Merge cell up": "Label for the merge table cell up button.",
 	"Merge cell right": "Label for the merge table cell right button.",

+ 2 - 2
packages/ckeditor5-table/src/tableui.js

@@ -118,7 +118,7 @@ export default class TableUI extends Plugin {
 					type: 'button',
 					model: {
 						commandName: 'selectTableColumn',
-						label: t( 'Select entire column' )
+						label: t( 'Select column' )
 					}
 				}
 			];
@@ -162,7 +162,7 @@ export default class TableUI extends Plugin {
 					type: 'button',
 					model: {
 						commandName: 'selectTableRow',
-						label: t( 'Select entire row' )
+						label: t( 'Select row' )
 					}
 				}
 			];

+ 2 - 2
packages/ckeditor5-table/tests/tableui.js

@@ -138,7 +138,7 @@ describe( 'TableUI', () => {
 			const labels = listView.items.map( item => item instanceof ListSeparatorView ? '|' : item.children.first.label );
 
 			expect( labels ).to.deep.equal(
-				[ 'Header row', '|', 'Insert row below', 'Insert row above', 'Delete row', 'Select entire row' ]
+				[ 'Header row', '|', 'Insert row below', 'Insert row above', 'Delete row', 'Select row' ]
 			);
 		} );
 
@@ -249,7 +249,7 @@ describe( 'TableUI', () => {
 			const labels = listView.items.map( item => item instanceof ListSeparatorView ? '|' : item.children.first.label );
 
 			expect( labels ).to.deep.equal(
-				[ 'Header column', '|', 'Insert column left', 'Insert column right', 'Delete column', 'Select entire column' ]
+				[ 'Header column', '|', 'Insert column left', 'Insert column right', 'Delete column', 'Select column' ]
 			);
 		} );