Line 223:
Line 223:
−
==Automatische Übersetzung mit autotranslator.php Tool==
+
==Automatische Übersetzung mit dem Tool '''autotranslator.php'''==
*Translator OS: All
*Translator OS: All
*Tool: '''autotranslator.php''' provided with Dolibarr in directory '''dev/translation'''.
*Tool: '''autotranslator.php''' provided with Dolibarr in directory '''dev/translation'''.
−
Diese Methode wird empfohlen, wenn Sie mit der Übersetzung für eine Sprache beginnen, die noch nicht initialisiert ist. Wenn bereits eine Übersetzung verfügbar ist, Sie aber einen fehlenden Schlüssel hinzufügen oder Fehler korrigieren müssen, versuchen Sie, die Methode mit Transifex zu verwenden (siehe später).
+
Diese Methode wird empfohlen, wenn Sie mit der Übersetzung für eine Sprache beginnen, die noch nicht initialisiert/vorhanden ist.
+
+
Wenn bereits eine Übersetzung verfügbar ist, Sie aber einen fehlenden Schlüssel hinzufügen oder einen Fehler korrigieren müssen, sollten Sie Transifex verwenden (siehe oben).
Um alle Dateien eines Sprachcodes zu erstellen oder zu aktualisieren, führen Sie einfach das Skript aus:
Um alle Dateien eines Sprachcodes zu erstellen oder zu aktualisieren, führen Sie einfach das Skript aus:
+
<source lang="bash">
<source lang="bash">
php autotranslator.php lang_code_source lang_code_target GOOGLEAPIKEY
php autotranslator.php lang_code_source lang_code_target GOOGLEAPIKEY
</source>
</source>
+
Zum Beispiel:
Zum Beispiel:
<source lang="bash">
<source lang="bash">
php autotranslator.php en_US pt_PT GOOGLEAPIKEY
php autotranslator.php en_US pt_PT GOOGLEAPIKEY
−
</source>
+
</source>
+
to translate into Portuguese (pt_PT) using English (en_US) files.
to translate into Portuguese (pt_PT) using English (en_US) files.
Alle nicht existierenden Dateien werden erstellt, alle bestehenden Dateien werden aktualisiert.
Alle nicht existierenden Dateien werden erstellt, alle bestehenden Dateien werden aktualisiert.
Die Verwendung des Tools [http://translate.google.com Google translation] Service, um den Übersetzungswert einer Zeichenkette zu finden.
Die Verwendung des Tools [http://translate.google.com Google translation] Service, um den Übersetzungswert einer Zeichenkette zu finden.
−
service to find the translation value of a string, so a working Internet connection is required from station running the script. Also, a GOOGLEAPIKEY is required and Google charges a fee for using this service (20 euros / 1 000 000 of translated chars).
+
service to find the translation value of a string, so a working Internet connection is required from station running the script.
+
+
Also, a GOOGLEAPIKEY is required and Google charges a fee for using this service (20 euros / 1 000 000 of translated chars).
+
Your PHP must also have permissions to write into '''htdocs/langs''' directory and must have curl functions available.
Your PHP must also have permissions to write into '''htdocs/langs''' directory and must have curl functions available.
Line 261:
Line 269:
If you are developing a new module, you are likely going to need the addition of new language variables. This is done exclusively through the update of the en_US language (htdocs/langs/en_US/ folder). Just modify these files to add the variable you need and send the resulting folder as part of your Pull Request. Refer to the developer documentation to learn how to contribute code (you will need an account on {{TemplateUrlSCM}}.
If you are developing a new module, you are likely going to need the addition of new language variables. This is done exclusively through the update of the en_US language (htdocs/langs/en_US/ folder). Just modify these files to add the variable you need and send the resulting folder as part of your Pull Request. Refer to the developer documentation to learn how to contribute code (you will need an account on {{TemplateUrlSCM}}.
−
=[[File:Language.png]] Translate documentation on wiki=
+
=[[File:Language.png]] Übersetzungen für dieses Wiki=
−
The wiki is written in 3 languages: English, French, and Spanish.
+
Das Wiki ist zumeist in den Sprachen Englisch, Französisch und teilweise Spansich, aber auch Deutsch geschrieben.
−
If you want to enhance documentation on one of these languages, all you have to do is to create an account on this wiki.
+
−
Then, you can edit existing pages to correct a bad translation or translate pages waiting for translation [[:Category:Page_waiting_for_translation]].
+
Wenn Sie die Dokumentation in einer dieser Sprachen verbessern möchten oder eine neue Übersetzung hinzufügen wollen, müssen Sie lediglich ein Konto in diesem Wiki erstellen.
+
+
Danach können Sie die Übersetzung existierender Seiten verbessern und bisher noch nicht übersetzte Seiten neu übersetzen (siehe: [[:Category:Page_waiting_for_translation]]).
<br />
<br />