Help:Extension:Translate/Page translation administration/de

Was? Das Seitenübersetzungs-Feature erlaubt eine geregelte Übersetzung von Wikiseiten in andere Sprachen. Das bedeutet, dass der Inhalt jeder Übersetzung in der Regel auf dem gleichen Stand ist wie die Quellseite. Im Gegensatz dazu sind z.B. die verschiedenen Versionen von Wikipedia Artikeln in unterschiedlichen Sprachen vollständig unabhängig voneinander. Es wird angenommen, dass die Seiten von lediglich einer primären Sprache in andere übersetzt werden, aber Übersetzer können auch andere Übersetzungen nutzen, falls sie existieren.

Weshalb? Ohne Hilfe wird das Übersetzen in andere Sprachen schnell im besten Fall zu einem Zeitfresser, im schlimmsten Falle jedoch zu einem nicht mehr wartbaren Chaos. Mit dem Seitenübersetzungs-Feature kannst Du dieses Chaos vermeiden und den Übersetzungsprozess strukturieren. Der Grundgedanke ist, dass der Quelltext in kleinere Einheiten, die einzeln übersetzt werden, aufgeteilt wird. Bei diesem Verfahren können Änderungen eingegrenzt werden und die Übersetzer müssen lediglich die Übersetzungen der Einheiten, deren Quelltext verändert worden ist, aktualisieren. Außerdem versetzt es Übersetzer in die Lage, an Einheiten überschaubarer Größe zu arbeiten und die Arbeit auf mehrere Übersetzer zu verteilen oder die Übersetzung später fortzusetzen, weil sie nicht alles auf einmal übersetzen müssen.

Wer? Diese Seite erweitert das Seitenübersetzungsbeispiel um einen tieferen Einblick in die Funktionen des Systems und empfiehlt bewährte Vorgehensweisen für eine breite Auswahl an Anwendungsfällen. Diese Seite ist für Übersetzungsadministratoren und generell alle, die den Ausgangstext der zu übersetzenden Seiten bearbeiten, auch wenn das Administrationsrecht zum Genehmigen von Übersetzungsänderungen fehlt.

Lebenslauf einer übersetzbaren Seite
Rollen. Mehrere Personen sind in den Prozess des Schreibens und Übersetzens einer Wiki-Seite involviert: Der ursprüngliche Schreiber erstellt die Seite, jemand korrigiert Schreibfehler, ein Übersetzungsadministrator markiert die Seite für die Übersetzung, Übersetzer übersetzen, jemand nimmt Änderungen an der Seite vor, ein Übersetzungsadministrator markiert diese Änderungen für die Übersetzung und Übersetzer aktualisieren die Übersetzungen. Diese Rollen können sich überlappen, aber die Letztverantwortung für eine reibungslose Übersetzung bleibt beim (Seiten-)Übersetzungsadministrator. Der Administrator entscheidet, wann eine Seite zum ersten Mal bereit ist für eine Übersetzung, stellt sicher, dass die Segmentierung zweckdienlich ist und genehmigt (oder korrigiert) Änderungen.

Vorbereitung. Um etwas zu übersetzen, muss es erst geschrieben werden. Wenn du schon einmal mit der Translate-Extension übersetzt hast, siehe den Abschnitt zur Migration weiter unten. Wenn du viele Übersetzungen und auch noch schnell brauchst, ist entscheidend, dass der Ausgangstext in gutem Zustand ist. Bevor du eine Seite zur Übersetzung freigibst, bitte jemanden, die Seite Korrektur zu lesen und, sofern möglich, bitte einen Sprachexperten, den Text noch klarer und prägnanter zu formulieren. Schwieriger Wortschatz und schwer zu verstehende Sätze sind ein K.O.-Kriterium für viele freiwilligen Übersetzungen. Auch Markup kann Übersetzern Schwierigkeiten bereiten, aber als Übersetzungsadministrator kannst du diese Punkte vermeiden, siehe auch den Abschnitt über den Umgang mit Markup weiter unten. Natürlich forcieren Änderungen am Ausgangstext die Aktualisierung der bestehenden Übersetzungen, demnach ist es besser zu warten, bis sich die Inhalte der Seite stabilisiert haben. Andererseits passieren immer wieder Änderungen, doch das System kann damit gut umgehen, siehe auch den Abschnitt über Änderungen weiter unten.

