Note
This version of the guide covers the new PHP-based rendering of Documentation with the TYPO3 Documentation theme.
If the project you are looking at has a file Documentation/guides.xml it is using the new rendering.
Otherwise, consider to migrate the Documentation or head over to the legacy version of this guide: How to document, Sphinx based.
How to add translations
If you want to add a translation to official documentation or to your extension documentation, please keep in mind that it must be updated and maintained long term.
Important
Before adding a translation to an official manual contact the Documentation Team.
In general, it is a good idea to keep the structure of the original language. That way, it is possible to switch the language on each page and wind up on the corresponding translated page.
-
Create a localization directory
for example
Documentation/
,Localization. de_ DE Documentation/
. This directory contains a complete documentation project. So, you can effectively copy the originalLocalization. fr_ FR Documentation
directory.Documentation └── Localization.de_DE ├── Index.rst └── Settings.cfg
Copied! - Update the file Settings: Documentation/guides.xml.
- Translate the texts
-
Check the rendering
Render the documentation locally with Docker
The result will be in
/Documentation-
, for exampleGENERATED- temp/ Result/ project/<locale>/ 0. 0. 0/ /Documentation-
GENERATED- temp/ Result/ project/ de- de/ 0. 0. 0/ Index. html
Once the documentation has been rerendered on the documentation server, you can switch the language using the version selector.