Browse Source

Renamed table column command labels: 'Insert column before'->'Insert column left' and 'Insert column after'->'Insert column right'.

Aleksander Nowodzinski 7 years ago
parent
commit
c9c2cc68c5

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

@@ -1,8 +1,8 @@
 {
 	"Insert table": "Label for the insert table toolbar button.",
 	"Header column": "Label for the set/unset table header column button.",
-	"Insert column before": "Label for the insert table column before the current one button.",
-	"Insert column after": "Label for the insert table column after the current one button.",
+	"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.",
 	"Column": "Label for the table column dropdown button.",
 	"Header row": "Label for the set/unset table header row button.",

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

@@ -87,14 +87,14 @@ export default class TableUI extends Plugin {
 					type: 'button',
 					model: {
 						commandName: 'insertTableColumnLeft',
-						label: t( 'Insert column before' )
+						label: t( 'Insert column left' )
 					}
 				},
 				{
 					type: 'button',
 					model: {
 						commandName: 'insertTableColumnRight',
-						label: t( 'Insert column after' )
+						label: t( 'Insert column right' )
 					}
 				},
 				{

+ 2 - 2
packages/ckeditor5-table/tests/manual/table.md

@@ -14,8 +14,8 @@
 3. While the table cell is selected there should be a toolbar attached to the table with 3 dropdowns:
   * column dropdown with items:
     - header column,
-    - insert column before,
-    - insert column after,
+    - insert column left,
+    - insert column right,
     - delete column.
   * row dropdown with items:
     - header row,

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

@@ -226,7 +226,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 before', 'Insert column after', 'Delete column' ] );
+			expect( labels ).to.deep.equal( [ 'Header column', '|', 'Insert column left', 'Insert column right', 'Delete column' ] );
 		} );
 
 		it( 'should bind items in panel to proper commands', () => {