Kennzeichnen. Wenn der Text bereit ist zur Übersetzung, kann jeder die zu übersetzenden Textteile für die Übersetzung kennzeichnen, indem diese Teile innerhalb des Tags gesetzt werden und ein $language „Schlüssel“ der Seite hinzugefügt wird. Der letztere fügt eine Liste aller Übersetzungen der Seite hinzu, inklusive Vollständigkeit- und Aktualitäts-Angaben (in Prozent). Dies ist der einzige Hinweis darauf, dass Übersetzungen existieren. Siehe auch den Abschnitt über das Wiki-Markup. Das System erkennt, wenn die Tags auf der Seite eingefügt werden und die Seite bekommt einen Link, um zur Übersetzung markiert zu werden. Es wird sich auch beschweren und das Speichern verhindern, wenn du z.B. einen Tag vergessen hast. Die zu übersetzende Seite wird auch auf Special:PageTranslation als "bereit zum Markieren" angezeigt.

Freigeben. Nach dem Kennzeichnen, gibt der Übersetzungs-Administrator die Seite zur Übersetzung frei. Die Bedieneroberfläche dazu ist auf Seitenübersetzungsbeispiel erklärt. Der Übersetzungs-Administrator trägt dabei die Verantwortung eine sinnvolle Aufteilung und eine ordnungsgemäße Kennzeichnung sicherzustellen. Die Seite kann nach zwischenzeitlichen Abänderungen erneut freigegeben werden. Das Freigeben der Seite startet einen Hintergrundprozess mittels der MediaWiki-Auftragswarteschlange. Dieser Prozess durchläuft jede Übersetzungsseite und erneuert sie: Änderungen in der Übersetzungsseiten-Vorlage zeigen sich als veraltete Übersetzungen und werden zeitweilig vom Text der Originalquelle ersetzt. Andererseits wird die Übersetzungs-Bedieneroberfläche unmittelbar auf den neusten Stand gebracht.

Changes. Users can continue making changes to the translatable page source. The changes will be visible to users viewing the page in the source language, but translations are done against the translation units extracted from the last version of the translatable page which has been marked for translation: the translation pages are reported to be 100 % up to date if all translation units have been translated, even if the source page has new changes. You can easily see whether there are unmarked changes when viewing the translatable page in the source language: there is a notice at the top which says that you can translate this page and also links to changes if there are any.

Source language. There is also a translation page with the language code of the source language: it doesn't contain the extra tags and other markup related to page translation which are used in the translatable page source. This page is not linked from the interface, but it is handy for example when you want to transclude the page (typically for translatable templates) or export it.

Closed translation requests. Some translatable pages have a content that is only interesting for a certain period of time. For example announcements and regular status updates, like the Wikimedia monthly highlights. You can keep those pages around with translations, but hide them from the translation interface. This does not prevent further translations to the pages, but it greatly reduces the chance that a user accidentally starts translating the page. Discouraging and its reversion are done from Special:PageTranslation.

Prioritizing languages. You can also define a list of languages that you specifically want translations into; leaving the language list empty is interpreted as all languages allowed. The page will behave like a discouraged page (see previous paragraph) for the languages not in the priority list and, when translating into them, translators will be given a notice. You can also prevent the translation in other languages, say if translations are actually used elsewhere and you won't be able to use them but in some languages.

Grouping. It is possible to group related pages together. These groups work like all the other message groups. They have their own statistics and contain all the messages of the subgroups: in this case translatable pages. This functionality is currently in Special:AggregateGroups. Aggregate message groups are collapsed by default in Special:LanguageStats in the group selector at Special:Translate.

Moving. You can move translatable pages as you would move any other page. When moving you can choose whether you want to move any non-translation subpages too. The move uses a background job to move the many related pages. While the move is in progress, it is not possible to translate the page. Completion is noted in the page translation log.

