Catrope has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/221971

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
---
M maintenance/convertNamespaceFromWikitext.php
1 file changed, 9 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/71/221971/1

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/221971
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I252fa0449ebb342dae6ab8165b7ac15e984440e5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Catrope <roan.katt...@gmail.com>

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

Reply via email to