Sebastian Berlin (WMSE) has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/399419 )

Change subject: Reintroduce lexicon tool special page, commits e559d75 and 
01f254d
......................................................................

Reintroduce lexicon tool special page, commits e559d75 and 01f254d

Bug: T182861
Change-Id: I51ed9bcb96a3a6c1dfe0b277c5a070a49dbe2c6d
---
M Wikispeech.alias.php
M extension.json
M i18n/en.json
M i18n/qqq.json
A specials/SpecialWikispeechLexiconTool.php
5 files changed, 45 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikispeech 
refs/changes/19/399419/1

diff --git a/Wikispeech.alias.php b/Wikispeech.alias.php
index b0fc561..e2dbf56 100644
--- a/Wikispeech.alias.php
+++ b/Wikispeech.alias.php
@@ -9,4 +9,5 @@
 /** English (English) */
 $specialPageAliases['en'] = array(
        'Wikispeech' => array( 'Wikispeech' ),
+       'WikispeechLexiconTool' => array( 'WikispeechLexiconTool' ),
 );
diff --git a/extension.json b/extension.json
index 6f7cebb..b519ff8 100644
--- a/extension.json
+++ b/extension.json
@@ -17,6 +17,7 @@
        },
        "AutoloadClasses": {
                "SpecialWikispeech": "specials/SpecialWikispeech.php",
+               "SpecialWikispeechLexiconTool": 
"specials/SpecialWikispeechLexiconTool.php",
                "WikispeechHooks": "Hooks.php",
                "CleanedText": "includes/CleanedContent.php",
                "SegmentBreak": "includes/CleanedContent.php",
@@ -52,7 +53,8 @@
                "remoteExtPath": "Wikispeech/modules"
        },
        "SpecialPages": {
-               "Wikispeech": "SpecialWikispeech"
+               "Wikispeech": "SpecialWikispeech",
+               "WikispeechLexiconTool": "SpecialWikispeechLexiconTool"
        },
        "ExtensionMessagesFiles": {
                "WikispeechAlias": "Wikispeech.alias.php"
diff --git a/i18n/en.json b/i18n/en.json
index 0e32437..a8d550e 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -8,6 +8,9 @@
        "wikispeech-desc": "A text-to-speech tool to make Wikimedia's projects 
more accessible for people that for different reasons have difficulties 
reading.",
        "special-wikispeech-intro": "Wikispeech",
        "special-wikispeech-title": "Special page introduction.",
+       "wikispeechlexicontool": "Wikispeech Lexicon Tool",
+       "special-wikispeech-lexicon-tool-intro": "Wikispeech Lexicon Tool",
+       "special-wikispeech-lexicon-tool-title": "The tool used to add 
suggested words into the Wikispeech lexicon.",
        "apihelp-wikispeech-summary": "Process a page to be used by the 
Wikispeech extension.",
        "apihelp-wikispeech-param-page": "The title of the page to process.",
        "apihelp-wikispeech-param-output": "The formats of the output, can be a 
combination of the following:",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 80a60a9..711245f 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -1,13 +1,17 @@
 {
        "@metadata": {
                "authors": [
-                       "Sebastian Berlin"
+                       "Sebastian Berlin",
+                       "Egbe Eugene"
                ]
        },
        "wikispeech": "The name of the extension",
        "wikispeech-desc": 
"{{desc|name=Wikispeech|url=https://www.mediawiki.org/wiki/Extension:Wikispeech}}";,
        "special-wikispeech-intro": "Description appearing on top of 
<tvar|1>Special:{{ll|Wikispeech}}</>.",
        "special-wikispeech-title": "Title of the special page 
Special:Wikispeech",
+       "wikispeechlexicontool": "The name of the tool which suggests words 
about an article not found in the lexicon and adds them",
+       "special-wikispeech-lexicon-tool-intro": "Description appearing on top 
of <tvar|1>Special:{{ll|WikispeechLexiconTool}}</>.",
+       "special-wikispeech-lexicon-tool-title": "Title of the special page 
Special:WikispeechLexiconTool",
        "apihelp-wikispeech-summary": "{{doc-apihelp-summary|wikispeech}}",
        "apihelp-wikispeech-param-page": 
"{{doc-apihelp-param|wikispeech|page}}",
        "apihelp-wikispeech-param-output": 
"{{doc-apihelp-param|wikispeech|output}}",
diff --git a/specials/SpecialWikispeechLexiconTool.php 
b/specials/SpecialWikispeechLexiconTool.php
new file mode 100644
index 0000000..704328e
--- /dev/null
+++ b/specials/SpecialWikispeechLexiconTool.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Wikispeech lexicon tool SpecialPage for Wikispeech extension
+ *
+ * @file
+ * @ingroup Extensions
+ */
+class SpecialWikispeechLexiconTool extends SpecialPage {
+       public function __construct() {
+               parent::__construct( 'wikispeechlexicontool' );
+       }
+
+       /**
+        * Show the page to the user
+        *
+        * @param string $sub The subpage string argument (if any).
+        */
+       public function execute( $sub ) {
+               $out = $this->getOutput();
+               $out->setPageTitle( $this->msg( 
'special-wikispeech-lexicon-tool-title' ) );
+               $out->addHelpLink( 'How to become a MediaWiki hacker' );
+               $out->addWikiMsg( 'special-wikispeech-lexicon-tool-intro' );
+       }
+
+       /**
+        * @see SpecialPage::getGroupName
+        *
+        * @return string
+        */
+       protected function getGroupName() {
+               return 'wiki';
+       }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/399419
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I51ed9bcb96a3a6c1dfe0b277c5a070a49dbe2c6d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikispeech
Gerrit-Branch: master
Gerrit-Owner: Sebastian Berlin (WMSE) <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to