Mitmachen

Auf dieser Seite wird Französisch (fr) als Beispiel verwendet, dies kann jedoch durch andere Sprachcodes ersetzt werden. Stellen Sie also sicher, alle /fr-Endungen in dieser Anleitung durch das Kürzel zu ersetzen, das der Zielsprache Ihrer Übersetzung entspricht!

To see which languages are currently available, you can browse the repository:

https://projects.blender.org/blender/blender-manual-translations

Bemerkung

Zuallererst wird vorausgesetzt, dass Sie das Handbuch bereits erstellt haben. Wenn Sie das noch nicht getan haben, gehen Sie zum Anfangen - Kapitel zurück.

Installation

Sprachdateien

Führen Sie in dem Ordner, der das abgerufene Handbuch enthält, folgenden Befehl aus:

git clone https://projects.blender.org/blender/blender-manual-translations.git locale

Dies wird einen locale/fr Unterordner erstellen.

Sie sollten eine Ordnerstruktur wie die folgende haben:

blender-manual
   |- locale/
   |  |- fr/
   |  |  |- LC_MESSAGES/
   |- manual/

Bemerkung

When running Git from the command line (such as updating or committing), you will need to change directory to locale first rather then the blender-manual directory.

Ein PO-Editor

Um die PO-Dateien zu editieren, müssen Sie einen PO-Editor installieren. Wie empfehlen die Verwendung von Poedit, wenngleich jeder PO-Editor funktioniert.

Bemerkung

Linux-Nutzer müssen beim Software-Center ihrer jeweiligen Distribution nachschauen, ob eine Poedit-Version verfügbar ist. Dieser Editor ist nur eine Empfehlung. Es gibt andere, wie Kate und Kwrite, welche Syntax-Hervorhebung und grundlegende Tools zur Text-Editierung, z.B. Schriftsatz-Vertauschung, anbieten. Andere Plattformen können möglicherweise Texteditoren verwenden, welche die Syntax-Hervorhebung für PO-Files unterstützen, oder es erlauben, eigene zu erstellen (wie Notepad++ unter Windows).

Erstellen mit Übersetzungen

Now you can build the manual with the translation applied:

On Linux and macOS run:

make -e BF_LANG=fr

On Windows run:

set BF_LANG=fr
make html

Jetzt haben Sie eine Version des Handbuches mit angewandten Übersetzungen.

Übersetzungsdateien bearbeiten

Now you can edit the PO translation files, in the LC_MESSAGES folder you have two files:

  • blender_manual.po – This is the main translation file that you will be editing.

  • sphinx.po – This translation file is much smaller and contains translations for the website theme.

To edit these files open them up in your translation editor, i.e. Poedit. Once in your editor you will see a list of texts, each of these items represent some part of the user manual. You may need to adjust your editor to sort the list in a way that makes sense for example „by source“.

You can now select an untranslated string and your editor will have an input box to add the translation. The modified .po files can now submitted as a patch or committed back to the repository.

Tipp

Make sure that you Building with Translations to catch any syntax errors you may make while translating. These errors will be displayed as warnings while building the manual.

Submitting Translations

Translators who have been given commit access can commit to the main repository without needing to fork the repository.

See Commit Guidelines if this applies to you.

Fork Translation Repository

  1. Go to Blender repository and click the Fork button.

  2. Confirm the fork with the default settings.

  3. Now you will have to add your personal fork as a remote in your local git repository. Click SSH to see the correct URL, and then add it like this:

    git remote add me git@projects.blender.org:<USERNAME>/blender-manual-translations.git
    git submodule sync
    

Bemerkung

In order to push to the fork repository, you need an SSH key. If you don’t already have the file ~/.ssh/id_rsa.pub, there’s a simple command to generate such keys which works on Linux, macOS, and in Git Bash on Windows:

ssh-keygen

This command will generate a private key id_rsa and a public key id_rsa.pub in ~/.ssh. The private key must never be shown or sent to anyone else to avoid compromising your account, but the public key is safe to share.

The contents of ~/.ssh/id_rsa.pub can be copied and pasted into the account settings on projects.blender.org, after clicking „Add Key“. Any name for the SSH key is ok.

Instandhaltung

Unscharfe Übersetzungen

Wenn das Handbuch überarbeitet wird, werden die veralteten Übersetzungen als unscharf markiert. Um dies zu überblicken, können Sie ein von uns für diese Aufgabe erstelltes Hilfsprogramm benutzen.

Dazu starten Sie:

make report_po_progress

Dies liefert jedoch nur eine kurze Zusammenfassung, mehr Informationen erhalten Sie durch:

python tools_report/report_translation_progress.py locale/fr/

Sie sollten eine Liste aller Dateien mit Informationen über die Anzahl leerer und unscharfer Zeichenketten erhalten. Für weitere Optionen verwenden Sie:

python tools_report/report_translation_progress.py --help

PO-Dateien aktualisieren

Bei Änderungen am Original-Handbuch müssen die Vorlagen aktualisiert werden. Beachten Sie, dass dies nicht notwendig ist, da der Administrator normalerweise die Dateien für alle Sprachen auf einmal aktualisiert. Dadurch können alle Sprachen auf dem gleichen Stand des Handbuches sein. Falls Sie die Dateien jedoch selber aktualisieren müssen, können Sie das wie folgt tun:

make update_po

The updated templates can then be committed to the repository.

Siehe auch

A guide how to add a new language can be found in the Sprachen hinzufügen.