Deleting. Like move, deletion is accessed from the normal place. You can delete either the whole translatable page, or just one translation page, from the delete button on it. Deletion will also delete all the related translation unit pages. As in move, a background process will delete the pages over time and completion is noted in the page translation log. Deletion requires "delete" and "pagetranslation" permission, but individual translation unit pages can always be deleted with standard "delete".

Reverting. Similarly, reverting incorrect edits works as usual (including the rollback button): you only have to edit the affected translation unit and the translation page will be updated as well. To find the edit to the translation unit from the edit to the translation page, just click the "" link for the editor and look for an edit at a similar time.

Protecting. It is possible to protect the translatable page. Translation pages cannot be protected, nor does the protection of the translatable page extend to them. To prevent further edits to translations, you should add the source language as only priority language and disable translations to other languages, see prioritizing languages above. Together these two actions effectively prevent changes to both the source page and translation pages with its translation unit pages. It is possible to protect individual translation unit pages, though it is not advisable.

Removal from translation. It is also possible to unmark a page for translation. First you need to remove all tags from the page. Then you can use Special:PageTranslation or follow the link in the top of translatable page to remove it from translation. This will remove any structure related to page translation, but leave all the existing pages in place, freely editable. This action is not recommended.

Anatomie einer übersetzbaren Seite
The translation of a translatable page will produce many pages, which all together compose the translatable page in the broadest sense: their title is determined by the title of the translatable :


 * (the source page)
 * (the translation pages, plus a copy of the source page without markup)
 * (all the translation unit pages)

In addition to this, there are the translation page template and the sources of translation units, extracted from the source page and stored in the database. The system keeps track of which versions of the source page contain translation tags and which version of them have been marked for translation.

Every time a translation unit page is updated, the system will also regenerate the corresponding translation page. This will result in two edits. The translation unit page edit is hidden by default in recent changes and can be shown by choosing show translations from the translation filter. Any action other than editing (like deleting and moving) the translation unit pages will not trigger the regeneration of the corresponding translation page.

If you need the copy of the source page without markup, e.g. to be pasted in another wiki without Translate, the text will be displayed or saved.
 * identify the source language code (for English, en ) and visit ;
 * click the "" button to reach an address like this and replace  with   in the address bar, press enter:

Aufteilung
Grundprinzipien:


 * 1) All text intended for translation must be wrapped in  tags. There can be multiple pairs of tags in one page.
 * 2) Everything outside those tags will not change in any translation page. This static text, together with the placeholders which mark the place where the translation of each translation unit will be substituted, is called the translation page template.
 * 3) Too much markup in the text makes it difficult for translators to translate. Use more fine grained placing of  tags when there are lots of markup.
 * 4) The text inside  tags is split into translation units where there is one or more empty lines between them (two or more newlines).

Restrictions. The page translation feature places some restrictions on the text. There should not be any markup that spans over two or more translation units. In other words, each paragraph should be self-contained. This is currently not enforced in the software, but violating it will cause invalid rendering of the page, the severity depending on whether MediaWiki itself is able to fix the resulting html output or not.

Parsing order. Beware, the tags work differently from other tags, because they do not go through the parser. This should not cause problems usually, but may if you are trying something fancy. In more detail, they are parsed before any other tags like or, with the exception of  which is recognized by the Translate extension in some circumstances (such as rendering a page) but not in others (such as generating the list on Special:PageTranslation of pages containing ). If you want to have the literal expression "" in the source text, you should escape it like " ".

Tag placing. If possible, try to put the tags on their own lines, with no empty lines between the content and the tags. Sometimes this is not possible, for example if you want to translate some content surrounded by the markup, but not the markup itself. This is fine too, for example:

To make this work, the extension has a simple whitespace handling: whitespace is preserved, except if an opening or closing  tag is the only thing on a line. In that case the newline after the opening tag or before the closing tag is eaten. This means that they don't cause extra space in the rendered version of the page.

