How to customise languages

Here's how to customise the languages of your website.

Single language mode

All language settings are stored in file system/extensions/yellow-language.ini. You can change this file as you like and also add your own language settings, for example image captions. Your changes will not be overwritten when the website is updated.

The default language is defined the system settings in file system/extensions/yellow-system.ini. A different language can be defined in the page settings at the top of each page, for example Language: en.

An English page:

---
Title: About
Language: en
---
Birds of a feather flock together.

A German page:

---
Title: Über
Language: de
---
Wo zusammenwächst was zusammen gehört.

A Swedish page:

---
Title: Om
Language: sv
---
Lika barn leka bäst.

Multi language mode

For multilingual websites you can use the multi language mode. For example if you translate an entire website. Open file system/extensions/yellow-system.ini and change CoreMultiLanguageMode: 1. Go to your content folder and create a new folder for each language. Here's an example:

├── content               
│   ├── 1-en              
│   │   ├── 1-home        = http://website/
│   │   ├── 9-about
│   │   └── shared    
│   ├── 2-de              
│   │   ├── 1-home        = http://website/de/
│   │   ├── 9-about
│   │   └── shared    
│   └── 3-sv              
│       ├── 1-home        = http://website/sv/
│       ├── 9-about
│       └── shared    
├── media                 
└── system                

The first screenshot shows the folders 1-en, 2-de and 3-sv. This gives you the URLs http://website/ http://website/de/ http://website/sv/ for English, German and Swedish. Here's another example:

├── content               
│   ├── 1-en              
│   │   ├── 1-home        = http://website/en/
│   │   ├── 9-about
│   │   └── shared    
│   ├── 2-de              
│   │   ├── 1-home        = http://website/de/
│   │   ├── 9-about
│   │   └── shared    
│   ├── 3-sv              
│   │   ├── 1-home        = http://website/sv/
│   │   ├── 9-about
│   │   └── shared    
│   └── default           = http://website/       
├── media                 
└── system                

The second screenshot shows the folders 1-en, 2-de, 3-sv and default. This gives you the URLs http://website/en/ http://website/de/ http://website/sv/ and a home page http://website/ that automatically detects the visitor's language.

To show a language selection, you can create a page that lists available languages. The language selection can be integrated into the navigation of your website. This allows visitors to choose the language. There are around 20 languages ​​to choose from. You can make a translation if a language is missing.

Do you have questions? Get help.