-
Notifications
You must be signed in to change notification settings - Fork 0
/
LanguageTool.php
65 lines (55 loc) · 1.6 KB
/
LanguageTool.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* LanguageTool MediaWiki extension.
*
* For more info see http://mediawiki.org/wiki/Extension:LanguageTool
*
* @file
* @ingroup Extensions
* @author Ankita Kumari, 2015
*/
$wgExtensionCredits['other'][] = array(
'path' => __FILE__,
'name' => 'LanguageTool',
'author' => array(
'Ankita Kumari',
'Eran Rosenthal',
'Amir E. Aharoni'
),
'version' => '0.0.0',
'url' => 'https://www.mediawiki.org/wiki/Extension:LanguageTool',
'descriptionmsg' => 'languagetool-desc',
'license-name' => 'GPL 2.0',
);
/* Setup */
// Register files
$wgAutoloadClasses['LanguageToolHooks'] = __DIR__ . '/LanguageTool.hooks.php';
$wgAutoloadClasses['SpecialHelloWorld'] = __DIR__ . '/specials/SpecialHelloWorld.php';
$wgMessagesDirs['LanguageTool'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['LanguageToolAlias'] = __DIR__ . '/LanguageTool.i18n.alias.php';
// Register hooks
#$wgHooks['NameOfHook'][] = 'LanguageToolHooks::onNameOfHook';
// Register special pages
//$wgSpecialPages['HelloWorld'] = 'SpecialHelloWorld';
// Register modules
$wgResourceModules['ext.languageTool.foo'] = array(
'scripts' => array(
'modules/ext.languageTool.js',
'modules/ext.languageToolAction.js',
'modules/ext.languageToolCommand.js'
),
'styles' => array(
'modules/ext.languageTool.foo.css'
),
'messages' => array(
),
'dependencies' => array(
'ext.visualEditor.mwcore'
),
'localBasePath' => __DIR__,
'remoteExtPath' => 'LanguageTool',
);
/* Configuration */
// Enable Foo
$wgLanguageToolEnableFoo = true;
$wgVisualEditorPluginModules[] = 'ext.languageTool.foo';