Variables. It is possible to use variables similar to template variables. The syntax for this is. For translators these will show up only as, and in translation pages will automatically be replaced by the value defined in the translatable page (so they are global "constants" across all its translation pages). Variables can be used to hide untranslatable content in the middle of a translation unit. It also works for things like numbers that need to be updated often. You can update the number in all translations by changing the number in the translatable page source and re-marking the page. You do not need to invalidate translations, because the number is not part of the translation unit pages.

Beispiele für Wiki-Markup
Below are listed some alternatives and suggested ways to handle different kinds of wiki markup.

{| class=wikitable Übersetzung mittels Sprach-Suffix: Category:Cars/fi (empfohlen, aber nicht unterstützt)
 * Kategorien
 * width=40% | Categories can be added in two ways: in the translation page template or in one of the translation units. If you have the categories in the translation page template, all translations will end up in the same category. If you have categories inside translation units, you should teach the users a naming scheme. On the right we show two possible schemes which are independent of the technical means to adopt them.

[...] &lt;/translate>


 * Kategorie-Seitenname nicht übersetzt (genau wie die Seitennamen).
 * Eine Kategorie für jede Sprache.
 * Page translation could be used for the category itself: the categories would be linked together and the headers would be translated (but not the name of the category in links and such).

Keine Übersetzung: Category:Cars

Falsch: == Culture ==
 * Alle Übersetzungen in derselben Kategorie (gut bei nur wenigen Sprachen, schlecht bei vielen).
 * Category name not translated (can be put as is in the translation template).
 * Überschriften und Kopfzeilen
 * Headers can in principle be tied to the following paragraph, but it is better to have them separated with an empty line. This way someone can quickly translate the table of contents before going into the contents. When tagging headers, it is important to include the header markup inside the tags, or MediaWiki will no longer identify them properly. For example, section editing only works with the recommended mark-up given in the example. The markup also immediately gives translators a context: they are translating a header.
 * Headers can in principle be tied to the following paragraph, but it is better to have them separated with an empty line. This way someone can quickly translate the table of contents before going into the contents. When tagging headers, it is important to include the header markup inside the tags, or MediaWiki will no longer identify them properly. For example, section editing only works with the recommended mark-up given in the example. The markup also immediately gives translators a context: they are translating a header.

Falsch: == Culture ==

 Empfohlene Aufteilung:  &lt;translate>

Culture
Lorem ipsum dolor. &lt;/translate>

&lt;translate> &lt;/translate>
 * Bilder
 * Images that do contain language specific content like text should include the full image syntax in an unit. Other images can only tag the description with optional hint in message documentation of the page after it has been marked.
 * Images that do contain language specific content like text should include the full image syntax in an unit. Other images can only tag the description with optional hint in message documentation of the page after it has been marked.


 * Verknüpfungen (Links)
 * Links can be included in the paragraph they are inside. This allows changing the link label, but also changing the link target to a localized version if one exists.
 * Links can be included in the paragraph they are inside. This allows changing the link label, but also changing the link target to a localized version if one exists.

If the target page is (or should be) also translatable, you should link to it by prepending  to its title. Only the link label will need to be translated, because this automatically redirects users to the translation page in their own interface language, as selected for instance via the UniversalLanguageSelector. However, to achieve a constant behavior the syntax must be used for all links.

Because headers are translated, you cannot rely on the automatically generated id's for headers. You can add your own anchors. To have them outside of the translation template you need to break up the page into multiple tag pairs around each header you want to have an anchor to. Interne Verknüpfungen: &lt;translate> Helsinki is capital of Finland. &lt;/translate>

Links zu übersetzbaren Seiten: &lt;translate> It has marvelous beaches with a lot of seagulls. &lt;/translate> Externe Links: &lt;translate> PHP (website) is a programming language. &lt;/translate> Verknüpfungen innerhalb einer Seite: &lt;translate>

Culture
Lorem ipsum dolor.

...

For more about food, see section about culture. &lt;/translate>

&lt;translate> &lt;/translate> &lt;translate> &lt;/translate>
 * Listen
 * Lists can get long, so might want to split them into multiple parts with for example five items or less in each as follows. Do so only if the items are sufficiently independent to be translate separately in all languages, don't create "lego messages": for instance, you must avoid to split a single sentence in multiple units, or to separate logically dependent parts which may affect each other (with regard to punctuation or style of the list, for instance). To split a list, use -tags. Do not insert new lines as this will break the HTML output.
 * Lists can get long, so might want to split them into multiple parts with for example five items or less in each as follows. Do so only if the items are sufficiently independent to be translate separately in all languages, don't create "lego messages": for instance, you must avoid to split a single sentence in multiple units, or to separate logically dependent parts which may affect each other (with regard to punctuation or style of the list, for instance). To split a list, use -tags. Do not insert new lines as this will break the HTML output.
 * General principles
 * Headings
 * Images
 * Tables
 * Categories
 * Links
 * Templates


 * Zahlen
 * With numbers and other non-linguistic elements you may want to pull the actual number out of translation and make it a variable. This has multiple benefits:
 * With numbers and other non-linguistic elements you may want to pull the actual number out of translation and make it a variable. This has multiple benefits:

&lt;translate> Income this month  EUR &lt;/translate> Note that this prevents the translators from localising the number by doing currency conversion. The  call makes sure the number is formatted correctly in the target language.
 * Du kannst die Zahlen ohne die Übersetzungen ungültig zu machen aktualisieren.
 * Der Übersetzungsspeicher funktioniert besser, wenn sich ändernde Zahlen ignoriert werden.


 * Vorlagen
 * Templates have varying functions and purposes, so the best solution depends on what the template is for. If the template is not a part of longer paragraph, it should be left out, unless it has parameters that need to be translated. If the template has no linguistic content itself, you don't need to do anything for the template itself.
 * For an example of templates translated with page translation, see Template:Extension-Translate. To use this template, you need to have another template similar to Translatable navigation template, because you cannot include the template by  anymore. This is not yet provided by the Translate extension itself, but that is in the plans.
 * For an example of templates translated with page translation, see Template:Extension-Translate. To use this template, you need to have another template similar to Translatable navigation template, because you cannot include the template by  anymore. This is not yet provided by the Translate extension itself, but that is in the plans.

Another way is to use the unstructured element translation to translate the template, but then the language of the template will follow the user's interface language, not the language of the page he is viewing.
 * }

