Andrew-WMDE has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/376778 )
Change subject: Add an import notice to the top of an imported page's wikitext
..
Add an import notice to the top of an imported page's wikitext
Should the message be translatable/changeable in i18n or should it
be hardcoded?
Bug: T160182
Change-Id: Ic32f8025338f81a64ccd060f3bd534ed3231212d
---
M extension.json
M i18n/en.json
M i18n/qqq.json
M src/Data/ImportPlan.php
M src/ServiceWiring.php
M src/Services/Importer.php
D src/Services/NullRevisionCreator.php
7 files changed, 48 insertions(+), 93 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FileImporter
refs/changes/78/376778/1
diff --git a/extension.json b/extension.json
index fc3..448db26 100644
--- a/extension.json
+++ b/extension.json
@@ -55,7 +55,6 @@
"FileImporter\\Services\\Importer": "src/Services/Importer.php",
"FileImporter\\Services\\ImportPlanFactory":
"src/Services/ImportPlanFactory.php",
"FileImporter\\Services\\ImportPlanValidator":
"src/Services/ImportPlanValidator.php",
- "FileImporter\\Services\\NullRevisionCreator":
"src/Services/NullRevisionCreator.php",
"FileImporter\\Services\\SourceSite":
"src/Services/SourceSite.php",
"FileImporter\\Services\\SourceSiteLocator":
"src/Services/SourceSiteLocator.php",
"FileImporter\\Services\\WikiRevisionFactory":
"src/Services/WikiRevisionFactory.php",
diff --git a/i18n/en.json b/i18n/en.json
index e9857b2..923600f 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -19,15 +19,15 @@
"fileimporter-cantimportmissingfile": "Can't import a missing file.",
"fileimporter-badtoken": "CSRF token does not match",
"fileimporter-badimporthash": "Import hash does not match. Please
restart the import.",
- "fileimporter-filenameerror-default" : "There is an unknown issue with
your filename.",
- "fileimporter-filenameerror-illegal" : "The file name you are currently
trying to import to is invalid.",
- "fileimporter-filenameerror-toolong" : "The file name you are currently
trying to import to is too long.",
- "fileimporter-filenameerror-automaticchanges" : "The file name you are
currently trying to import to will be automatically changed to \"$1\" due to
the use of invalid characters.",
- "fileimporter-localtitleexists" : "The title you are currently trying
to import to already exists on this wiki.",
- "fileimporter-sourcetitleexists" : "The title you are currently trying
to import to already exists on the source wiki.",
- "fileimporter-illegalfilenamechars" : "The title you are currently
trying to import to contains invalid filename characters.",
- "fileimporter-duplicatefilesdetected" : "The file you are currently
trying to import already exists on this wiki.",
- "fileimporter-duplicatefilesdetected-prefix" : "Duplicates",
+ "fileimporter-filenameerror-default": "There is an unknown issue with
your filename.",
+ "fileimporter-filenameerror-illegal": "The file name you are currently
trying to import to is invalid.",
+ "fileimporter-filenameerror-toolong": "The file name you are currently
trying to import to is too long.",
+ "fileimporter-filenameerror-automaticchanges": "The file name you are
currently trying to import to will be automatically changed to \"$1\" due to
the use of invalid characters.",
+ "fileimporter-localtitleexists": "The title you are currently trying to
import to already exists on this wiki.",
+ "fileimporter-sourcetitleexists": "The title you are currently trying
to import to already exists on the source wiki.",
+ "fileimporter-illegalfilenamechars": "The title you are currently
trying to import to contains invalid filename characters.",
+ "fileimporter-duplicatefilesdetected": "The file you are currently
trying to import already exists on this wiki.",
+ "fileimporter-duplicatefilesdetected-prefix": "Duplicates",
"fileimporter-exampleprefix": "Example",
"fileimporter-textrevisions": "$1 {{PLURAL:$1|revision|revisions}} of
the file will be imported.",
"fileimporter-submit": "Submit",
@@ -47,5 +47,7 @@
"fileimporter-heading-filehistory": "File history",
"fileimporter-revision-removed-text": "Suppressed text removed by
FileImporter.",
"fileimporter-revision-removed-comment": "Suppressed comment removed by
FileImporter.",
- "fileimporter-in-beta": "File import is in beta mode: We tested it
carefully but it still might have some problems. If you encounter problems,
please [//www.mediawiki.org/w/index.php?title=Extension_talk:FileImporter
report them on our help page] - ideally with a step by step way to reproduce
the problem, so we can understand and fix it."
+