jenkins-bot has submitted this change and it was merged.

Change subject: Add --archive-pattern option to convert script
......................................................................


Add --archive-pattern option to convert script

The names of archive subpages are hardcoded to English (T93395).
As a workaround for non-English languages, we'll allow these
naming patterns to be overridden on the command line for now.

Change-Id: I252fa0449ebb342dae6ab8165b7ac15e984440e5
(cherry picked from commit d6926dc096dbe70ac519100cf505d3ab9660d8f5)
---
M maintenance/convertNamespaceFromWikitext.php
1 file changed, 9 insertions(+), 1 deletion(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/convertNamespaceFromWikitext.php 
b/maintenance/convertNamespaceFromWikitext.php
index 890dc0a..998b848 100644
--- a/maintenance/convertNamespaceFromWikitext.php
+++ b/maintenance/convertNamespaceFromWikitext.php
@@ -24,6 +24,13 @@
                        true, // takes argument
                        't'
                );
+               $this->addOption(
+                       'archive-pattern',
+                       'Naming pattern for archive pages; %s for page title, 
%d for sequence number',
+                       false, // not required
+                       true, // takes argument
+                       'a'
+               );
        }
 
        public function execute() {
@@ -71,7 +78,8 @@
                                $wgParser,
                                new Flow\Import\NullImportSourceStore(),
                                $logger,
-                               $noConvertTemplates
+                               $noConvertTemplates,
+                               $this->getOption( 'archive-pattern', null )
                        )
                );
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I252fa0449ebb342dae6ab8165b7ac15e984440e5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: wmf/1.26wmf11
Gerrit-Owner: Catrope <roan.katt...@gmail.com>
Gerrit-Reviewer: Catrope <roan.katt...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to