2 Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
7 * @fileOverview Plugin definition for the a11yhelp, which provides a dialog
\r
8 * with accessibility related help.
\r
13 var pluginName = 'a11yhelp',
\r
14 commandName = 'a11yHelp';
\r
16 CKEDITOR.plugins.add( pluginName,
\r
18 // List of available localizations.
\r
19 availableLangs : { cs:1, cy:1, da:1, de:1, el:1, en:1, eo:1, fa:1, fi:1, fr:1, gu:1, he:1, it:1, mk:1, nb:1, nl:1, no:1, tr:1, ug:1, vi:1, 'zh-cn':1 },
\r
21 init : function( editor )
\r
24 editor.addCommand( commandName,
\r
28 var langCode = editor.langCode;
\r
29 langCode = plugin.availableLangs[ langCode ] ? langCode : 'en';
\r
31 CKEDITOR.scriptLoader.load(
\r
32 CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ),
\r
35 CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ langCode ] );
\r
36 editor.openDialog( commandName );
\r
39 modes : { wysiwyg:1, source:1 },
\r
44 CKEDITOR.dialog.add( commandName, this.path + 'dialogs/a11yhelp.js' );
\r