Reputation: 31
Constraints:
Typo3 v10.3.0 with installation method "uploding zip file", not composer
config.yaml see below has been autogenerated and I did not change
Problem I want solve:
Add an additional language - next to the default one - into the system so that I can select that language in the site configuration.
Neither in the site handling addingLanguages doc (1) nor in the tutorial (2) I found the description how to add a language to the system.
(2) https://docs.typo3.org/m/typo3/tutorial-editors/master/en-us/Languages/Index.html
config.yaml
base: 'https://<mysite>/autogenerated-1'
baseVariants: { }
errorHandling: { }
languages:
-
title: Deutsch
enabled: true
languageId: '0'
base: 'https://<mysite>/'
typo3Language: de
locale: de_DE.UTF8
iso-639-1: de
navigationTitle: Deutsch
hreflang: de-DE
direction: ltr
flag: de
websiteTitle: 'My Site'
rootPageId: 1
routes: { }
websiteTitle: ''
Upvotes: 0
Views: 1966
Reputation: 2921
For the time being it is necessary to add a record of type "Website Language" (sys_language
) for each language in the backend.
This is a little inconsistency but that's where the Site Config UI gets the available languages from.
You probably can also just add the language configuration to the .yaml and I am pretty sure the frontend would be fine with that, but I am not sure if the backend might still need a real sys_language
record.
Upvotes: 0
Reputation: 444
You need to define the available languages for the system first.
To do so, go to the list module, select the root node in the page tree (the one with the gray TYPO3 icon, id 0) and then in the top menu bar, click on the button with the +
sign to create a new record. In the new record wizard, select the system record type Website Language
. After creating a new website language record, the language is available in the site module.
The documentation about Working with languages
can be found here: https://docs.typo3.org/m/typo3/tutorial-editors/master/en-us/Languages/Index.html
Feel free to request a change in the documentation using the button on the top right side Edit on GitHub
.
Upvotes: 4