Translating your pages
Translating the content of your pages is just a matter of adding a text file for every language:
Make sure you always have a text file for your default language. Otherwise Kirby will not be able to provide a fallback for missing translations.
In your content files you can use the same fields and just fill in the translated text. The best way to proceed at the beginning is to start with the default language and when you are happy with the results, duplicate the default language files, rename them and translate them.
If you use the Panel, you don't have to worry about adding additional translation files. The Panel will handle that for you.
The global information about your site can be translated in the same way by adding a
site.txt for every language:
Translating file meta information
You can add meta information for each file in your content folders by adding a new text file for it. For example, to add meta info for an image called
myimage.jpg, you would add a new text file called
myimage.jpg.txt. To translate those meta info files, you have to append the language code again:
If you only work in the Panel, you don't have to worry about adding language extensions to content files. The Panel handles this automatically.
To translate a page in the Panel, switch from the default language to the target language using the language selector.
By default, the original content of the default language is shown to facilitate translations.
There are often situations where translations of a field don't make sense. In such cases, you can prevent translations via a blueprint option:
fields: headline: type: text year: type: number translate: false
This will make the field readonly in all but the default languages.