Page MenuHomePhabricator

Language tagging doesn't check if field is already tagged
Open, Needs TriagePublic

Description

If you have a file with a template containing a field that is already language-tagged (e.g. description={{en|Foo bar}}), and FileImporter is configured to language-tag that field during transfer, then it will wrap that field in another language tag (description={{en|{{en|Foo bar}}}}), which is not desirable. It should check if a language tag already exists first.

Event Timeline

Change 975339 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/FileImporter@master] Don't add duplicate language templates to template parameters

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

Change #975339 merged by jenkins-bot:

[mediawiki/extensions/FileImporter@master] Don't add duplicate language templates to template parameters

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