WebSite X5 Pro
If you have a multi-language website you can set up an automatic redirection to the correct language for each visitor. To do this, it is necessary to detect the language set for the browser, so the visitor can be redirected onto the correct website. Of course, it isn't possible to make your website available in all the languages in the world, so you will need to set a fallback language, in case the specific detected language is not available for your website.
To make things clearer, let's go back to the example mentioned onHow to create a multi-language website taking all what's reported on that article about how to set up projects in English, German and Portuguese for granted.
English will be the default language, it will be then used when the the detected language won't be either German or Portuguese. The main website will then be in English.
- Open the English project.
- Go to Step 1 - Website Settings > Advanced > Entry Page: activate the Show the Entry Page option and select Detect language automatically.
- Use the available commands to make up the Language List. Select "Italiano", "Español" and "Français" as unavailable languages and click on the Remove button. Then click on the Add button to open the Language Settings window and add Portuguese: type "Português", type in "pt" as Language reference code and write /pt as URL for this language.
- Verify if the reference codes and the URLs automatically set for English and German are correct.
- As English will be employed as fallback language, select it in the list and click on Current.
- Now your website is ready for the choice of languages: you don't need to activate the entry page on the projects in German and Portuguese. The only thing left to do is exporting the three projects online by following the same logic used to set the links (see: How to publish projects for a multi-language website).