Skip to content

Commit

Permalink
Register under extension credits
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Sep 9, 2019
1 parent 19d38bb commit 0c8036d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
17 changes: 14 additions & 3 deletions SemanticBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@
'PageForms',
] );

$GLOBALS['wgHooks']['SoftwareInfo'][] = function( array &$software ) {
$software['[https://github.com/SemanticMediaWiki/SemanticBundle Semantic Bundle]'] = '1.0.0';
};
$GLOBALS['wgExtensionCredits']['semantic'][] = [
'path' => __FILE__,
'namemsg' => 'semantic-bundle-name',
'name' => 'AAA-sort',
'version' => '2.0.0',
'author' => [
'[https://www.entropywins.wtf/mediawiki Jeroen De Dauw]'
],
'url' => 'https://github.com/SemanticMediaWiki/SemanticBundle',
'description' => 'Bundle that installs and loads Semantic MediaWiki and associated extensions.',
'license-name' => 'GPL-2.0+'
];

$GLOBALS['wgMessagesDirs']['SemanticBundle'] = __DIR__ . '/i18n';
8 changes: 8 additions & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Jeroen De Dauw"
]
},
"semantic-bundle-name": "Semantic Bundle"
}
8 changes: 8 additions & 0 deletions i18n/qqq.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Jeroen De Dauw"
]
},
"semantic-bundle-name": "{{Name}}"
}

0 comments on commit 0c8036d

Please sign in to comment.