-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade for new versions MW: extension registration and i18n
* Modify MasonryMainPage.php to check for wfLoadExtension and use it if available * Add extension.json to be used by wfLoadExtension * Move i18n to /i18n directory and JSON files * Leave magic word registration in its own i18n file, but rename to Magic.php
- Loading branch information
1 parent
e64421e
commit 5ae46d2
Showing
6 changed files
with
107 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Internationalisation file for extension MasonryMainPage magic words. | ||
* | ||
* @file | ||
* @ingroup Extensions | ||
*/ | ||
$magicWords = array(); | ||
|
||
# The $magicWords array is where we'll declare the name of our parser function | ||
# Below we've declared that it will be called "masonry-block", and thus will be | ||
# called in wikitext by doing {{#masonry-block: example | parameters }} | ||
$magicWords['en'] = array( | ||
'masonry-block' => array( | ||
0, // zero means case-insensitive, 1 means case sensitive | ||
'masonry-block' // parser function in this language. For English this will probably be the same as above | ||
), | ||
); | ||
|
||
$magicWords['de'] = array( | ||
'masonry-block' => array( 0, 'mauerwerksblock' ), | ||
); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "MasonryMainPage", | ||
"version": "0.3.0", | ||
"author": "[https://www.mediawiki.org/wiki/User:Darenwelsh Daren Welsh]", | ||
"url": "http://github.com/enterprisemediawiki/MasonryMainPage", | ||
"descriptionmsg": "masonrymainpage-desc", | ||
"type": "parserhook", | ||
"ExtensionMessagesFiles": { | ||
"MasonryMainPageMagic": "Magic.php" | ||
}, | ||
"AutoloadClasses": { | ||
"MasonryMainPage": "MasonryMainPage.class.php" | ||
}, | ||
"ResourceModules": { | ||
"ext.masonrymainpage.base": { | ||
"scripts": [ | ||
"imagesloaded.pkgd.js", | ||
"masonry.pkgd.js", | ||
"masonry-common.js" | ||
], | ||
"styles": "Masonry.css", | ||
"position": "top" | ||
} | ||
}, | ||
"ResourceFileModulePaths": { | ||
"localBasePath": "", | ||
"remoteExtPath": "MasonryMainPage" | ||
}, | ||
"Hooks": { | ||
"BeforePageDisplay": [ | ||
"MasonryMainPage::addIECompatibilityMetaTag" | ||
], | ||
"ParserFirstCallInit": [ | ||
"MasonryMainPage::setup" | ||
] | ||
}, | ||
"manifest_version": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"masonrymainpage": "MasonryMainPage", | ||
"masonrymainpage-desc": "Ermöglicht die mauerwerksverbundartige Anordnung von Inhaltsblöcken auf Wikiseiten" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"masonrymainpage": "MasonryMainPage", | ||
"masonrymainpage-desc": "Enables use of Masonry blocks in MediaWiki via the masonry-block parser function" | ||
} |