Contributors to technical documentation on mediawiki.org and Meta-Wiki are often editing pages with Translate extension markup. Although great for translators, this markup is difficult to understand and edit confidently, even after a diligent reading of the docs. This project aims to review the available documentation for working with translation markup, consolidate the sources of information that have naturally grown over time, and update the content with the latest recommended guidance.
Target completion date: June 27, 2025
Actual completion date: June 27, 2025
Outcomes
I updated the key documentation pages for working with translation markup to reflect best practices and include examples of key use cases:
- Translation extension reference on mediawiki.org (before, after, diff): Comprehensive reference for working with translation markup and translated pages. Focuses on the capabilities of the Translate extension more than conventions on any one wiki.
- Internationalization guidelines on Meta-Wiki (before, after, diff): Shorter, easier-to-read guide to working with translation markup. Focuses specifically on conventions used on Wikimedia wikis, although it's important to note that these conventions differ between wikis due to differences in preference between translation administrator communities.
I found that the key tutorial on mediawiki.org uses a significantly different approach than I wanted to use. It focuses on a simplified version of translation markup, uses Wikipedia-like examples, and takes an iterative approach to adding and marking content. Because this tutorial is well established, has significant pageviews, and is extensively translated, I chose not to suggest radically revising the tutorial. Instead, I posed a question on the talk page on whether the tutorial should be evolved to reflect less simplified methods that are closer to widely used best practices. As an alternative, I published a new tutorial on Meta-Wiki that uses a wider range of examples and focuses on marking an entire page for translation using conventions used on Wikimedia wikis.
I started this project with the goal of consolidating the various pages related to translation markup into a few key pages. However, as I researched the content, I found that this was unrealistic. Because translation markup is a complicated subject, there are many different ways to approach explaining it, and there will always be people creating new tutorials and guides for how to use it. Instead of discouraging these efforts, it's better to ensure that these various related pages all link back to the key reference pages on mediawiki.org and Meta-Wiki (listed above). As part of this project, I updated all pages related to translation markup that I could find to link back to these key pages.
Goals
- Consolidate documentation for working with translated pages
- mediawiki.org
- Meta-Wiki
- All other pages related to translate markup now link to these pages
- Duplicated content removed from https://www.mediawiki.org/wiki/Documentation/Contribute
- Update guidance for working with translation markup
Scope
Use cases in scope:
- Adding new translation markup
- Added and updated examples on Help:Extension:Translate/Page translation administration and Meta:Internationalization guidelines
- Published a new tutorial to Meta:Internationalization guidelines/Tutorial
- Editing content with translation markup
- Added examples to Help:Extension:Translate/Page translation administration
- Moving translated content
- Updated Help:Extension:Translate/Move translatable page and added a section that links to it on Help:Extension:Translate/Page translation administration
- Writing for translation
- Linked to Writing clearly on key tutorials and reference pages
- Indicating that a page should not be translated
- Added links to Template:DoNotTranslate on key tutorials and reference pages
Use cases out of scope:
- Marking pages for translation and other translation admin tasks
- Translating content
- Deciding whether to translate a page
- I decided not to add any further guidance other than waiting for content to stabilize. Any content on a multilingual wiki can be marked for translation. If the audience of a page is limited to an English audience, it should be moved to Wikitech. See Find docs.
Project plan
- Phase 1: Plan
- Audit existing content
- Create consolidation plan
- Phase 2: Implement
- Update Help:Extension:Translate/Page translation administration
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7597979&oldid=7587343
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7597983&oldid=7597979
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7601345&oldid=7597983
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7601516&oldid=7601388
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7616241&oldid=7616090
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7616083&oldid=7601550
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7629383&oldid=7626816
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7629852&oldid=7629566
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7633504&oldid=7630915
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7633607&oldid=7633518
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7697418&oldid=7661892
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7706872&oldid=7705631
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7710306&oldid=7708079
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7710325&oldid=7710306
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7711534&oldid=7710346
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_administration&diff=7711541&oldid=7711534
- Update Meta:Internationalization guidelines
- https://meta.wikimedia.org/w/index.php?title=Meta%3AInternationalization_guidelines&diff=28740210&oldid=28490961
- https://meta.wikimedia.org/w/index.php?title=Meta%3AInternationalization_guidelines&diff=28769320&oldid=28740210
- https://meta.wikimedia.org/w/index.php?title=Meta%3AInternationalization_guidelines&diff=28769939&oldid=28769320
- https://meta.wikimedia.org/w/index.php?title=Meta%3AInternationalization_guidelines&diff=28769946&oldid=28769939
- https://meta.wikimedia.org/w/index.php?title=Meta%3AInternationalization_guidelines&diff=28770017&oldid=28769946
- https://meta.wikimedia.org/w/index.php?title=Meta%3AInternationalization_guidelines&diff=28770032&oldid=28770017
- https://meta.wikimedia.org/w/index.php?title=Meta%3AInternationalization_guidelines&diff=28804591&oldid=28803609
- https://meta.wikimedia.org/w/index.php?title=Meta%3AInternationalization_guidelines&diff=28805373&oldid=28805343
- Create new tutorial for Meta-Wiki
- Update Help:Extension:Translate/Page translation example
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_example&diff=7686140&oldid=7678530
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_example&diff=7686141&oldid=7686140
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_example&diff=7686145&oldid=7686141
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_example&diff=7697500&oldid=7686233
- https://www.mediawiki.org/w/index.php?title=Help%3AExtension%3ATranslate%2FPage_translation_example&diff=7708786&oldid=7697570
- Further updates pending comments on https://www.mediawiki.org/wiki/Help_talk:Extension:Translate/Page_translation_example#Should_mention_more_about_segmentation?
- Update Help:Extension:Translate/Move translatable page
- Update Template:Localized link
- https://www.mediawiki.org/w/index.php?title=Template%3ALocalized_link&diff=7710227&oldid=7552522
- https://www.mediawiki.org/w/index.php?title=Template%3ALocalized_link&diff=7710238&oldid=7710227
- Copying updates to the template docs on Meta-Wiki pending the mw.org update being marked for translation (and thus implicitly approved)
- Update Help:Extension:Translate/Page translation administration
- Phase 3: Cleanup and announce
- Link to primary pages from secondary pages
- Identify and complete cleanup tasks
- Minor copy edits to key pages
- Redirect sandbox pages to final pages
- Announce outcomes: Posted to #wikimedia-techdocs on IRC
Approach
With a complex topic like translation markup, there are many different ways to present the information, and there will always be people creating new pages to explain how to use it. Instead of trying to delete or redirect these various pages, I think it would be more productive to focus on keeping a few key pages up to date and ensuring that additional pages link back to those sources.
Key pages for Translation extension documentation as applies to any wiki that uses it:
- https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration
- https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_example
Key page with supplementary information about conventions specific to Wikimedia wikis:
This project focused on making these three pages as accurate and usable as possible, and then adding links to these pages from other pages related to translation markup.
Content audit
Content types:
- explanation
- tutorial
- examples
Scopes:
- Translate extension used on any wiki
- Wikimedia wikis
- mediawiki.org
- Meta-Wiki
- Foundation Wiki
- Outreach Wiki
- Wikispecies
- Wikidata
- Wikimania
- Incubator
- Likely others
Pages:
- https://gerrit.wikimedia.org/g/mediawiki/extensions/Translate/+/master/i18n/pagetranslation/en.json#13
- https://www.mediawiki.org/wiki/Help:Extension:Translate
- https://www.mediawiki.org/wiki/Template:Extension-Translate (navigation template)
- https://www.mediawiki.org/wiki/Help:Extension:Translate/Glossary (terms)
- https://www.mediawiki.org/wiki/Help:Extension:Translate/Insertables (maybe?)
- https://www.mediawiki.org/wiki/Help:Extension:Translate/Move_translatable_page
- https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration (primary source of docs, linked from message when editing a page, examples)
- https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_example (tutorial and videos)
- https://www.mediawiki.org/wiki/Help:Extension:Translate/Translation_best_practices (writing for translation)
- https://www.mediawiki.org/wiki/Help:Extension:Translate/Translation_units (draft)
- https://meta.wikimedia.org/wiki/Meta:Internationalization_guidelines (has examples)
- https://meta.wikimedia.org/wiki/Meta:Translate_extension
- https://meta.wikimedia.org/wiki/Fortius_linguarum and subpages
- https://meta.wikimedia.org/wiki/User:RAdimer-WMF/Marking_pages_for_translation (tutorial)
- https://www.mediawiki.org/wiki/Documentation/Contribute#Working_with_translated_content
- https://diff.wikimedia.org/2024/03/08/understanding-translation-administration/
- https://office.wikimedia.org/wiki/Community_Resources/Translation (restricted access, examples)
- https://office.wikimedia.org/wiki/Translation#a_page_using_%3Ctranslate%3E_tags (restricted access)
Pageviews:
- https://pageviews.wmcloud.org/?project=meta.wikimedia.org&platform=all-access&agent=user&redirects=0&range=this-year&pages=Meta:Internationalization_guidelines|Fortius_linguarum/Preparing_translations
- https://pageviews.wmcloud.org/?project=mediawiki.org&platform=all-access&agent=user&redirects=0&range=this-year&pages=Help:Extension:Translate/Page_translation_administration|Help:Extension:Translate/Page_translation_example
Use cases
Links
- Link to a page on the same wiki
- Link to a page on another wiki
- Link to a page outside a wiki
- Link to Wikipedia
- Link within a sentence
- Link outside a sentence
- Use custom link text
- Link to a section
- Link to a section on another page
- Omit the namespace from the link text
Questions:
- https://meta.wikimedia.org/wiki/Meta_talk:Internationalization_guidelines#Recommending_Template:Localized_link
- https://www.mediawiki.org/wiki/Help_talk:Extension:Translate/Page_translation_administration#Internal_links_without_Special:MyLanguage/
Draft: https://www.mediawiki.org/wiki/User:APaskulin_(WMF)/Sandbox/Translation#Links
Code samples
- Code samples in a sentence
- Code sample blocks
- Comments in code samples
Draft: https://www.mediawiki.org/wiki/User:APaskulin_(WMF)/Sandbox/Translation#Code_samples
Templates and transclusion
- Templates without translatable parameters
- Templates with translatable parameters
- Transclude a translated page
Draft: https://www.mediawiki.org/wiki/User:APaskulin_(WMF)/Sandbox/Translation#Templates_and_transclusion
Lists
- Ordered lists
- Unordered lists
Draft: https://www.mediawiki.org/wiki/User:APaskulin_(WMF)/Sandbox/Translation#Lists