Procházet zdrojové kódy

Add description of aria labels for translations.

Mateusz Samsel před 6 roky
rodič
revize
a96c7f4ab5

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

@@ -4,5 +4,7 @@
 	"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.).",
 	"Next": "Label for a button showing the next thing (tab, page, etc.).",
 	"Previous": "Label for a button showing the previous thing (tab, page, etc.).",
 	"Previous": "Label for a button showing the previous thing (tab, page, etc.).",
-	"%0 of %1": "Label for a 'page X of Y' status of a typical next/previous page navigation."
+	"%0 of %1": "Label for a 'page X of Y' status of a typical next/previous page navigation.",
+	"Editor's toolbar": "The label for assistive technologies used in editor's toolbar.",
+	"Dropdown's toolbar": "The label for assistive technologies used in dropdown's toolbar."
 }
 }

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/utils.js

@@ -134,7 +134,7 @@ export function createDropdown( locale, ButtonClass = DropdownButtonView ) {
 export function addToolbarToDropdown( dropdownView, buttons ) {
 export function addToolbarToDropdown( dropdownView, buttons ) {
 	const locale = dropdownView.locale;
 	const locale = dropdownView.locale;
 	const t = locale.t;
 	const t = locale.t;
-	const toolbarView = dropdownView.toolbarView = new ToolbarView( locale, { ariaLabel: t( 'Dropdown toolbar' ) } );
+	const toolbarView = dropdownView.toolbarView = new ToolbarView( locale, { ariaLabel: t( 'Dropdown\'s toolbar' ) } );
 
 
 	dropdownView.extendTemplate( {
 	dropdownView.extendTemplate( {
 		attributes: {
 		attributes: {