From 2c8a089e410b976b82e5af6833a0747a3013d89d Mon Sep 17 00:00:00 2001 From: paladox Date: Sat, 25 Jul 2015 14:03:20 +0100 Subject: [PATCH 1/7] Create en.json --- i18n/en.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 i18n/en.json diff --git a/i18n/en.json b/i18n/en.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/i18n/en.json @@ -0,0 +1 @@ +{} From 30829ab107a50e635b5c727fbcfb220d6540f35c Mon Sep 17 00:00:00 2001 From: paladox Date: Sat, 25 Jul 2015 14:08:03 +0100 Subject: [PATCH 2/7] Update en.json --- i18n/en.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/i18n/en.json b/i18n/en.json index 0967ef4..6e18f75 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1 +1,10 @@ -{} +{ + "@metadata": { + "authors": [ + "Andru Vallance" + ] + }, + "skinname-booty ": "Booty", + "booty-desc": "Booty is a modern mobile-first responsive MediaWiki theme built on Bootstrap 3. Designed primarily for ease of customisation to create new skins, but with an initial set of clean templates which can be used as-is. Using [[Extension:Skinny]] allows defining skin variations and options on a per-page basis for awesome skin customisation.", + "herounit": "Hero Unit" +} From 9a4fdf8af79f152c64a60a316544444bbe90a312 Mon Sep 17 00:00:00 2001 From: paladox Date: Sat, 25 Jul 2015 14:09:40 +0100 Subject: [PATCH 3/7] Create qqq.json --- i18n/qqq.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 i18n/qqq.json diff --git a/i18n/qqq.json b/i18n/qqq.json new file mode 100644 index 0000000..3565428 --- /dev/null +++ b/i18n/qqq.json @@ -0,0 +1,7 @@ +{ + "@metadata": { + "authors": [] + }, + "skinname-booty": "{{optional}}", + "booty-desc": "{{desc|what=skin|name=Booty|url=https://www.mediawiki.org/wiki/Skin:Booty}}" +} From bc8bd06e50aa213905cd003c574759c1f7f23cf5 Mon Sep 17 00:00:00 2001 From: paladox Date: Sat, 25 Jul 2015 14:13:21 +0100 Subject: [PATCH 4/7] Update Booty.php --- Booty.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Booty.php b/Booty.php index cba93d2..b992239 100644 --- a/Booty.php +++ b/Booty.php @@ -8,20 +8,21 @@ * @License: GPLv2 (http://www.gnu.org/copyleft/gpl.html) */ - $GLOBALS['wgExtensionCredits']['parserhook'][] = array( 'name' => 'Booty', + 'namemsg' => 'skinname-booty' 'author' => 'Andru Vallance', - 'description' => 'Booty is a modern mobile-first responsive MediaWiki theme built on Bootstrap 3. Designed primarily for ease of customisation to create new skins, but with an initial set of clean templates which can be used as-is. Using [[Extension:Skinny]] allows defining skin variations and options on a per-page basis for awesome skin customisation.', + 'descriptionmsg' => 'booty-desc' 'url' => 'https://github.com/andru/booty' ); + $cd = dirname(__FILE__); $GLOBALS['wgAutoloadClasses']['Booty'] = $cd . '/Booty.class.php'; $GLOBALS['wgAutoloadClasses']['SkinBooty'] = $cd . '/base/Skin.php'; $GLOBALS['wgAutoloadClasses']['BootyTemplate'] = $cd . '/base/Template.php'; -$GLOBALS['wgExtensionMessagesFiles'][ 'Booty' ] = $cd . '/Booty.i18n.php'; +$GLOBALS['wgMessagesDirs']['Booty'] = __DIR__ . '/i18n'; $GLOBALS['wgValidSkinNames']['booty'] = 'Booty'; @@ -42,4 +43,4 @@ Booty::init(); -}; \ No newline at end of file +}; From 3a2c3926f679feeaa3bfbd284b4a3231f17c6379 Mon Sep 17 00:00:00 2001 From: paladox Date: Sat, 25 Jul 2015 14:16:48 +0100 Subject: [PATCH 5/7] Update and rename Booty.i18n.php to Booty.i18n.magic.php --- Booty.i18n.php => Booty.i18n.magic.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) rename Booty.i18n.php => Booty.i18n.magic.php (56%) diff --git a/Booty.i18n.php b/Booty.i18n.magic.php similarity index 56% rename from Booty.i18n.php rename to Booty.i18n.magic.php index b4d333b..ec2d981 100644 --- a/Booty.i18n.php +++ b/Booty.i18n.magic.php @@ -5,15 +5,10 @@ * @file * @ingroup Extensions */ -$messages = array(); - -/** English - * @author Andru Vallance - */ -$messages[ 'en' ] = array( - 'herounit' => "Hero Unit" -); +$magicWords = array(); + +/** English (English) */ $magicWords['en'] = array( 'herounit' => array( 1, 'herounit' ), ); From 53aaaf37b4c152434b2400577f5008461e7a4934 Mon Sep 17 00:00:00 2001 From: paladox Date: Sat, 25 Jul 2015 14:18:59 +0100 Subject: [PATCH 6/7] Update Booty.php --- Booty.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Booty.php b/Booty.php index b992239..44220b4 100644 --- a/Booty.php +++ b/Booty.php @@ -24,6 +24,8 @@ $GLOBALS['wgMessagesDirs']['Booty'] = __DIR__ . '/i18n'; +$wgExtensionMessagesFiles['BootyMagic'] = __DIR__ . '/Booty.i18n.magic.php'; + $GLOBALS['wgValidSkinNames']['booty'] = 'Booty'; //when installed via Composer, this file is loaded too early to access From ff258341cea1db8a3fe5be29140235162d06e19d Mon Sep 17 00:00:00 2001 From: paladox Date: Sat, 25 Jul 2015 14:19:35 +0100 Subject: [PATCH 7/7] Update Booty.php --- Booty.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Booty.php b/Booty.php index 44220b4..0a02eff 100644 --- a/Booty.php +++ b/Booty.php @@ -23,8 +23,7 @@ $GLOBALS['wgAutoloadClasses']['BootyTemplate'] = $cd . '/base/Template.php'; $GLOBALS['wgMessagesDirs']['Booty'] = __DIR__ . '/i18n'; - -$wgExtensionMessagesFiles['BootyMagic'] = __DIR__ . '/Booty.i18n.magic.php'; +$GLOBALS['wgExtensionMessagesFiles']['BootyMagic'] = __DIR__ . '/Booty.i18n.magic.php'; $GLOBALS['wgValidSkinNames']['booty'] = 'Booty';