Quelltext ändern
Grundprinzipien:


 * Vermeide Änderungen
 * Nimm die Änderungen so abgegrenzt wie möglich vor
 * Füge Markierungen für Übersetzungseinheiten nicht manuell hinzu

Elementmarkierungen. Wenn eine Seite für die Übersetzung markiert wird, aktualisiert das System den Quellcode und fügt eindeutige Elementmarkierungen für jede einzelne Übersetzungseinheit hinzu. Siehe Beispiel unten. Diese Markierungen sind äußerst wichtig für das System, das mittels dieser Markierungen Änderungen and den Übersetzungseinheiten verfolgt. Du solltest niemals Elementmarkierungen selbst hinzufügen. Die Markierungen stehen immer eine Zeile vor der Einheit, bei Überschriften stehen sie in derselben Zeile der Überschrift. Die andersartige Platzierung der Markierung bei Überschriften ist notwendig, damit das Bearbeiten von Abschnitten erwartungsgemäß funktioniert.

&lt;translate>

Birds
&lt;!--T:1--> Birds are animals which....

&lt;!--T:2--> Birds can fly and... &lt;/translate> Changing unit text. Changing is the most common operation for translation units. You can fix spelling mistakes, correct grammar or do other changes to the unit. When re-marking the page for translation, you will see the difference in the unit text. The same difference is also shown to translators when they update their translations. For simple spelling fixes and other cases where you don't want the existing translations to be removed from translation pages, you can avoid invalidating them: translators will still see the difference if they ever update the translation for any reason.

Adding new text. You can freely add new text inside tags. Make sure that there is one empty line between adjacent units, so that the system will see it as a new unit. You can also add tags around the new text, if it is not inside existing  tags. Again, do not add unit markers yourself, the system will do it.

