Help:Extension:Translate/apc
Translators (main help page )
- How to translate
- Best practices
- Statistics and reporting
- Quality assurance
- Message group states
- Offline translation
- Glossary
Translation administrators
- How to prepare a page for translation
- Page translation administration
- Unstructured element translation
- Group management
- Move translatable page
- Import translations via CSV
- Working with message bundles
Sysadmins and developers
![](http://upload.wikimedia.org/wikipedia/commons/thumb/d/dc/Translate_manual_-_Translate_example_-_04._Untranslated.png/300px-Translate_manual_-_Translate_example_-_04._Untranslated.png)
The Translate extension enhances MediaWiki with essential features needed to do translation work. It can be used to translate the content pages, the interface of the wiki and even other software products, as it is used at translatewiki.net . The Translate extension comes with an easy to use translation interface and can separate the content structure from the text content that needs to be translated, showing only the translatable text to translators by splitting the content into manageable units. Each unit is automatically tracked for changes, and translators immediately see what needs updating on a specific page or throughout the wiki.
The Translate extension is used to translate the user interface of MediaWiki and other software projects at translatewiki.net by hundreds of translators every month. At userbase.kde.org it is used to translate almost a thousand content pages with user documentation. It is easy to start using the Translate extension, but at the same time it also scales up and provides advanced reporting, reviewing and workflow features.
Features
![](http://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/Translate_manual_-_Translate_example_-_07._Editor_assistant.png/300px-Translate_manual_-_Translate_example_-_07._Editor_assistant.png)
Interface: The main feature of the Translate extension is a simple yet functional translation interface. Besides the essential information like message definition and documentation, you can also view translations in other languages. If a definition has changed, you will see the changes. The extension comes with some built-in checks, that can help with common mistakes like unbalanced brackets and unused variables. Depending on the configuration, there are also suggestions from translation memory and machine translation services like those of Google Translate, Microsoft's Bing Translator and Apertium.
The usability of the translation interface is enhanced with JavaScript and AJAX. The backend provides WebAPIs that can be used in mobile interfaces or interfaces tailored to specific kind of content. It is also possible to export messages for translation in other off-line and on-line tools that accept the Gettext po file format.
Message groups and tasks: Many of the features are built around two basic concepts: message groups and tasks.
A message group represents a collection of messages. One content page would be one message group, where, in the simplest form, each paragraph would be one message in that group. Messages used in each MediaWiki extension form a message group on translatewiki.net – a few of the largest extensions have multiple groups. You can also make a group of groups, like All newsletters or All Translate extension messages. Many of the statistics and the tasks work on the message group basis.
The tasks, or in other words different listings of messages in a message group, facilitate different use cases. Normally a translator gets a list of all untranslated messages in a chosen message group, but there are tasks where you can review messages or just get a list of all messages, translated or not.
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Translate_manual_-_Translate_example_-_01._LanguageStats_long.png/300px-Translate_manual_-_Translate_example_-_01._LanguageStats_long.png)
Reporting and statistics: The extension has extensive reporting features ranging from a view of untranslated messages across all message groups in a given language to lists of translators per language with their activity level.
Content translation: If you have ever tried to translate content in MediaWiki without any tools, you know it does not scale. الإصدارات المترجمة بتزول قديمة و ما في شي طريقة لتتبع التغييرات على الصفحة الرئيسية، فما كتير من الترجمات المترجمة ونصفها ومسنة دون صورة عامة واضحة للحالة العامة. Translators often feel discouraged when they cannot work with small manageable pieces of text. Translators don't find what to work on or what needs updating. The users also get confused by outdated information.
This is all solved with the Translate extension and its page translation feature. It adds a bit of overhead to the pages that need translation, but the benefits far outweigh this. Essentially you only need to mark the parts of the page that need translation. The extension then splits such parts into paragraph sized units and creates a message group for them. After that translators can use all the features described above. In addition you can easily add a language bar with the <languages />
tag or have links automatically go to the user's preferred language version (only) when it exists, by using links of the form [[Special:MyLanguage/Pagename]].
لمزيد من المعلومات، راجع البرنامج التعليمي كيفية إعداد صفحة محتوى للترجمة والوثائق المتعمقة لميزة ترجمة الصفحة.
Developers: The extension comes with built-in support for many common translation file formats, like Java properties and Gettext po files. It has an extensive set of tools, both in-wiki and on the command line, to efficiently import and export translations.
Searching: Without a search feature, it is difficult for translators to find specific messages they want to translate. Traversing all the translations or strings of the project is inefficient. Also, translators often want to check how a specific term was translated in a certain language across the project.
This is solved by the special page Special:SearchTranslations. Translators can find the messages containing certain terms in any language and filter by various criteria: this is the default. After searching, they can switch the results to the translations of said messages, for instance to find the existing, missing or outdated translations of a certain term.
Use cases
You can translate almost anything with the Translate extension. Naturally there are specialized tools for translation of certain kind of content like video subtitles, that are better done with those tools, but in general Translate performs very well with any kind of text that can be split into messages with length ranging from one word up to one large paragraph. Longer messages become unwieldy to translate and are just harder to work with.
The three primary use cases that the Translate extension supports are content translation, local interface translation and software translation. All of them are covered in the following sections, with links to tutorials and to reference documentation or in-depth topical help where available. Of the three use cases the interface translation has been utilized the least.
Content translation
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Translate_manual_-_Translate_example_-_10._Outdated_clicking.png/300px-Translate_manual_-_Translate_example_-_10._Outdated_clicking.png)
Most wikis have content they would like to be available in multiple languages. Whether just a few or hundreds of pages, it doesn't matter. In order to prevent wasting translator's time, pages should be marked for translation only when they are reasonably stable. Each change that is made afterwards can affect tens or hundreds of old translations, and the time needed to update them adds up. Especially with volunteer translators, you should be aware of this aspect, and respect the time they spend making translations and updates, avoiding unnecessary work. If you use the Translate extension to translate pages, you are already well on your way to using the translator time available in the most effective and efficient way.
إن الطريقة التي يقوم بها ملحق الترجمة بتقسيم الصفحة إلى وحدات بحجم الفقرة لا تترك حرية كبيرة للمترجمين في تغيير المحتوى. يعد هذا عادةً أمرًا جيدًا ومثاليًا عندما يكون من المرغوب فيه استمرارية المحتوى واتساقه عبر اللغات. يمكن حل هذه المشكلة، ولكن من حيث المبدأ، فإن طريقة إجراء الترجمات هذه ليست مناسبة بشكل عام، على سبيل المثال، لمقالات ويكيبيديا، والتي عادةً ما تكون مستقلة تمامًا عن بعضها البعض. حتى لو بدأوا في الأصل كترجمة من لغة مختلفة، فإنهم عادةً ما يبدأون في عيش حياتهم المستقلة عن النسخة الأصلية. مع الترجمة، تكون الصفحة الأصلية دائمًا هي النسخة الرئيسية، ولا يمكن تطوير المحتوى الجديد في الإصدارات المترجمة.
With these limitations in mind there are still plenty of cases where this feature is a perfect match. Most, if not all, user documentation falls into this category as well as news-like content that does not change once written. If you have the Translate extension already installed and access rights configured, try creating a page and wrapping the whole text inside <languages /><translate>...</translate>
and follow the links, or follow the tutorial How to prepare a page for translation.
Groups of pages can be further aggregated together with the Special:AggregateGroups page.
Local interface translation in multilingual wikis
One thing almost every wiki has customized is the sidebar. It is possible to create a message group for the custom sidebar messages and also for other local interface customisations.
One interesting expansion is the multilingual pages or templates built with the {{int:}} magic word. The translatewiki.net main page and some Wikimedia Commons templates are good examples of this. The magic word {{int:}} is an alternative to the content translation feature and it is more suitable to mark-up heavy pages just like the translatewiki.net main page. Another nice feature is that the language of the page automatically follows the user interface language, so there is no need for a language bar, although you might want to have an interface language selector instead.
Setting this up is currently a bit more complicated than content translation and needs software configuration, but it is all covered in the tutorial How to make an interface message group.
Software translation
The Translate extension is a good fit for translating software interface messages. At translatewiki.net, it is used to translate dozens of software products from games to web applications. The Translate extension supports reading and updating translations from and to common formats used in web development including Java properties, Gettext and Yaml files.
Change tracking is also available for externally tracked files, because internally the extension uses a cached derivative version of the localisation files where the source text and its translations are stored, instead of using them directly in their original format. Translation administrators can either use the web interface or a command line interface to check new message definitions and "fuzzy" (request update of) translations when they need updating. This works regardless of the underlying file format or version control system (if any).
With simple command line tools, translation administrators can easily import even a large set of existing translations and with just one command they can export all translations in the correct format and in the correct directory structure. You can export directly to your VCS repository checkout, where you can easily commit changes and new files.
Further reading and tutorials
For translators and translation administrators
![](http://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/How_to_use_ExtensionTranslate_-_Wikimania_2017.pdf/page1-220px-How_to_use_ExtensionTranslate_-_Wikimania_2017.pdf.jpg)
- How to translate [Tutorial]
- Translation best practices
- Statistics and reporting
- Quality assurance
- Message group states
- [In progress] Search
- Off-line translation
- [In progress] Glossary
For translation administrators
- How to prepare a page for translation [Tutorial]
- Page translation administration
- Interface message groups (localised sidebar, main page and templates) [Tutorial]
- [In progress] Message group management
- YAML configuration format
- How to write YAML configuration for file based message groups [Tutorial]
Reference documents for developers
- Installation و Configuration - MediaWiki Language Extension Bundle should be enough in most cases.
- Translation memories
- Developer guide
- [In progress] Translate explained for developers
- Hooks
- [In progress] Message groups
- [In progress] File format support
- Translation aids
- [Unwritten] action API
- Insertables
- Command line scripts
- Process flow in MediaWiki jobs - Describes what jobs are involved when a page is marked for translation or a section is translated
- Translation memory architecture
Related
- Extension:TranslationNotifications#Special_pages
- Localisation/Tutorial – General localisation tutorial for developers, for use at hackathons & trainings
- Universal Language Selector – Provides web fonts and input methods
- m:Translatability – things to think about when creating pages or processes on multilingual wikis
- m:Tech/Translators/List – Add yourself to the list of currently active tech translators