Debian Codegraph @

extensions/VisualEditor/lib/ve/src/ui/tools/ve.ui.LanguageInspectorTool.js

raw symbols SCIP
1 /*!
2 * VisualEditor UserInterface language tool class.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * UserInterface language tool.
9 *
10 * @class
11 * @extends ve.ui.FragmentInspectorTool
12 * @constructor
13 * @param {OO.ui.ToolGroup} toolGroup
14 * @param {Object} [config] Configuration options
15 */
16 ve.ui.LanguageInspectorTool = function VeUiLanguageInspectorTool() {
17 ve.ui.LanguageInspectorTool.super.apply( this, arguments );
18 };
19 OO.inheritClass( ve.ui.LanguageInspectorTool, ve.ui.FragmentInspectorTool );
20 ve.ui.LanguageInspectorTool.static.name = 'language';
21 ve.ui.LanguageInspectorTool.static.group = 'textStyle';
22 ve.ui.LanguageInspectorTool.static.icon = 'language';
23 ve.ui.LanguageInspectorTool.static.title =
24 OO.ui.deferMsg( 'visualeditor-annotationbutton-language-tooltip' );
25 ve.ui.LanguageInspectorTool.static.modelClasses = [ ve.dm.LanguageAnnotation ];
26 ve.ui.LanguageInspectorTool.static.commandName = 'language';
27 ve.ui.toolFactory.register( ve.ui.LanguageInspectorTool );