Deleting text. You can delete whole units. If you do so, also remove the unit marker.

Splitting units. You can split existing units by adding an empty line in the middle of a unit, or by placing tags so that they split the unit. You can either keep the unit marker with the first unit or remove it altogether. In the first case, translators see the old text when updating the old translation. If you removed the unit marker, both units will behave as if no translation ever existed, after the page is re-marked for translation.

Merging units. If you merge units, you have to remove at least all but one unit marker.

Moving units. You can move units around without invalidating translations: just move the unit marker together with the rest of the unit.

Before marking the new version of the page for translation, ensure that the best practices are followed, especially that translators get a new translation unit if the content has changed. Also make sure that there are no unnecessary changes to prevent wasting translators time. If the source page is getting many changes, it may be worthwhile to wait for it to stabilize, and push the work for translators only after that.

Unused unit translations are not deleted automatically, but that should not cause trouble.

Zum Seitenübersetzungs-Feature übergehen
If you have been translating pages before using the page translation system, you might want to migrate the pages to the new system, at least the ones you expect to have new translations and want statistics for. You will probably have existing templates for language switching and maybe different page naming conventions.

You can start migration by cleaning up, tagging and marking the source page. You can keep the existing language-switching templates while you migrate the old translations. If your pages follow the language code subpages naming convention, they will be replaced with the source text after marking the source page for translation, but you'll still be able to access translations from history.

This manual task has been partly automated by Special:PageMigration, which shows the source and target units besides each other and allows the user to adjust the units by providing a set of features mentioned later in this page.

How to use?
500px|Screenshot showing an example use of Special:PageMigration for "Help:Special pages" as page name and "fr" as language code.
 * 1) Go to Special:PageMigration
 * 2) Enter the title of the page and the language code. For example, "Help:Special pages" & "fr"
 * 3) The source text which was divided into units by Translate and the imported translations will be shown besides each other with some initial alignment.
 * 4) Use the actions available for each unit to manually do the remaining alignment
 * 5) As translated units are editable, do required manual improvements (for add translation variables, fix links and markup, etc.)
 * 6) Click on the "" button. This will create pages under the Translations namespace of the form  . The old translations have been imported into Translate.
 * 7) Else, if you wish to abort the importing, click on the 'Cancel' button.

Verfügbare Aktionen
Each row consisting of source and target unit has a set of action icons. They are used as follows:
 * 1) Add: Clicking on this action icon adds a new empty unit below the current one. Use this feature if you want to split the current unit and need a unit below.
 * 2) Swap: Clicking on this action icon swaps the content of the current unit with the unit below it. You can use this feature when the units get aligned improperly due to different ordering of sections. Or when you need to drag a unit below or above. In either case, remember it swaps with the unit below and does not create any additional units.
 * 3) Delete: Clicking on this action icon completely removes the corresponding target unit from the page and shifts the remaining target units up by one unit. Use this to remove unwanted content like code or imported translations which are present completely in the source language. Note: this irrevocable action (in the current session).

Fehlerbehebung

 * 1) If you mark a page for translation and immediately go to the special page and try to import translations, you may get an error message like "". This is because FuzzyBot didn't fuzzy the messages on the old page yet: the tool won't find an edit by FuzzyBot on the translation page. In this case, simply wait for FuzzyBot to do its job. Once an edit is seen, you can proceed with the imports.
 * 2) Please wait for some time after pressing the "" button. While the button background remains gray, there is an ongoing process of importing non-empty units. Once the button becomes colored again, the import is completed.

Tipps

 * 1) Migration will be easier if you first (before the mark to translation) check whether existing translations are similar to the original English text, and manually edit the structure of pages: break paragraphs and lists, add the missing headers (even if empty).
 * 2) Will be useful to check the result in the core translation interface - some of the units may be immediately marked as obsolete because of errors markup or if not all of the translation variables was added.
 * 3) Translation of the page title will have to be added manually. If you do not know very well the language of the imported page, you can try to find the translation of the page title among the "links here" or sometimes in redirects. Note: Please don't translate the namespace, keep it untranslated.